value builder class, filled by balanced SAX calls.
More...
#include <value_builder.hpp>
value builder class, filled by balanced SAX calls.
◆ ValueBuilder() [1/3]
| join::ValueBuilder::ValueBuilder |
( |
Value & | root | ) |
|
|
inlineexplicit |
create instance.
- Parameters
-
| root | value receiving the document. |
◆ ValueBuilder() [2/3]
| join::ValueBuilder::ValueBuilder |
( |
const ValueBuilder & | other | ) |
|
|
delete |
copy constructor.
- Parameters
-
◆ ValueBuilder() [3/3]
move constructor.
- Parameters
-
◆ ~ValueBuilder()
| join::ValueBuilder::~ValueBuilder |
( |
| ) |
|
|
inline |
◆ members()
| const Object & join::ValueBuilder::members |
( |
const Object & | object | ) |
const |
|
inlinenoexcept |
get object members in writing order.
- Parameters
-
- Returns
- object members in insertion order.
◆ operator=() [1/2]
copy assignment.
- Parameters
-
- Returns
- a reference of the current object.
◆ operator=() [2/2]
move assignment.
- Parameters
-
- Returns
- a reference of the current object.
◆ reset()
| void join::ValueBuilder::reset |
( |
| ) |
|
|
inlinenoexcept |
reset the parsing state, leaving the root untouched.
◆ setBool()
| int join::ValueBuilder::setBool |
( |
bool | value | ) |
|
|
inline |
set boolean value.
- Parameters
-
| value | boolean value to set. |
- Returns
- 0 on success, -1 otherwise.
◆ setDouble()
| int join::ValueBuilder::setDouble |
( |
double | value | ) |
|
|
inline |
set real value.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setInt()
| int join::ValueBuilder::setInt |
( |
int32_t | value | ) |
|
|
inline |
set integer value.
- Parameters
-
| value | integer value to set. |
- Returns
- 0 on success, -1 otherwise.
◆ setInt64()
| int join::ValueBuilder::setInt64 |
( |
int64_t | value | ) |
|
|
inline |
set 64 bits integer value.
- Parameters
-
| value | 64 bits integer value to set. |
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [1/9]
| int join::ValueBuilder::setKey |
( |
bool | key | ) |
|
|
inline |
set boolean key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [2/9]
| int join::ValueBuilder::setKey |
( |
const char * | key | ) |
|
|
inline |
set string key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [3/9]
| int join::ValueBuilder::setKey |
( |
double | key | ) |
|
|
inline |
set real key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [4/9]
| int join::ValueBuilder::setKey |
( |
int32_t | key | ) |
|
|
inline |
set integer key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [5/9]
| int join::ValueBuilder::setKey |
( |
int64_t | key | ) |
|
|
inline |
set 64 bits integer key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [6/9]
| int join::ValueBuilder::setKey |
( |
std::nullptr_t | key | ) |
|
|
inline |
set null key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [7/9]
| int join::ValueBuilder::setKey |
( |
std::string_view | key | ) |
|
|
inline |
set string key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [8/9]
| int join::ValueBuilder::setKey |
( |
uint32_t | key | ) |
|
|
inline |
set unsigned integer key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setKey() [9/9]
| int join::ValueBuilder::setKey |
( |
uint64_t | key | ) |
|
|
inline |
set unsigned 64 bits integer key.
- Parameters
-
- Returns
- 0 on success, -1 otherwise.
◆ setNull()
| int join::ValueBuilder::setNull |
( |
| ) |
|
|
inline |
set null value.
- Returns
- 0 on success, -1 otherwise.
◆ setString()
| int join::ValueBuilder::setString |
( |
std::string_view | value | ) |
|
|
inline |
set string value.
- Parameters
-
| value | string value to set. |
- Returns
- 0 on success, -1 otherwise.
◆ setUint()
| int join::ValueBuilder::setUint |
( |
uint32_t | value | ) |
|
|
inline |
set unsigned integer value.
- Parameters
-
| value | unsigned integer value to set. |
- Returns
- 0 on success, -1 otherwise.
◆ setUint64()
| int join::ValueBuilder::setUint64 |
( |
uint64_t | value | ) |
|
|
inline |
set unsigned 64 bits integer value.
- Parameters
-
| value | unsigned 64 bits integer value to set. |
- Returns
- 0 on success, -1 otherwise.
◆ startArray()
| int join::ValueBuilder::startArray |
( |
uint32_t | size = 0 | ) |
|
|
inline |
start array.
- Parameters
-
| size | array size (ignored). |
- Returns
- 0 on success, -1 otherwise.
◆ startObject()
| int join::ValueBuilder::startObject |
( |
uint32_t | size = 0 | ) |
|
|
inline |
start object.
- Parameters
-
| size | object size (ignored). |
- Returns
- 0 on success, -1 otherwise.
◆ stopArray()
| int join::ValueBuilder::stopArray |
( |
| ) |
|
|
inline |
stop array.
- Returns
- 0 on success, -1 otherwise.
◆ stopObject()
| int join::ValueBuilder::stopObject |
( |
| ) |
|
|
inline |
stop object.
- Returns
- 0 on success, -1 otherwise.
The documentation for this class was generated from the following file: