#include <Json.h>
|
| JsonNum () |
| By default, this is 0.
|
|
| JsonNum (uint64_t n) |
|
| JsonNum (int64_t n) |
|
| JsonNum (double n) |
|
| JsonNum (int n) |
|
JsonNumType | get_type () |
|
uint64_t | as_uint () const |
|
int64_t | as_int () const |
|
double | as_float () const |
|
double | as_double () const |
|
| operator uint64_t () const |
|
| operator int64_t () const |
|
| operator double () const |
|
bool | operator== (const JsonNum &rhs) const |
|
std::string | to_string () const |
| Return string equivalent of stored value.
|
|
std::string | dump () const |
| Same as to_string()
|
|
|
JsonNumType | m_type |
| The type of number.
|
|
union { |
uint64_t | m_pos |
| Positive integer.
|
|
int64_t | m_neg |
| Negative integer.
|
|
double | m_flt |
| (Double precision) floating point number
|
|
}; | |
|
- Todo:
- add math operators
A Json Number
Definition at line 25 of file Json.h.
The documentation for this class was generated from the following file: