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

#include <liboptions_python.h>

Inheritance diagram for psi::PythonDataType:

Public Member Functions

 PythonDataType ()
 PythonDataType (const py::object &p)
virtual ~PythonDataType ()
virtual std::string type () const
const py::object & to_python () const
void assign (const py::object &p)
- 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 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

py::object python_object_

Constructor & Destructor Documentation

psi::PythonDataType::PythonDataType ( )
psi::PythonDataType::PythonDataType ( const py::object &  p)
psi::PythonDataType::~PythonDataType ( )

Member Function Documentation

void psi::PythonDataType::assign ( const py::object &  p)
const py::object & psi::PythonDataType::to_python ( ) const
std::string psi::PythonDataType::type ( ) const

Reimplemented from psi::DataType.

Member Data Documentation

py::object psi::PythonDataType::python_object_

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