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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

void psi::ArrayType::reset ( )
overridevirtual

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

Reimplemented from psi::DataType.

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

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: