NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This is a cluster item, which contains a double. It features conversions to and from strings on-the-fly. More...
#include <cluster.hpp>
Public Member Functions | |
ClusterDoubleItem (const mu::value_type &value) | |
virtual | ~ClusterDoubleItem () override |
virtual mu::value_type | getDouble () override |
Returns the internal value. More... | |
virtual void | setDouble (const mu::value_type &val) override |
Overwrites the internal value. More... | |
virtual std::string | getString () override |
Returns the internal value converted to a string. More... | |
virtual std::string | getInternalString () override |
Returns the internal value converted to a string. More... | |
virtual std::string | getParserString () override |
Returns the internal value converted to a string. More... | |
virtual void | setString (const std::string &strval) override |
Overwrites the internal value with the passed string, which will converted to a value first. More... | |
Public Member Functions inherited from NumeRe::ClusterItem | |
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 | |
mu::value_type | dData |
Additional Inherited Members | |
Public Types inherited from NumeRe::ClusterItem | |
enum | ClusterItemType { ITEMTYPE_INVALID = -1 , ITEMTYPE_MIXED , ITEMTYPE_DOUBLE , ITEMTYPE_STRING } |
Defines the available types of clusters. More... | |
This is a cluster item, which contains a double. It features conversions to and from strings on-the-fly.
Definition at line 144 of file cluster.hpp.
|
inline |
Definition at line 150 of file cluster.hpp.
|
inlineoverridevirtual |
Definition at line 151 of file cluster.hpp.
|
inlineoverridevirtual |
Returns the internal value.
Reimplemented from NumeRe::ClusterItem.
Definition at line 159 of file cluster.hpp.
References dData.
|
inlineoverridevirtual |
Returns the internal value converted to a string.
Reimplemented from NumeRe::ClusterItem.
Definition at line 198 of file cluster.hpp.
References date::abs(), dData, mu::isnan(), and toString().
Referenced by getParserString().
|
inlineoverridevirtual |
Returns the internal value converted to a string.
Reimplemented from NumeRe::ClusterItem.
Definition at line 213 of file cluster.hpp.
References getInternalString().
|
inlineoverridevirtual |
Returns the internal value converted to a string.
Reimplemented from NumeRe::ClusterItem.
Definition at line 183 of file cluster.hpp.
References date::abs(), dData, mu::isnan(), toExternalString(), and toString().
|
inlineoverridevirtual |
Overwrites the internal value.
val | const mu::value_type& |
Reimplemented from NumeRe::ClusterItem.
Definition at line 171 of file cluster.hpp.
References dData.
|
inlineoverridevirtual |
Overwrites the internal value with the passed string, which will converted to a value first.
strval | const std::string& |
Reimplemented from NumeRe::ClusterItem.
Definition at line 227 of file cluster.hpp.
References CONVTYPE_VALUE, dData, isConvertible(), StrToCmplx(), and toInternalString().
|
private |
Definition at line 147 of file cluster.hpp.
Referenced by getDouble(), getInternalString(), getString(), setDouble(), and setString().