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

#include <liboptions.h>

Inheritance diagram for psi::IStringDataType:
psi::DataType

Public Member Functions

 IStringDataType ()
 
 IStringDataType (std::string s)
 
 IStringDataType (std::string s, std::string c)
 
virtual ~IStringDataType ()
 
virtual void add_choices (std::string str)
 
virtual std::string type () const
 
virtual std::string to_string () const
 
virtual int to_integer () const
 
virtual double to_double () const
 
virtual void assign (bool b)
 
virtual void assign (int i)
 
virtual void assign (double d)
 
virtual void assign (std::string s)
 
- Public Member Functions inherited from psi::DataType
 DataType ()
 
virtual ~DataType ()
 
bool has_changed () const
 
void changed ()
 
void dechanged ()
 
void to_upper (std::string &str)
 
virtual bool is_array () const
 
virtual size_t 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 void assign (DataType *)
 
virtual void reset ()
 
virtual Dataoperator[] (std::string)
 
virtual Dataoperator[] (size_t)
 

Private Attributes

std::string str_
 
std::vector< std::string > choices_
 

Constructor & Destructor Documentation

psi::IStringDataType::IStringDataType ( )
psi::IStringDataType::IStringDataType ( std::string  s)
psi::IStringDataType::IStringDataType ( std::string  s,
std::string  c 
)
psi::IStringDataType::~IStringDataType ( )
virtual

Member Function Documentation

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

Reimplemented from psi::DataType.

void psi::IStringDataType::assign ( bool  b)
virtual

Reimplemented from psi::DataType.

void psi::IStringDataType::assign ( int  i)
virtual

Reimplemented from psi::DataType.

void psi::IStringDataType::assign ( double  d)
virtual

Reimplemented from psi::DataType.

void psi::IStringDataType::assign ( std::string  s)
virtual

Reimplemented from psi::DataType.

double psi::IStringDataType::to_double ( ) const
virtual

Reimplemented from psi::DataType.

int psi::IStringDataType::to_integer ( ) const
virtual

Reimplemented from psi::DataType.

std::string psi::IStringDataType::to_string ( ) const
virtual

Reimplemented from psi::DataType.

std::string psi::IStringDataType::type ( ) const
virtual

Reimplemented from psi::DataType.

Member Data Documentation

std::vector<std::string> psi::IStringDataType::choices_
private
std::string psi::IStringDataType::str_
private

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