LILAC
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
data Class Reference

class to hold a piece of constant data, enforces constant correctness More...

#include <data.hpp>

Classes

struct  this_is_private

Public Member Functions

virtual std::string to_string () const
template<class T >
 data (const this_is_private &dummy, const std::string _name, T *invals, size_t len)
template<class T >
 data (const this_is_private &dummy, const std::string &_name, const T &inval)
template<class T >
 data (const this_is_private &dummy, const std::string _name, T *invals, size_t len, const strfnc< T > &tostr)
template<class T >
 data (const this_is_private &dummy, const std::string &_name, const T &inval, const strfnc< T > &tostr)
virtual ~data ()

Static Public Member Functions

template<class T >
static std::shared_ptr< const
data
create (const std::string name, const T &inval)
template<class T >
static std::shared_ptr< const
data
create (const std::string _name, T *invals, size_t len)
template<class T >
static std::shared_ptr< const
data
create (const std::string name, T *b, T *e)
template<class T >
static std::shared_ptr< const
data
create (const std::string name, const T &inval, const strfnc< T > &tostr)
template<class T >
static std::shared_ptr< const
data
create (const std::string _name, T *invals, size_t len, const strfnc< T > &tostr)

Private Member Functions

template<class T >
void addelem (const T &inval)
template<class T >
void addelem (const T &inval, const strfnc< T > &tostr)

Private Attributes

std::string name
std::stringstream dat

Friends

class writer

Detailed Description

class to hold a piece of constant data, enforces constant correctness

Definition at line 28 of file data.hpp.

Constructor & Destructor Documentation

template<class T >
data::data ( const this_is_private dummy,
const std::string  _name,
T *  invals,
size_t  len 
)
inline

Definition at line 81 of file data.hpp.

Here is the call graph for this function:

template<class T >
data::data ( const this_is_private dummy,
const std::string _name,
const T &  inval 
)
inline

Definition at line 87 of file data.hpp.

Here is the call graph for this function:

template<class T >
data::data ( const this_is_private dummy,
const std::string  _name,
T *  invals,
size_t  len,
const strfnc< T > &  tostr 
)
inline

Definition at line 92 of file data.hpp.

Here is the call graph for this function:

template<class T >
data::data ( const this_is_private dummy,
const std::string _name,
const T &  inval,
const strfnc< T > &  tostr 
)
inline

Definition at line 98 of file data.hpp.

Here is the call graph for this function:

virtual data::~data ( )
inlinevirtual

Definition at line 103 of file data.hpp.

Member Function Documentation

template<class T >
void data::addelem ( const T &  inval)
inlineprivate

Definition at line 36 of file data.hpp.

Here is the caller graph for this function:

template<class T >
void data::addelem ( const T &  inval,
const strfnc< T > &  tostr 
)
inlineprivate

Definition at line 40 of file data.hpp.

template<class T >
static std::shared_ptr<const data> data::create ( const std::string  name,
const T &  inval 
)
inlinestatic

Definition at line 58 of file data.hpp.

Here is the caller graph for this function:

template<class T >
static std::shared_ptr<const data> data::create ( const std::string  _name,
T *  invals,
size_t  len 
)
inlinestatic

Definition at line 62 of file data.hpp.

template<class T >
static std::shared_ptr<const data> data::create ( const std::string  name,
T *  b,
T *  e 
)
inlinestatic

Definition at line 66 of file data.hpp.

template<class T >
static std::shared_ptr<const data> data::create ( const std::string  name,
const T &  inval,
const strfnc< T > &  tostr 
)
inlinestatic

Definition at line 72 of file data.hpp.

template<class T >
static std::shared_ptr<const data> data::create ( const std::string  _name,
T *  invals,
size_t  len,
const strfnc< T > &  tostr 
)
inlinestatic

Definition at line 76 of file data.hpp.

virtual std::string data::to_string ( ) const
inlinevirtual

Definition at line 52 of file data.hpp.

Friends And Related Function Documentation

friend class writer
friend

Definition at line 45 of file data.hpp.

Member Data Documentation

std::stringstream data::dat
private

Definition at line 31 of file data.hpp.

std::string data::name
private

Definition at line 30 of file data.hpp.


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