Public Member Functions | List of all members
openfluid::core::TreeValue Class Reference

#include <core/TreeValue.hpp>

Inheritance diagram for openfluid::core::TreeValue:
Inheritance graph
[legend]
Collaboration diagram for openfluid::core::TreeValue:
Collaboration graph
[legend]

Public Member Functions

 TreeValue ()
 
 TreeValue (const TreeValue &Val)
 
virtual ~TreeValue ()
 
Valueoperator= (const Value &Other)
 
Type getType () const
 
Valueclone () const
 
void writeToStream (std::ostream &OutStm) const
 
void writeQuotedToStream (std::ostream &OutStm) const
 
- Public Member Functions inherited from openfluid::core::CompoundValue
 CompoundValue ()
 
bool isSimple () const
 
bool isCompound () const
 
- Public Member Functions inherited from openfluid::core::Value
 Value ()
 
virtual ~Value ()
 
virtual bool convert (Value &) const
 
bool isDoubleValue () const
 
const DoubleValueasDoubleValue () const
 
DoubleValueasDoubleValue ()
 
bool isIntegerValue () const
 
const IntegerValueasIntegerValue () const
 
IntegerValueasIntegerValue ()
 
bool isBooleanValue () const
 
const BooleanValueasBooleanValue () const
 
BooleanValueasBooleanValue ()
 
bool isStringValue () const
 
const StringValueasStringValue () const
 
StringValueasStringValue ()
 
bool isNullValue () const
 
const NullValueasNullValue () const
 
NullValueasNullValue ()
 
bool isVectorValue () const
 
const VectorValueasVectorValue () const
 
VectorValueasVectorValue ()
 
bool isMatrixValue () const
 
const MatrixValueasMatrixValue () const
 
MatrixValueasMatrixValue ()
 
bool isMapValue () const
 
const MapValueasMapValue () const
 
MapValueasMapValue ()
 
bool isTreeValue () const
 
const TreeValueasTreeValue () const
 
TreeValueasTreeValue ()
 
std::string toString () const
 
- Public Member Functions inherited from openfluid::core::Tree< std::string, double >
 Tree ()
 
double getValue () const
 
double getValue (const double &DefaultVal) const
 
void setValue (const double &Val)
 
bool hasValue () const
 
Children_tchildren ()
 
const Children_tchildren () const
 
Tree< std::string, double > & child (const std::string &Key)
 
const Tree< std::string, double > & child (const std::string &Key) const
 
double getChildValue (const std::string &Key, const double &DefaultVal) const
 
bool hasChild (const std::string &Key) const
 
Tree< std::string, double > & addChild (const std::string &Key, const double &Val)
 
Tree< std::string, double > & addChild (const std::string &Key)
 
void deleteChild (const std::string &Key)
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void clear ()
 
unsigned int size () const
 
void writeToStreamHierarchically (std::ostream &OutStm, unsigned int Indent=0) const
 
void writeToStreamFlat (std::ostream &OutStm) const
 

Additional Inherited Members

- Public Types inherited from openfluid::core::Value
enum  Type {
  NONE, BOOLEAN, INTEGER, DOUBLE,
  STRING, VECTOR, MATRIX, MAP,
  TREE, NULLL
}
 
- Public Types inherited from openfluid::core::Tree< std::string, double >
typedef std::map< std::string, Tree< std::string, double > > Children_t
 
typedef Children_t::iterator iterator
 
typedef Children_t::const_iterator const_iterator
 
- Static Public Member Functions inherited from openfluid::core::Value
static bool getValueTypeFromString (const std::string &ValueTypeString, Value::Type &ValueType)
 
static std::string getStringFromValueType (const Value::Type ValueType)
 
- Protected Member Functions inherited from openfluid::core::Tree< std::string, double >
std::string keyToStr (const std::string &Key) const
 
- Protected Attributes inherited from openfluid::core::Tree< std::string, double >
double m_Value
 
Children_t m_Children
 
bool m_HasValue
 

Constructor & Destructor Documentation

openfluid::core::TreeValue::TreeValue ( )
inline

Default constructor

openfluid::core::TreeValue::TreeValue ( const TreeValue Val)
inline

Copy constructor

virtual openfluid::core::TreeValue::~TreeValue ( )
inlinevirtual

Member Function Documentation

Value* openfluid::core::TreeValue::clone ( ) const
inlinevirtual

Reimplemented from openfluid::core::Value.

Type openfluid::core::TreeValue::getType ( ) const
inlinevirtual
Value& openfluid::core::TreeValue::operator= ( const Value )
virtual

Assignment operator

Reimplemented from openfluid::core::Value.

void openfluid::core::TreeValue::writeQuotedToStream ( std::ostream &  OutStm) const
inlinevirtual
void openfluid::core::TreeValue::writeToStream ( std::ostream &  OutStm) const
virtual

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