![]() |
TreeValue is a container for a hierarchical tree of signed double precision floating point values.
#include <core/TreeValue.hpp>
Public Member Functions | |
TreeValue () | |
TreeValue (const TreeValue &Val) | |
virtual | ~TreeValue () |
Value & | operator= (const Value &Other) |
Type | getType () const |
Value * | clone () const |
void | writeToStream (std::ostream &OutStm) const |
void | writeQuotedToStream (std::ostream &OutStm) const |
![]() | |
CompoundValue () | |
virtual | ~CompoundValue () |
bool | isSimple () const |
bool | isCompound () const |
![]() | |
Value ()=default | |
virtual | ~Value () |
virtual bool | convert (Value &) const |
bool | isDoubleValue () const |
const DoubleValue & | asDoubleValue () const |
DoubleValue & | asDoubleValue () |
bool | isIntegerValue () const |
const IntegerValue & | asIntegerValue () const |
IntegerValue & | asIntegerValue () |
bool | isBooleanValue () const |
const BooleanValue & | asBooleanValue () const |
BooleanValue & | asBooleanValue () |
bool | isStringValue () const |
const StringValue & | asStringValue () const |
StringValue & | asStringValue () |
bool | isNullValue () const |
const NullValue & | asNullValue () const |
NullValue & | asNullValue () |
bool | isVectorValue () const |
const VectorValue & | asVectorValue () const |
VectorValue & | asVectorValue () |
bool | isMatrixValue () const |
const MatrixValue & | asMatrixValue () const |
MatrixValue & | asMatrixValue () |
bool | isMapValue () const |
const MapValue & | asMapValue () const |
MapValue & | asMapValue () |
bool | isTreeValue () const |
const TreeValue & | asTreeValue () const |
TreeValue & | asTreeValue () |
std::string | toString () const |
![]() | |
Tree () | |
double | getValue () const |
double | getValue (const double &DefaultVal) const |
void | setValue (const double &Val) |
bool | hasValue () const |
Children_t & | children () |
const Children_t & | children () 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 | |
![]() | |
enum | Type { NONE, BOOLEAN, INTEGER, DOUBLE, STRING, VECTOR, MATRIX, MAP, TREE, NULLL } |
![]() | |
typedef std::map< std::string, Tree< std::string, double > > | Children_t |
typedef Children_t::iterator | iterator |
typedef Children_t::const_iterator | const_iterator |
![]() | |
static bool | getValueTypeFromString (const std::string &ValueTypeString, Value::Type &ValueType) |
static std::string | getStringFromValueType (const Value::Type ValueType) |
![]() | |
std::string | keyToStr (const std::string &Key) const |
![]() | |
double | m_Value |
Children_t | m_Children |
bool | m_HasValue |
|
inline |
Default constructor
|
inline |
Copy constructor
|
inlinevirtual |
|
inlinevirtual |
Reimplemented from openfluid::core::Value.
|
inlinevirtual |
Implements openfluid::core::Value.
Assignment operator
Reimplemented from openfluid::core::Value.
|
inlinevirtual |
Implements openfluid::core::Value.
|
virtual |
Implements openfluid::core::Value.