autoppl  v0.8
A C++ template library for probabilistic programming
ppl::DataView< ValueType, ppl::scl > Struct Template Reference

#include <data.hpp>

Inheritance diagram for ppl::DataView< ValueType, ppl::scl >:
ppl::util::VarExprBase< DataView< ValueType, ppl::scl > > ppl::util::DataBase< DataView< ValueType, ppl::scl > > ppl::util::BaseCRTP< DataView< ValueType, ppl::scl > > ppl::util::VarBase< DataView< ValueType, ppl::scl > > ppl::util::BaseCRTP< DataView< ValueType, ppl::scl > > ppl::Data< ValueType, ppl::scl >

Public Types

using value_t = ValueType
 
using var_t = value_t
 
using id_t = const void *
 
using shape_t = ppl::scl
 

Public Member Functions

 DataView (const value_t *begin) noexcept
 
template<class Func >
void traverse (Func &&) const
 
const var_teval () const
 
const var_tget () const
 
constexpr size_t size () const
 
constexpr size_t rows () const
 
constexpr size_t cols () const
 
id_t id () const
 
template<class PtrPackType >
auto ad (const PtrPackType &) const
 
template<class PtrType >
void bind (PtrType begin)
 
void activate_refcnt () const
 
- Public Member Functions inherited from ppl::util::BaseCRTP< DataView< ValueType, ppl::scl > >
DataView< ValueType, ppl::scl > & self ()
 
const DataView< ValueType, ppl::scl > & self () const
 

Static Public Attributes

static constexpr bool has_param = false
 

Member Typedef Documentation

◆ id_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::scl >::id_t = const void*

◆ shape_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::scl >::shape_t = ppl::scl

◆ value_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::scl >::value_t = ValueType

◆ var_t

template<class ValueType >
using ppl::DataView< ValueType, ppl::scl >::var_t = value_t

Constructor & Destructor Documentation

◆ DataView()

template<class ValueType >
ppl::DataView< ValueType, ppl::scl >::DataView ( const value_t begin)
inlinenoexcept

Member Function Documentation

◆ activate_refcnt()

template<class ValueType >
void ppl::DataView< ValueType, ppl::scl >::activate_refcnt ( ) const
inline

◆ ad()

template<class ValueType >
template<class PtrPackType >
auto ppl::DataView< ValueType, ppl::scl >::ad ( const PtrPackType &  ) const
inline

◆ bind()

template<class ValueType >
template<class PtrType >
void ppl::DataView< ValueType, ppl::scl >::bind ( PtrType  begin)
inline

◆ cols()

template<class ValueType >
constexpr size_t ppl::DataView< ValueType, ppl::scl >::cols ( ) const
inlineconstexpr

◆ eval()

template<class ValueType >
const var_t& ppl::DataView< ValueType, ppl::scl >::eval ( ) const
inline

◆ get()

template<class ValueType >
const var_t& ppl::DataView< ValueType, ppl::scl >::get ( ) const
inline

◆ id()

template<class ValueType >
id_t ppl::DataView< ValueType, ppl::scl >::id ( ) const
inline

◆ rows()

template<class ValueType >
constexpr size_t ppl::DataView< ValueType, ppl::scl >::rows ( ) const
inlineconstexpr

◆ size()

template<class ValueType >
constexpr size_t ppl::DataView< ValueType, ppl::scl >::size ( ) const
inlineconstexpr

◆ traverse()

template<class ValueType >
template<class Func >
void ppl::DataView< ValueType, ppl::scl >::traverse ( Func &&  ) const
inline

Member Data Documentation

◆ has_param

template<class ValueType >
constexpr bool ppl::DataView< ValueType, ppl::scl >::has_param = false
staticconstexpr

The documentation for this struct was generated from the following file: