![]() |
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... | |
![]() | |
virtual | ~Value () |
DATA_TYPE | GetDataType () const |
Will return the data type of this value. More... | |
Additional Inherited Members | |
![]() | |
Value (DATA_TYPE type) | |
![]() | |
DATA_TYPE | type |
Specializations for floating point values (uses long double)
Definition at line 9 of file FloatValue.h.
FloatValue::FloatValue | ( | const long double & | value | ) |
Definition at line 7 of file FloatValue.cpp.
|
inlineoverride |
Definition at line 13 of file FloatValue.h.
|
overridevirtual |
Will return a deeopopy of this object.
Implements Hazelnp::Value.
Definition at line 15 of file FloatValue.cpp.
|
overridevirtual |
Will return a string suitable for an std::ostream;.
Implements Hazelnp::Value.
Definition at line 20 of file FloatValue.cpp.
|
overridevirtual |
Will return the data as a double.
Implements Hazelnp::Value.
Definition at line 59 of file FloatValue.cpp.
|
overridevirtual |
Will return the data as a long double.
Implements Hazelnp::Value.
Definition at line 54 of file FloatValue.cpp.
|
overridevirtual |
Will return the data as an int.
Implements Hazelnp::Value.
Definition at line 49 of file FloatValue.cpp.
|
overridevirtual |
Will return the data as a long long int.
Implements Hazelnp::Value.
Definition at line 44 of file FloatValue.cpp.
|
overridevirtual |
Throws HazelnuppValueNotConvertibleException.
Implements Hazelnp::Value.
Definition at line 72 of file FloatValue.cpp.
|
overridevirtual |
Will return the data as a string.
Implements Hazelnp::Value.
Definition at line 64 of file FloatValue.cpp.
const long double & FloatValue::GetValue | ( | ) | const |
FloatValue::operator double | ( | ) | const |
Definition at line 37 of file FloatValue.cpp.
FloatValue::operator long double | ( | ) | const |
Definition at line 32 of file FloatValue.cpp.