|
NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
|
This is a cluster item, which contains a string. It features conversions to and from doubles on-the-fly. More...
#include <cluster.hpp>
Public Member Functions | |
| ClusterStringItem (const std::string &strval) | |
| virtual | ~ClusterStringItem () override |
| virtual mu::value_type | getDouble () override |
| Returns the internal string converted to a value. More... | |
| virtual void | setDouble (const mu::value_type &val) override |
| Overwrites the internal string with the passed value, which will be converted to a string first. More... | |
| virtual std::string | getString () override |
| Returns the internal string. More... | |
| virtual std::string | getInternalString () override |
| Returns the internal string. More... | |
| virtual void | setString (const std::string &strval) override |
| Overwrites the internal string. 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 | |
| std::string | sData |
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 string. It features conversions to and from doubles on-the-fly.
Definition at line 242 of file cluster.hpp.
|
inline |
Definition at line 248 of file cluster.hpp.
References setString().
|
inlineoverridevirtual |
Definition at line 249 of file cluster.hpp.
|
inlineoverridevirtual |
Returns the internal string converted to a value.
Reimplemented from NumeRe::ClusterItem.
Definition at line 258 of file cluster.hpp.
References CONVTYPE_VALUE, isConvertible(), sData, and StrToCmplx().
|
inlineoverridevirtual |
Returns the internal string.
Reimplemented from NumeRe::ClusterItem.
Definition at line 297 of file cluster.hpp.
References sData.
|
inlineoverridevirtual |
Returns the internal string.
Reimplemented from NumeRe::ClusterItem.
Definition at line 286 of file cluster.hpp.
References sData, and toExternalString().
|
inlineoverridevirtual |
Overwrites the internal string with the passed value, which will be converted to a string first.
| val | const mu::value_type& |
Reimplemented from NumeRe::ClusterItem.
Definition at line 275 of file cluster.hpp.
References sData, and toString().
|
inlineoverridevirtual |
Overwrites the internal string.
| strval | const std::string& |
Reimplemented from NumeRe::ClusterItem.
Definition at line 309 of file cluster.hpp.
References sData.
Referenced by ClusterStringItem().
|
private |
Definition at line 245 of file cluster.hpp.
Referenced by getDouble(), getInternalString(), getString(), setDouble(), and setString().