|
join 1.0
lightweight network framework library
|
value class. More...
#include <value.hpp>
Public Types | |
| enum | Index : size_t { NullValue = 0 , BooleanValue = 1 , IntegerValue = 2 , UnsignedValue = 3 , Integer64Value = 4 , Unsigned64Value = 5 , RealValue = 6 , StringValue = 7 , ArrayValue = 8 , ObjectValue = 9 } |
| nested value type index. More... | |
Public Member Functions | |
| constexpr | Value ()=default |
| default constructor. | |
| constexpr | Value (std::nullptr_t value) |
| constructs a null value. | |
| constexpr | Value (bool value) |
| constructs a boolean value. | |
| constexpr | Value (int32_t value) |
| constructs an integer value. | |
| constexpr | Value (uint32_t value) |
| constructs an unsigned integer value. | |
| constexpr | Value (int64_t value) |
| constructs a 64 bits integer value. | |
| constexpr | Value (uint64_t value) |
| constructs a 64 bits unsigned integer value. | |
| constexpr | Value (double value) |
| constructs a real value. | |
| Value (const char *value) | |
| constructs a string value from a C-style string. | |
| Value (std::string_view value) | |
| constructs a string value from a string view. | |
| Value (const std::string &value) | |
| constructs a string value. | |
| Value (std::string &&value) | |
| constructs a string value. | |
| Value (const Array &value) | |
| constructs an array value. | |
| Value (Array &&value) | |
| constructs an array value. | |
| Value (const Object &value) | |
| constructs an object value. | |
| Value (Object &&value) | |
| constructs an object value. | |
| constexpr | Value (const Value &other)=default |
| copy constructor. | |
| Value & | operator= (const Value &other)=default |
| copy assignment. | |
| constexpr | Value (Value &&other)=default |
| move constructor. | |
| Value & | operator= (Value &&other)=default |
| move assignment. | |
| ~Value ()=default | |
| destroy the Value instance. | |
| constexpr std::size_t | index () const noexcept |
| get the index of the alternative in use. | |
| constexpr bool | isNull () const |
| check if the variable held by value is a null value. | |
| constexpr bool | isBool () const |
| check if the variable held by value is a boolean value. | |
| constexpr bool | getBool () const |
| get variable held by value as a boolean value. | |
| operator bool () const | |
| explicit conversion function for boolean value. | |
| constexpr bool | isTrue () const |
| check if the content of the value is true. | |
| constexpr bool | isFalse () const |
| check if the content of the value is false. | |
| constexpr bool | isNumber () const |
| check if the variable held by value is a number value. | |
| constexpr bool | isInt8 () const |
| check if the variable held by value is a 8 bits integer value. | |
| constexpr int8_t | getInt8 () const |
| get variable held by value as a 8 bits integer. | |
| operator int8_t () const | |
| explicit conversion function for 8 bits integer value. | |
| constexpr bool | isUint8 () const |
| check if the variable held by value is a 8 bits unsigned integer value. | |
| constexpr uint8_t | getUint8 () const |
| get variable held by value as a 8 bits unsigned integer. | |
| operator uint8_t () const | |
| explicit conversion function for 8 bits unsigned integer value. | |
| constexpr bool | isInt16 () const |
| check if the variable held by value is a 16 bits integer value. | |
| constexpr int16_t | getInt16 () const |
| get variable held by value as a 16 bits integer. | |
| operator int16_t () const | |
| explicit conversion function for 16 bits integer value. | |
| constexpr bool | isUint16 () const |
| check if the variable held by value is a 16 bits unsigned integer value. | |
| constexpr uint16_t | getUint16 () const |
| get variable held by value as a 16 bits unsigned integer. | |
| operator uint16_t () const | |
| explicit conversion function for 16 bits unsigned integer value. | |
| constexpr bool | isInt () const |
| check if the variable held by value is a 32 bits integer value. | |
| constexpr int32_t | getInt () const |
| get variable held by value as a 32 bits integer. | |
| operator int32_t () const | |
| explicit conversion function for 32 bits integer value. | |
| constexpr bool | isUint () const |
| check if the variable held by value is a 32 bits unsigned integer value. | |
| constexpr uint32_t | getUint () const |
| get variable held by value as a 32 bits unsigned integer value. | |
| operator uint32_t () const | |
| explicit conversion function for 32 bits unsigned integer value. | |
| constexpr bool | isInt64 () const |
| check if the variable held by value is a 64 bits integer value. | |
| constexpr int64_t | getInt64 () const |
| get variable held by value as a 64 bits integer value. | |
| operator int64_t () const | |
| explicit conversion function for 64 bits integer value. | |
| constexpr bool | isUint64 () const |
| check if the variable held by value is a 64 bits unsigned integer value. | |
| constexpr uint64_t | getUint64 () const |
| get variable held by value as a 64 bits unsigned integer value. | |
| operator uint64_t () const | |
| explicit conversion function for 64 bits unsigned integer value. | |
| constexpr bool | isFloat () const |
| check if the variable held by value is a float value. | |
| constexpr float | getFloat () const |
| get variable held by value as a float value. | |
| operator float () const | |
| explicit conversion function for float value. | |
| constexpr bool | isDouble () const |
| check if the variable held by value is a double value. | |
| constexpr double | getDouble () const |
| get variable held by value as a double value. | |
| operator double () const | |
| explicit conversion function for double value. | |
| constexpr bool | isString () const |
| check if the variable held by value is a string value. | |
| constexpr std::string_view | getString () const |
| get variable held by value as a string value. | |
| operator std::string_view () const | |
| explicit conversion function for string value. | |
| constexpr bool | isArray () const |
| check if the variable held by value is an array. | |
| constexpr const Array & | getArray () const |
| get variable held by value as an array. | |
| constexpr Array & | getArray () |
| get variable held by value as an array. | |
| constexpr bool | isObject () const |
| check if the variable held by value is an object. | |
| constexpr const Object & | getObject () const |
| get variable held by value as an object. | |
| constexpr Object & | getObject () |
| get variable held by value as an object. | |
| Value & | at (std::nullptr_t key) |
| returns a reference to the value mapped to key. | |
| Value & | at (bool key) |
| returns a reference to the value mapped to key. | |
| Value & | at (int32_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | at (uint32_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | at (int64_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | at (uint64_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | at (double key) |
| returns a reference to the value mapped to key. | |
| Value & | at (std::string_view key) |
| returns a reference to the value mapped to key. | |
| Value & | at (const char *key) |
| returns a reference to the value mapped to key. | |
| const Value & | at (std::nullptr_t key) const |
| returns a reference to the value mapped to key. | |
| const Value & | at (bool key) const |
| returns a reference to the value mapped to key. | |
| const Value & | at (int32_t key) const |
| returns a reference to the value at position pos or mapped to key. | |
| const Value & | at (uint32_t key) const |
| returns a reference to the value at position pos or mapped to key. | |
| const Value & | at (int64_t key) const |
| returns a reference to the value at position pos or mapped to key. | |
| const Value & | at (uint64_t key) const |
| returns a reference to the value at position pos or mapped to key. | |
| const Value & | at (double key) const |
| returns a reference to the value mapped to key. | |
| const Value & | at (std::string_view key) const |
| returns a reference to the value mapped to key. | |
| const Value & | at (const char *key) const |
| returns a reference to the value mapped to key. | |
| Value & | operator[] (std::nullptr_t key) |
| returns a reference to the value mapped to key. | |
| Value & | operator[] (bool key) |
| returns a reference to the value mapped to key. | |
| Value & | operator[] (int32_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | operator[] (uint32_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | operator[] (int64_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | operator[] (uint64_t key) |
| returns a reference to the value at position pos or mapped to key. | |
| Value & | operator[] (double key) |
| returns a reference to the value mapped to key. | |
| Value & | operator[] (std::string_view key) |
| returns a reference to the value mapped to key. | |
| Value & | operator[] (const char *key) |
| returns a reference to the value mapped to key. | |
| bool | empty () const |
| check if the nested container is empty. | |
| size_t | size () const |
| returns the number of elements in the nested container. | |
| void | reserve (size_t cap) |
| increase the capacity of the nested container. | |
| void | clear () |
| erases all elements in the nested container. | |
| Value & | insert (const Member &member) |
| insert element in the nested container. | |
| Value & | insert (Member &&member) |
| insert element in the nested container. | |
| size_t | erase (std::nullptr_t key) |
| removes member with the key equivalent to key. | |
| size_t | erase (bool key) |
| removes member with the key equivalent to key. | |
| size_t | erase (int32_t key) |
| removes member with the key equivalent to key. | |
| size_t | erase (uint32_t key) |
| removes member with the key equivalent to key. | |
| size_t | erase (int64_t key) |
| removes member with the key equivalent to key. | |
| size_t | erase (uint64_t key) |
| removes member with the key equivalent to key. | |
| size_t | erase (double key) |
| removes member with the key equivalent to key. | |
| size_t | erase (std::string_view key) |
| removes member with the key equivalent to key. | |
| size_t | erase (const char *key) |
| removes member with the key equivalent to key. | |
| template<typename... Args> | |
| Value & | emplaceBack (Args &&... args) |
| constructs an element in place at the end of the nested container. | |
| Value & | pushBack (const Value &value) |
| appends element at the end of the nested container. | |
| Value & | pushBack (Value &&value) |
| appends element at the end of the nested container. | |
| void | popBack () |
| removes the last element of the nested container. | |
| bool | contains (std::nullptr_t key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (bool key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (int32_t key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (uint32_t key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (int64_t key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (uint64_t key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (double key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (std::string_view key) const |
| checks if the nested container contains an element that is mapped to key. | |
| bool | contains (const char *key) const |
| checks if the nested container contains an element that is mapped to key. | |
| void | swap (Value &other) |
| exchanges the contents of the value with those of other. | |
| template<typename Handler > | |
| int | serialize (Handler &handler) const |
| serialize the value, resetting the handler on failure. | |
| template<typename Reader , typename... Args> | |
| int | deserialize (Args &&... args) |
| deserialize a document into the value. | |
| template<typename Writer , typename... Args> | |
| int | serialize (std::ostream &document, Args &&... args) const |
| serialize the value to a stream. | |
| int | jsonRead (const char *document, size_t length) |
| deserialize a json document. | |
| int | jsonRead (const char *first, const char *last) |
| deserialize a json document. | |
| int | jsonRead (std::string_view document) |
| deserialize a json document. | |
| int | jsonRead (std::stringstream &document) |
| deserialize a json document. | |
| int | jsonRead (std::istringstream &document) |
| deserialize a json document. | |
| int | jsonRead (std::fstream &document) |
| deserialize a json document. | |
| int | jsonRead (std::ifstream &document) |
| deserialize a json document. | |
| int | jsonRead (std::iostream &document) |
| deserialize a json document. | |
| int | jsonRead (std::istream &document) |
| deserialize a json document. | |
| int | jsonWrite (std::ostream &document, size_t indentation=0) const |
| serialize json data. | |
| int | jsonCanonicalize (std::ostream &document) const |
| serialize canonicalized json data. | |
| int | packRead (const char *document, size_t length) |
| deserialize a msgpack document. | |
| int | packRead (const char *first, const char *last) |
| deserialize a msgpack document. | |
| int | packRead (std::string_view document) |
| deserialize a msgpack document. | |
| int | packRead (std::stringstream &document) |
| deserialize a msgpack document. | |
| int | packRead (std::istringstream &document) |
| deserialize a msgpack document. | |
| int | packRead (std::fstream &document) |
| deserialize a msgpack document. | |
| int | packRead (std::ifstream &document) |
| deserialize a msgpack document. | |
| int | packRead (std::iostream &document) |
| deserialize a msgpack document. | |
| int | packRead (std::istream &document) |
| deserialize a msgpack document. | |
| int | packWrite (std::ostream &document) const |
| serialize msgpack data. | |
Friends | |
| constexpr bool | operator== (const Value &lhs, const Value &rhs) |
| compare if equal. | |
| constexpr std::partial_ordering | operator<=> (const Value &lhs, const Value &rhs) |
| three-way compare values. | |
value class.
| enum join::Value::Index : size_t |
nested value type index.
|
constexprdefault |
default constructor.
|
inlineconstexpr |
constructs a null value.
| value | null value. |
|
inlineconstexpr |
constructs a boolean value.
| value | boolean value. |
|
inlineconstexpr |
constructs an integer value.
| value | integer value. |
|
inlineconstexpr |
constructs an unsigned integer value.
| value | unsigned integer value. |
|
inlineconstexpr |
constructs a 64 bits integer value.
| value | 64 bits integer value. |
|
inlineconstexpr |
constructs a 64 bits unsigned integer value.
| value | 64 bits unsigned integer value. |
|
inlineconstexpr |
constructs a real value.
| value | real value. |
|
inline |
constructs a string value from a C-style string.
| value | string value. |
|
inline |
constructs a string value from a string view.
| value | string value. |
|
inline |
constructs a string value.
| value | string value. |
|
inline |
constructs a string value.
| value | string value. |
|
inline |
constructs an array value.
| value | array value. |
|
inline |
constructs an array value.
| value | array value. |
|
inline |
constructs an object value.
| value | object value. |
|
inline |
constructs an object value.
| value | object value. |
|
constexprdefault |
copy constructor.
| other | object to copy. |
|
constexprdefault |
move constructor.
| other | object to move. |
|
default |
destroy the Value instance.
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast,std::out_of_range. |
|
inline |
erases all elements in the nested container.
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
|
inline |
checks if the nested container contains an element that is mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
|
inline |
deserialize a document into the value.
| args | document to deserialize, followed by any reader argument. |
|
inline |
constructs an element in place at the end of the nested container.
| args | arguments forwarded to the element constructor. |
| std::bad_cast. |
|
inline |
check if the nested container is empty.
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inline |
removes member with the key equivalent to key.
| key | key of the member to remove. |
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as an array.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as an array.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a boolean value.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a double value.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a float value.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 32 bits integer.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 16 bits integer.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 64 bits integer value.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 8 bits integer.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as an object.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as an object.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a string value.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 32 bits unsigned integer value.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 16 bits unsigned integer.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 64 bits unsigned integer value.
| std::bad_cast. |
|
inlineconstexpr |
get variable held by value as a 8 bits unsigned integer.
| std::bad_cast. |
|
inlineconstexprnoexcept |
get the index of the alternative in use.
insert element in the nested container.
| member | the element to insert in the nested container. |
| std::bad_cast. |
insert element in the nested container.
| member | the element to insert in the nested container. |
| std::bad_cast. |
|
inlineconstexpr |
check if the variable held by value is an array.
|
inlineconstexpr |
check if the variable held by value is a boolean value.
|
inlineconstexpr |
check if the variable held by value is a double value.
|
inlineconstexpr |
check if the content of the value is false.
| std::bad_cast. |
|
inlineconstexpr |
check if the variable held by value is a float value.
|
inlineconstexpr |
check if the variable held by value is a 32 bits integer value.
|
inlineconstexpr |
check if the variable held by value is a 16 bits integer value.
|
inlineconstexpr |
check if the variable held by value is a 64 bits integer value.
|
inlineconstexpr |
check if the variable held by value is a 8 bits integer value.
|
inlineconstexpr |
check if the variable held by value is a null value.
|
inlineconstexpr |
check if the variable held by value is a number value.
|
inlineconstexpr |
check if the variable held by value is an object.
|
inlineconstexpr |
check if the variable held by value is a string value.
|
inlineconstexpr |
check if the content of the value is true.
| std::bad_cast. |
|
inlineconstexpr |
check if the variable held by value is a 32 bits unsigned integer value.
|
inlineconstexpr |
check if the variable held by value is a 16 bits unsigned integer value.
|
inlineconstexpr |
check if the variable held by value is a 64 bits unsigned integer value.
|
inlineconstexpr |
check if the variable held by value is a 8 bits unsigned integer value.
| int Value::jsonCanonicalize | ( | std::ostream & | document | ) | const |
serialize canonicalized json data.
| document | Document where to serialize canonicalized json data. |
| int Value::jsonRead | ( | const char * | document, |
| size_t | length ) |
deserialize a json document.
| document | json document to deserialize. |
| length | the length of the json document to deserialize. |
| int Value::jsonRead | ( | const char * | first, |
| const char * | last ) |
deserialize a json document.
| first | the first character of the json document to deserialize. |
| last | the last character of the document to deserialize. |
| int Value::jsonRead | ( | std::fstream & | document | ) |
deserialize a json document.
| document | json document to deserialize. |
| int Value::jsonRead | ( | std::ifstream & | document | ) |
deserialize a json document.
| document | json document to deserialize. |
| int Value::jsonRead | ( | std::iostream & | document | ) |
deserialize a json document.
| document | json document to deserialize. |
| int Value::jsonRead | ( | std::istream & | document | ) |
deserialize a json document.
| document | json document to deserialize. |
| int Value::jsonRead | ( | std::istringstream & | document | ) |
deserialize a json document.
| document | json document to deserialize. |
| int Value::jsonRead | ( | std::string_view | document | ) |
deserialize a json document.
| document | json document to deserialize. |
| int Value::jsonRead | ( | std::stringstream & | document | ) |
deserialize a json document.
| document | json document to deserialize. |
| int Value::jsonWrite | ( | std::ostream & | document, |
| size_t | indentation = 0 ) const |
serialize json data.
| document | Document where to serialize json data. |
| indentation | number of spaces per indentation level. |
|
inlineexplicit |
explicit conversion function for boolean value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for double value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for float value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 16 bits integer value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 32 bits integer value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 64 bits integer value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 8 bits integer value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for string value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 16 bits unsigned integer value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 32 bits unsigned integer value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 64 bits unsigned integer value.
| std::bad_cast. |
|
inlineexplicit |
explicit conversion function for 8 bits unsigned integer value.
| std::bad_cast. |
copy assignment.
| other | object to copy. |
move assignment.
| other | object to move. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value mapped to key.
| key | key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
|
inline |
returns a reference to the value at position pos or mapped to key.
| key | position or key of the element to find. |
| std::bad_cast. |
| int Value::packRead | ( | const char * | document, |
| size_t | length ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| length | the length of the msgpack document to deserialize. |
| int Value::packRead | ( | const char * | first, |
| const char * | last ) |
deserialize a msgpack document.
| first | the first character of the msgpack document to deserialize. |
| last | the last character of the document to deserialize. |
| int Value::packRead | ( | std::fstream & | document | ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| int Value::packRead | ( | std::ifstream & | document | ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| int Value::packRead | ( | std::iostream & | document | ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| int Value::packRead | ( | std::istream & | document | ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| int Value::packRead | ( | std::istringstream & | document | ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| int Value::packRead | ( | std::string_view | document | ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| int Value::packRead | ( | std::stringstream & | document | ) |
deserialize a msgpack document.
| document | msgpack document to deserialize. |
| int Value::packWrite | ( | std::ostream & | document | ) | const |
serialize msgpack data.
| document | Document where to serialize msgpack data. |
|
inline |
removes the last element of the nested container.
| std::bad_cast. |
appends element at the end of the nested container.
| value | the element to append. |
| std::bad_cast. |
appends element at the end of the nested container.
| value | the element to append. |
| std::bad_cast. |
|
inline |
increase the capacity of the nested container.
| cap | new capacity. |
| std::bad_cast. |
|
inline |
serialize the value, resetting the handler on failure.
| handler | handler receiving the value. |
|
inline |
serialize the value to a stream.
| document | stream receiving the value. |
| args | writer arguments. |
|
inline |
returns the number of elements in the nested container.
| std::bad_cast. |
|
inline |
exchanges the contents of the value with those of other.
| other | value to exchange the contents with. |
three-way compare values.
| lhs | value to compare. |
| rhs | value to compare to. |
compare if equal.
| lhs | value to compare. |
| rhs | value to compare to. |