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

#include <liboptions.h>

Inheritance diagram for psi::DataType:
psi::ArrayType psi::BooleanDataType psi::DoubleDataType psi::IntDataType psi::IStringDataType psi::MapType psi::PythonDataType psi::StringDataType

Public Member Functions

 DataType ()
 
virtual ~DataType ()
 
bool has_changed () const
 
void changed ()
 
void dechanged ()
 
void to_upper (std::string &str)
 
virtual void add_choices (std::string str)
 
virtual std::string type () const
 
virtual bool is_array () const
 
virtual unsigned int size () const
 
virtual void add (DataType *)
 
virtual void add (std::string, DataType *)
 
virtual void add (bool)
 
virtual void add (int)
 
virtual void add (double)
 
virtual void add (std::string, bool)
 
virtual void add (std::string, std::string)
 
virtual void add (std::string, int)
 
virtual void add (std::string, double)
 
virtual void add (std::string, std::string, std::string)
 
virtual bool exists (std::string)
 
virtual std::string to_string () const
 
virtual int to_integer () const
 
virtual double to_double () const
 
virtual py::list to_list () const
 
virtual void assign (DataType *)
 
virtual void assign (bool)
 
virtual void assign (int)
 
virtual void assign (double)
 
virtual void assign (std::string)
 
virtual void reset ()
 
virtual Dataoperator[] (std::string)
 
virtual Dataoperator[] (unsigned int)
 

Private Attributes

bool changed_
 

Constructor & Destructor Documentation

psi::DataType::DataType ( )
psi::DataType::~DataType ( )
virtual

Member Function Documentation

void psi::DataType::add ( DataType )
virtual

Reimplemented in psi::ArrayType.

void psi::DataType::add ( std::string  ,
DataType  
)
virtual

Reimplemented in psi::MapType.

void psi::DataType::add ( bool  )
virtual

Reimplemented in psi::ArrayType.

void psi::DataType::add ( int  )
virtual

Reimplemented in psi::ArrayType.

void psi::DataType::add ( double  )
virtual

Reimplemented in psi::ArrayType.

void psi::DataType::add ( std::string  ,
bool   
)
virtual

Reimplemented in psi::MapType.

void psi::DataType::add ( std::string  ,
std::string   
)
virtual

Reimplemented in psi::ArrayType.

void psi::DataType::add ( std::string  ,
int   
)
virtual

Reimplemented in psi::MapType.

void psi::DataType::add ( std::string  ,
double   
)
virtual

Reimplemented in psi::MapType.

void psi::DataType::add ( std::string  ,
std::string  ,
std::string   
)
virtual

Reimplemented in psi::MapType.

void psi::DataType::add_choices ( std::string  str)
virtual

Reimplemented in psi::IStringDataType, and psi::StringDataType.

void psi::DataType::assign ( DataType )
virtual

Reimplemented in psi::ArrayType.

void psi::DataType::assign ( bool  )
virtual
void psi::DataType::assign ( int  )
virtual
void psi::DataType::assign ( double  )
virtual
void psi::DataType::assign ( std::string  )
virtual
void psi::DataType::changed ( )
void psi::DataType::dechanged ( )
bool psi::DataType::exists ( std::string  )
virtual

Reimplemented in psi::MapType.

bool psi::DataType::has_changed ( ) const
bool psi::DataType::is_array ( ) const
virtual

Reimplemented in psi::MapType, and psi::ArrayType.

Data & psi::DataType::operator[] ( std::string  )
virtual

Reimplemented in psi::MapType, and psi::ArrayType.

Data & psi::DataType::operator[] ( unsigned int  )
virtual

Reimplemented in psi::ArrayType.

void psi::DataType::reset ( )
virtual

Reimplemented in psi::ArrayType.

unsigned int psi::DataType::size ( ) const
virtual

Reimplemented in psi::MapType, and psi::ArrayType.

double psi::DataType::to_double ( ) const
virtual
int psi::DataType::to_integer ( ) const
virtual
py::list psi::DataType::to_list ( ) const
virtual

Reimplemented in psi::ArrayType.

std::string psi::DataType::to_string ( ) const
virtual
void psi::DataType::to_upper ( std::string &  str)
std::string psi::DataType::type ( ) const
virtual

Member Data Documentation

bool psi::DataType::changed_
private

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