A JSON number represented as a C++ class.
More...
#include <json.h>
A JSON number represented as a C++ class.
_ASYNCRTIMP bool web::json::number::is_int32 |
( |
| ) |
const |
Does the number fit into int32?
- Returns
true
if the number fits into int32, false
otherwise
_ASYNCRTIMP bool web::json::number::is_int64 |
( |
| ) |
const |
Does the number fit into int64?
- Returns
true
if the number fits into int64, false
otherwise
bool web::json::number::is_integral |
( |
| ) |
const |
|
inline |
Is the number represented internally as an integral type?
- Returns
true
if the number is represented as an integral type, false
otherwise
_ASYNCRTIMP bool web::json::number::is_uint32 |
( |
| ) |
const |
Does the number fit into unsigned int32?
- Returns
true
if the number fits into unsigned int32, false
otherwise
bool web::json::number::is_uint64 |
( |
| ) |
const |
|
inline |
Does the number fit into unsigned int64?
- Returns
true
if the number fits into unsigned int64, false
otherwise
bool web::json::number::operator== |
( |
const number & |
other | ) |
const |
|
inline |
Compares two JSON numbers for equality.
- Parameters
-
other | The JSON number to compare with. |
- Returns
- True iff the numbers are equal.
double web::json::number::to_double |
( |
| ) |
const |
|
inline |
Converts the JSON number to a C++ double.
- Returns
- A double representation of the number
int32_t web::json::number::to_int32 |
( |
| ) |
const |
|
inline |
Converts the JSON number to int32.
- Returns
- An int32 representation of the number
int64_t web::json::number::to_int64 |
( |
| ) |
const |
|
inline |
Converts the JSON number to int64.
- Returns
- An int64 representation of the number
uint32_t web::json::number::to_uint32 |
( |
| ) |
const |
|
inline |
Converts the JSON number to unsigned int32.
- Returns
- An usigned int32 representation of the number
uint64_t web::json::number::to_uint64 |
( |
| ) |
const |
|
inline |
Converts the JSON number to unsigned int64.
- Returns
- An unsigned int64 representation of the number
The documentation for this class was generated from the following file: