![]() |
Leonetienne/Hazelnupp
Simple, easy to use, command line parameter interface
|
Specializations for floating point values (uses long double) More...
#include <FloatValue.h>


Public Member Functions | |
| FloatValue (const long double &value) | |
| ~FloatValue () override | |
| Value * | Deepcopy () const override |
| Will return a deeopopy of this object. More... | |
| std::string | GetAsOsString () const override |
| Will return a string suitable for an std::ostream;. More... | |
| const long double & | GetValue () const |
| Will return the raw value. More... | |
| operator long double () const | |
| operator double () const | |
| long long int | GetInt64 () const override |
| Will return the data as a long long int. More... | |
| int | GetInt32 () const override |
| Will return the data as an int. More... | |
| long double | GetFloat64 () const override |
| Will return the data as a long double. More... | |
| double | GetFloat32 () const override |
| Will return the data as a double. More... | |
| std::string | GetString () const override |
| Will return the data as a string. More... | |
| const std::vector< Value * > & | GetList () const override |
| Throws HazelnuppValueNotConvertibleException. More... | |
Public Member Functions inherited from Value | |
| virtual | ~Value () |
| DATA_TYPE | GetDataType () const |
| Will return the data type of this value. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Value | |
| Value (DATA_TYPE type) | |
Protected Attributes inherited from Value | |
| DATA_TYPE | type |
Specializations for floating point values (uses long double)
Definition at line 7 of file FloatValue.h.
| FloatValue::FloatValue | ( | const long double & | value | ) |
Definition at line 5 of file FloatValue.cpp.
|
inlineoverride |
Definition at line 11 of file FloatValue.h.
|
overridevirtual |
Will return a deeopopy of this object.
Implements Value.
Definition at line 13 of file FloatValue.cpp.
|
overridevirtual |
Will return a string suitable for an std::ostream;.
Implements Value.
Definition at line 18 of file FloatValue.cpp.
|
overridevirtual |
|
overridevirtual |
Will return the data as a long double.
Implements Value.
Definition at line 52 of file FloatValue.cpp.
|
overridevirtual |
|
overridevirtual |
Will return the data as a long long int.
Implements Value.
Definition at line 42 of file FloatValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Value.
Definition at line 70 of file FloatValue.cpp.
|
overridevirtual |
| const long double & FloatValue::GetValue | ( | ) | const |
| FloatValue::operator double | ( | ) | const |
Definition at line 35 of file FloatValue.cpp.
| FloatValue::operator long double | ( | ) | const |
Definition at line 30 of file FloatValue.cpp.
1.8.17