Open Lighting Architecture
0.9.4
|
A signed 32bit int value.
Public Member Functions | |
JsonInt (int value) | |
Create a new JsonInt. | |
bool | operator== (const JsonValue &other) const |
Equality operator. | |
bool | operator< (const JsonNumber &other) const |
Less than operator. | |
bool | MultipleOf (const JsonNumber &other) const |
Checks if the remainder if non-0;. | |
void | Accept (JsonValueVisitorInterface *visitor) |
The Accept method for the visitor pattern. | |
void | Accept (JsonValueConstVisitorInterface *visitor) const |
The Accept (const) method for the visitor pattern. | |
JsonValue * | Clone () const |
Make a copy of this JsonValue. | |
int | Value () const |
Return the int32_t value. | |
Public Member Functions inherited from ola::web::JsonNumber | |
bool | operator<= (const JsonNumber &other) const |
Less than or equals operator. | |
bool | operator> (const JsonNumber &other) const |
Greater than operator. | |
bool | operator>= (const JsonNumber &other) const |
Greater than or equals operator. |
|
inlineexplicit |
Create a new JsonInt.
value | the int to use. |
|
inlinevirtual |
The Accept method for the visitor pattern.
This can be used to traverse the Json Tree in a type-safe manner.
Implements ola::web::JsonValue.
|
inlinevirtual |
The Accept (const) method for the visitor pattern.
This can be used to traverse the Json Tree in a type-safe manner.
Implements ola::web::JsonValue.
|
inlinevirtual |
Equality operator.
This implements equality as defined in section 3.6 of the JSON Schema Core document.
Implements ola::web::JsonValue.