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

#include <liboptions.h>

Inheritance diagram for psi::ArrayType:
psi::DataType

Public Member Functions

 ArrayType ()
 
virtual std::string type () const
 
virtual void add (DataType *data)
 
virtual void add (bool b)
 
virtual void add (int i)
 
virtual void add (double d)
 
virtual void add (std::string s, std::string c="")
 
virtual void assign (DataType *data)
 
virtual Dataoperator[] (size_t i)
 
virtual Dataoperator[] (std::string s)
 
virtual bool is_array () const
 
virtual size_t size () const
 
virtual std::string to_string () const
 
virtual void reset ()
 
std::vector< Datadata ()
 
- 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 (std::string, DataType *)
 
virtual void add (std::string, bool)
 
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 int to_integer () const
 
virtual double to_double () const
 
virtual void assign (bool)
 
virtual void assign (int)
 
virtual void assign (double)
 
virtual void assign (std::string)
 

Private Attributes

std::vector< Dataarray_
 

Constructor & Destructor Documentation

psi::ArrayType::ArrayType ( )

Member Function Documentation

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

Reimplemented from psi::DataType.

void psi::ArrayType::add ( bool  b)
virtual

Reimplemented from psi::DataType.

void psi::ArrayType::add ( int  i)
virtual

Reimplemented from psi::DataType.

void psi::ArrayType::add ( double  d)
virtual

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

std::vector<Data> psi::ArrayType::data ( )
inline
bool psi::ArrayType::is_array ( ) const
virtual

Reimplemented from psi::DataType.

Data & psi::ArrayType::operator[] ( size_t  i)
virtual

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

void psi::ArrayType::reset ( )
virtual

Reimplemented from psi::DataType.

size_t psi::ArrayType::size ( ) const
virtual

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

Member Data Documentation

std::vector<Data> psi::ArrayType::array_
private

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