|
Zakero's C++ Header Libraries
A collection of reusable C++ libraries
|
An array of Objects. More...
Public Member Functions | |
| size_t | append (Array &) noexcept |
| Append an Array. More... | |
| size_t | append (const Array &) noexcept |
| Append an Array. More... | |
| size_t | append (const bool) noexcept |
| Append a boolean value. More... | |
| size_t | append (const double) noexcept |
| Append a 64-bit floating point value. More... | |
| size_t | append (const Ext &) noexcept |
| Append an extension. More... | |
| size_t | append (const float) noexcept |
| Append a 32-bit floating point value. More... | |
| size_t | append (const int64_t) noexcept |
| Append a signed integer value. More... | |
| size_t | append (const Map &) noexcept |
| Append a Map. More... | |
| size_t | append (const Object &) noexcept |
| Append an Object. More... | |
| size_t | append (const std::string_view) noexcept |
| Append a string. More... | |
| size_t | append (const std::vector< uint8_t > &) noexcept |
| Append a vector of binary data. More... | |
| size_t | append (const uint64_t) noexcept |
| Append an unsigned integer value. More... | |
| size_t | append (Ext &) noexcept |
| Append an extension. More... | |
| size_t | append (Map &) noexcept |
| Append a Map. More... | |
| size_t | append (Object &) noexcept |
| Append an Object. More... | |
| size_t | append (std::vector< uint8_t > &) noexcept |
| Append a vector of binary data. More... | |
| size_t | appendNull () noexcept |
| Append a "Null" value. More... | |
| void | clear () noexcept |
| Remove all data from the Array. More... | |
| const Object & | object (const size_t index) const noexcept |
| Access a data object. More... | |
| Object & | object (const size_t index) noexcept |
| Access a data object. More... | |
| size_t | size () const noexcept |
| Get the size of the Array. More... | |
Public Attributes | |
| std::vector< Object > | object_vector |
| Store the Object data. More... | |
The role of this structure is to store a collection of Objects in a resizable array. The underling object_vector can be accessed directly or use the helper methods to increase code readability.
Objects can be tested to find out if they are Arrays by using Object::isArray() and converted into an Array with Object::asArray(). An Array can not be converted into an Object. However, an Object can be constructed using an Array.
|
noexcept |
The array will be appended to the contents of this Array.
value was stored. | array | The Array to add |
|
noexcept |
The array will be appended to the contents of this Array.
value was stored. | array | The Array to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
The value will be appended to the contents of this Array.
value was stored. | ext | The Ext to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
The value will be appended to the contents of this Array.
value was stored. | map | The Map to add |
|
noexcept |
The value will be appended to the contents of this Array.
value was stored. | object | The object to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
|
noexcept |
The value will be appended to the contents of this Array.
value was stored. | map | The Map to add |
|
noexcept |
The value will be appended to the contents of this Array.
value was stored. | object | The object to add |
|
noexcept |
The value will be appended to the contents of the Array.
value was stored. | value | The value to add |
|
noexcept |
A "Null" value will be appended to the contents of this Array.
|
inlinenoexcept |
Remove all data from the Array.
|
inlinenoexcept |
After data has been added to the Array, that data can still be access by using its index value. The data object's type will be the C++ datatype, not the MessagePack format type.
The returned Object is Read-Only.
| index | The index of the data object. |
|
inlinenoexcept |
After data has been added to the Array, that data can still be access by using its index value. The data object's type will be the C++ datatype, not the MessagePack format type.
The returned Object can be modified as needed.
| index | The index of the data object. |
|
inlinenoexcept |
| zakero::messagepack::Array::object_vector |
The object_vector is used to store all the Qbjects in the Array.