ejson::Number Class Reference
#include <Number.hpp>
Inheritance diagram for ejson::Number:
Public Member Functions | |
Number (ememory::SharedPtr< ejson::internal::Value > _internalValue) | |
Number (const ejson::Number &_obj) | |
Number (double _value=0.0) | |
ejson::Number & | operator= (const ejson::Number &_obj) |
void | set (double _value) |
void | set (uint64_t _value) |
void | set (int64_t _value) |
double | get (double _errorValue=0.0) const |
uint64_t | getU64 (uint64_t _errorValue=0) const |
int64_t | getI64 (int64_t _errorValue=0) const |
ejson::internal::Number::type | getType () const |
Public Member Functions inherited from ejson::Value | |
enum ejson::valueType | getType () const |
Value (const ememory::SharedPtr< ejson::internal::Value > &_internalValue) | |
Value () | |
virtual | ~Value ()=default |
void | display () const |
bool | exist () const |
ejson::Document | toDocument () |
const ejson::Document | toDocument () const |
ejson::Array | toArray () |
const ejson::Array | toArray () const |
ejson::Object | toObject () |
const ejson::Object | toObject () const |
ejson::String | toString () |
const ejson::String | toString () const |
ejson::Number | toNumber () |
const ejson::Number | toNumber () const |
ejson::Boolean | toBoolean () |
const ejson::Boolean | toBoolean () const |
ejson::Null | toNull () |
const ejson::Null | toNull () const |
bool | isDocument () const |
bool | isArray () const |
bool | isObject () const |
bool | isString () const |
bool | isNumber () const |
bool | isBoolean () const |
bool | isNull () const |
void | clear () |
bool | transfertIn (ejson::Value &_obj) |
ejson::Value | clone () const |
std::string | generateHumanString () const |
std::string | generateMachineString () const |
Additional Inherited Members | |
Protected Attributes inherited from ejson::Value | |
ememory::SharedPtr< ejson::internal::Value > | m_data |
Detailed Description
ejson Number interface.
Constructor & Destructor Documentation
§ Number() [1/3]
ejson::Number::Number | ( | ememory::SharedPtr< ejson::internal::Value > | _internalValue | ) |
Constructor.
- Parameters
-
[in] _internalValue Internal Value to set data
§ Number() [2/3]
ejson::Number::Number | ( | const ejson::Number & | _obj | ) |
Copy constructor.
- Parameters
-
[in] _obj Object to copy
§ Number() [3/3]
ejson::Number::Number | ( | double | _value = 0.0 | ) |
Constructor.
- Parameters
-
[in] _value number value
Member Function Documentation
§ get()
double ejson::Number::get | ( | double | _errorValue = 0.0 | ) | const |
§ getI64()
int64_t ejson::Number::getI64 | ( | int64_t | _errorValue = 0 | ) | const |
§ getU64()
uint64_t ejson::Number::getU64 | ( | uint64_t | _errorValue = 0 | ) | const |
§ operator=()
ejson::Number& ejson::Number::operator= | ( | const ejson::Number & | _obj | ) |
§ set() [1/3]
void ejson::Number::set | ( | double | _value | ) |
set the value of the node.
- Parameters
-
[in] _value New value of the node.
§ set() [2/3]
void ejson::Number::set | ( | uint64_t | _value | ) |
set the value of the node.
- Parameters
-
[in] _value New value of the node (integer mode).
§ set() [3/3]
void ejson::Number::set | ( | int64_t | _value | ) |
set the value of the node.
- Parameters
-
[in] _value New value of the node (integer mode).
The documentation for this class was generated from the following file:
- framework/atria-soft/ejson/ejson/Number.hpp