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

#include <data.hpp>

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

Public Types

using base_t = DataView< ValueType, ppl::scl >
 
using value_t = ValueType
 
- Public Types inherited from ppl::DataView< ValueType, ppl::scl >
using value_t = ValueType
 
using var_t = value_t
 
using id_t = const void *
 
using shape_t = ppl::scl
 

Public Member Functions

 Data (value_t v) noexcept
 
 Data () noexcept
 
auto & get ()
 
const var_tget () const
 
- Public Member Functions inherited from ppl::DataView< ValueType, ppl::scl >
 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
 
- Public Member Functions inherited from ppl::util::BaseCRTP< Data< ValueType, ppl::scl > >
Data< ValueType, ppl::scl > & self ()
 
const Data< ValueType, ppl::scl > & self () const
 

Additional Inherited Members

- Static Public Attributes inherited from ppl::DataView< ValueType, ppl::scl >
static constexpr bool has_param = false
 

Member Typedef Documentation

◆ base_t

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

◆ value_t

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

Constructor & Destructor Documentation

◆ Data() [1/2]

template<class ValueType >
ppl::Data< ValueType, ppl::scl >::Data ( value_t  v)
inlinenoexcept

◆ Data() [2/2]

template<class ValueType >
ppl::Data< ValueType, ppl::scl >::Data ( )
inlinenoexcept

Member Function Documentation

◆ get() [1/2]

template<class ValueType >
auto& ppl::Data< ValueType, ppl::scl >::get ( )
inline

◆ get() [2/2]

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

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