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

#include <liboptions.h>

Inheritance diagram for psi::MapType:
psi::DataType

Public Member Functions

 MapType ()
 
virtual std::string type () const
 
virtual void add (std::string key, DataType *data)
 
virtual void add (std::string key, bool b)
 
virtual void add (std::string key, int i)
 
virtual void add (std::string key, double d)
 
virtual void add (std::string key, std::string s, std::string c="")
 
virtual bool exists (std::string key)
 
virtual Dataoperator[] (std::string s)
 
virtual bool is_array () const
 
virtual unsigned int size () const
 
virtual std::string to_string () const
 
- 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 void add_choices (std::string str)
 
virtual void add (DataType *)
 
virtual void add (bool)
 
virtual void add (int)
 
virtual void add (double)
 
virtual void add (std::string, std::string)
 
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[] (unsigned int)
 

Private Types

typedef std::map< std::string,
Data >::iterator 
iterator
 
typedef std::map< std::string,
Data >::const_iterator 
const_iterator
 

Private Attributes

std::map< std::string, Datakeyvals_
 

Member Typedef Documentation

typedef std::map<std::string, Data>::const_iterator psi::MapType::const_iterator
private
typedef std::map<std::string, Data>::iterator psi::MapType::iterator
private

Constructor & Destructor Documentation

psi::MapType::MapType ( )

Member Function Documentation

void psi::MapType::add ( std::string  key,
DataType data 
)
virtual

Reimplemented from psi::DataType.

void psi::MapType::add ( std::string  key,
bool  b 
)
virtual

Reimplemented from psi::DataType.

void psi::MapType::add ( std::string  key,
int  i 
)
virtual

Reimplemented from psi::DataType.

void psi::MapType::add ( std::string  key,
double  d 
)
virtual

Reimplemented from psi::DataType.

void psi::MapType::add ( std::string  key,
std::string  s,
std::string  c = "" 
)
virtual

Reimplemented from psi::DataType.

bool psi::MapType::exists ( std::string  key)
virtual

Reimplemented from psi::DataType.

bool psi::MapType::is_array ( ) const
virtual

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

Member Data Documentation

std::map<std::string, Data> psi::MapType::keyvals_
private

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