Open Lighting Architecture  0.10.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | List of all members
ola::web::JsonUInt Class Reference

Detailed Description

An unsigned 32bit int value.

Inheritance diagram for ola::web::JsonUInt:
Inheritance graph
[legend]
Collaboration diagram for ola::web::JsonUInt:
Collaboration graph
[legend]

Public Member Functions

 JsonUInt (unsigned int value)
 Create a new JsonUInt. More...
 
bool operator== (const JsonValue &other) const
 Equality operator. More...
 
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. More...
 
void Accept (JsonValueConstVisitorInterface *visitor) const
 The Accept (const) method for the visitor pattern. More...
 
JsonValueClone () const
 Make a copy of this JsonValue.
 
unsigned int Value () const
 Return the uint32_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.
 
- Public Member Functions inherited from ola::web::JsonValue
virtual JsonValueLookupElement (const JsonPointer &pointer)
 Locate the JsonValue referred to by the JSON Pointer.
 
virtual bool operator!= (const JsonValue &other) const
 Not-equals operator.
 

Constructor & Destructor Documentation

ola::web::JsonUInt::JsonUInt ( unsigned int  value)
inlineexplicit

Create a new JsonUInt.

Parameters
valuethe unsigned int to use.

Member Function Documentation

void ola::web::JsonUInt::Accept ( JsonValueVisitorInterface visitor)
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.

void ola::web::JsonUInt::Accept ( JsonValueConstVisitorInterface visitor) const
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.

bool ola::web::JsonUInt::operator== ( const JsonValue other) const
inlinevirtual

Equality operator.

This implements equality as defined in section 3.6 of the JSON Schema Core document.

Implements ola::web::JsonValue.


The documentation for this class was generated from the following files: