Public Member Functions | Private Attributes | List of all members
psi::Data Class Reference

#include <liboptions.h>

Public Member Functions

 Data ()
 Data (DataType *t)
 Data (const Data &copy)
std::string to_string () const
int to_integer () const
double to_double () const
bool is_array () const
size_t size () const
bool has_changed () const
void changed ()
void dechanged ()
void add_choices (std::string str)
std::string type () const
void add (DataType *data)
void add (std::string s, DataType *data)
void add (bool b)
void add (int i)
void add (double d)
void add (std::string s, std::string c)
void add (std::string key, bool b)
void add (std::string key, int i)
void add (std::string key, double d)
void add (std::string key, std::string s, std::string c)
void assign (DataType *data)
void assign (bool b)
void assign (int i)
void assign (double d)
void assign (std::string s)
void reset ()
DataTypeget () const
Dataoperator[] (int i)
Dataoperator[] (std::string s)

Private Attributes

std::shared_ptr< DataTypeptr_

Constructor & Destructor Documentation

psi::Data::Data ( )
psi::Data::Data ( DataType t)
psi::Data::Data ( const Data copy)

Member Function Documentation

void psi::Data::add ( DataType data)
void psi::Data::add ( std::string  s,
DataType data 
void psi::Data::add ( bool  b)
void psi::Data::add ( int  i)
void psi::Data::add ( double  d)
void psi::Data::add ( std::string  s,
std::string  c 
void psi::Data::add ( std::string  key,
bool  b 
void psi::Data::add ( std::string  key,
int  i 
void psi::Data::add ( std::string  key,
double  d 
void psi::Data::add ( std::string  key,
std::string  s,
std::string  c 
void psi::Data::add_choices ( std::string  str)
void psi::Data::assign ( DataType data)
void psi::Data::assign ( bool  b)
void psi::Data::assign ( int  i)
void psi::Data::assign ( double  d)
void psi::Data::assign ( std::string  s)
void psi::Data::changed ( )
void psi::Data::dechanged ( )
DataType * psi::Data::get ( ) const
bool psi::Data::has_changed ( ) const
bool psi::Data::is_array ( ) const
Data & psi::Data::operator[] ( int  i)
Data & psi::Data::operator[] ( std::string  s)
void psi::Data::reset ( )
size_t psi::Data::size ( ) const
double psi::Data::to_double ( ) const
int psi::Data::to_integer ( ) const
std::string psi::Data::to_string ( ) const
std::string psi::Data::type ( ) const

Member Data Documentation

std::shared_ptr<DataType> psi::Data::ptr_

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