NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This is an abstract cluster item. It is used as root class of any cluster items and only contains the type of the item and virtual functions as interfaces to the child classes. More...
#include <cluster.hpp>
Public Types | |
enum | ClusterItemType { ITEMTYPE_INVALID = -1 , ITEMTYPE_MIXED , ITEMTYPE_DOUBLE , ITEMTYPE_STRING } |
Defines the available types of clusters. More... | |
Public Member Functions | |
ClusterItem (unsigned short type) | |
virtual | ~ClusterItem () |
unsigned short | getType () const |
Returns the ClusterItemType. More... | |
virtual mu::value_type | getDouble () |
Base implementation. Returns always NaN. More... | |
virtual void | setDouble (const mu::value_type &val) |
Base implementation. Does nothing. More... | |
virtual std::string | getString () |
Base implementation. Always returns an empty string. More... | |
virtual std::string | getInternalString () |
Base implementation. Returns an empty string. More... | |
virtual std::string | getParserString () |
Base implementation. Returns a string with quotation marks. More... | |
virtual void | setString (const std::string &strval) |
Base implementation. Does nothing. More... | |
Private Attributes | |
unsigned short | nType |
This is an abstract cluster item. It is used as root class of any cluster items and only contains the type of the item and virtual functions as interfaces to the child classes.
Definition at line 38 of file cluster.hpp.
Defines the available types of clusters.
Enumerator | |
---|---|
ITEMTYPE_INVALID | |
ITEMTYPE_MIXED | |
ITEMTYPE_DOUBLE | |
ITEMTYPE_STRING |
Definition at line 48 of file cluster.hpp.
|
inline |
Definition at line 56 of file cluster.hpp.
|
inlinevirtual |
Definition at line 57 of file cluster.hpp.
|
inlinevirtual |
Base implementation. Returns always NaN.
Reimplemented in NumeRe::ClusterDoubleItem, and NumeRe::ClusterStringItem.
Definition at line 77 of file cluster.hpp.
|
inlinevirtual |
Base implementation. Returns an empty string.
Reimplemented in NumeRe::ClusterDoubleItem, and NumeRe::ClusterStringItem.
Definition at line 110 of file cluster.hpp.
Referenced by getParserString().
|
inlinevirtual |
Base implementation. Returns a string with quotation marks.
Reimplemented in NumeRe::ClusterDoubleItem.
Definition at line 122 of file cluster.hpp.
References getInternalString().
|
inlinevirtual |
Base implementation. Always returns an empty string.
Reimplemented in NumeRe::ClusterDoubleItem, and NumeRe::ClusterStringItem.
Definition at line 98 of file cluster.hpp.
|
inline |
Returns the ClusterItemType.
Definition at line 65 of file cluster.hpp.
References nType.
Referenced by NumeRe::Cluster::push_back().
|
inlinevirtual |
Base implementation. Does nothing.
val | const mu::value_type& |
Reimplemented in NumeRe::ClusterDoubleItem, and NumeRe::ClusterStringItem.
Definition at line 89 of file cluster.hpp.
|
inlinevirtual |
Base implementation. Does nothing.
strval | const std::string& |
Reimplemented in NumeRe::ClusterDoubleItem, and NumeRe::ClusterStringItem.
Definition at line 134 of file cluster.hpp.
|
private |
Definition at line 41 of file cluster.hpp.
Referenced by getType().