|
| constexpr | Value ()=default |
| | default constructor.
|
| |
| constexpr | Value (const char *other) |
| | constructs the value with the copy of the contents of a C-style string.
|
| |
| Value & | operator= (const char *other) |
| | replaces the contents with a copy of a C-style string.
|
| |
| 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.
|
| |
| virtual | ~Value ()=default |
| | destroy the Value instance.
|
| |
| 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 const std::string & | getString () const |
| | get variable held by value as a string value.
|
| |
| constexpr std::string & | getString () |
| | get variable held by value as a string value.
|
| |
| | operator const char * () 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 (size_t pos) |
| | returns a reference to the element at specified location pos.
|
| |
| const Value & | at (size_t pos) const |
| | returns a reference to the element at specified location pos.
|
| |
| Value & | at (const std::string &key) |
| | returns a reference to the value that is mapped to a key.
|
| |
| const Value & | at (const std::string &key) const |
| | returns a reference to the value that is mapped to a key.
|
| |
| Value & | operator[] (size_t pos) |
| | returns a reference to the element at specified location pos.
|
| |
| Value & | operator[] (const std::string &key) |
| | returns a reference to the value that is mapped to a 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 (const std::string &key) |
| | removes member with the key equivalent to key.
|
| |
| template<typename... Args> |
| Value & | emplaceBack (Args &&... args) |
| | appends element 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 (size_t pos) const |
| | checks if the nested container contains an element at position pos.
|
| |
| bool | contains (const std::string &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 Reader > |
| int | deserialize (const char *document, size_t length) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (const char *first, const char *last) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (const std::string &document) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (std::stringstream &document) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (std::istringstream &document) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (std::fstream &document) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (std::ifstream &document) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (std::iostream &document) |
| | deserialize a document.
|
| |
| template<typename Reader > |
| int | deserialize (std::istream &document) |
| | deserialize a document.
|
| |
| template<typename Writer > |
| int | serialize (std::ostream &document) const |
| | serialize data.
|
| |
| 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 (const std::string &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) |
| | 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 (const std::string &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.
|
| |
| constexpr | Variant ()=default |
| | inherits parent's constructors.
|
| |
| constexpr | Variant (const Variant &)=default |
| | inherits parent's constructors.
|
| |
| constexpr | Variant (Variant &&)=default |
| | inherits parent's constructors.
|
| |
| template<typename T , typename Match = match_t <T&&, Ts...>, typename = std::enable_if_t <is_unique <Match, Ts...>::value && std::is_constructible <Match, T&&>::value>> |
| constexpr | Variant (T &&t) noexcept |
| | inherits parent's constructors.
|
| |
| template<typename T , typename... Args, typename = std::enable_if_t <is_unique <T, Ts...>::value && std::is_constructible <T, Args&&...>::value>> |
| constexpr | Variant (in_place_type_t< T >, Args &&... args) |
| | inherits parent's constructors.
|
| |
| template<typename T , typename Up , typename... Args, typename = std::enable_if_t <is_unique <T, Ts...>::value && std::is_constructible <T, std::initializer_list <Up>&, Args&&...>::value>> |
| constexpr | Variant (in_place_type_t< T >, std::initializer_list< Up > il, Args &&... args) |
| | inherits parent's constructors.
|
| |
| template<std::size_t I, typename... Args, typename = std::enable_if_t <std::is_constructible < find_element_t <I, Ts...>, Args&&...>::value>> |
| constexpr | Variant (in_place_index_t< I >, Args &&... args) |
| | inherits parent's constructors.
|
| |
| template<std::size_t I, typename Up , typename... Args, typename = std::enable_if_t <std::is_constructible < find_element_t <I, Ts...>, std::initializer_list <Up>&, Args&&...>::value>> |
| constexpr | Variant (in_place_index_t< I >, std::initializer_list< Up > il, Args &&... args) |
| | inherits parent's constructors.
|
| |
| constexpr Variant & | operator= (const Variant &other)=default |
| | inherits parent's assignment operators.
|
| |
| constexpr Variant & | operator= (Variant &&other)=default |
| | inherits parent's assignment operators.
|
| |
| template<typename T , typename Match = match_t <T&&, Ts...>> |
| constexpr std::enable_if_t< is_unique< Match, Ts... >::value &&std::is_constructible< Match, T && >::value, Variant & > | operator= (T &&t) noexcept |
| | inherits parent's assignment operators.
|
| |
| constexpr | Variant ()=default |
| | default constructor.
|
| |
| constexpr | Variant (const Variant &)=default |
| | copy constructor.
|
| |
| constexpr | Variant (Variant &&)=default |
| | move constructor.
|
| |
| constexpr | Variant (T &&t) noexcept |
| | constructs a Variant holding the alternative selected by overload resolution.
|
| |
| constexpr | Variant (in_place_type_t< T >, Args &&... args) |
| | constructs a Variant with the specified alternative T.
|
| |
| constexpr | Variant (in_place_type_t< T >, std::initializer_list< Up > il, Args &&... args) |
| | constructs a Variant with the specified alternative T.
|
| |
| constexpr | Variant (in_place_index_t< I >, Args &&... args) |
| | constructs a variant with the alternative T specified by the index I.
|
| |
| constexpr | Variant (in_place_index_t< I >, std::initializer_list< Up > il, Args &&... args) |
| | constructs a variant with the alternative T specified by the index I.
|
| |
| virtual | ~Variant ()=default |
| | destroy the Variant instance.
|
| |
| constexpr Variant & | operator= (const Variant &other)=default |
| | copy assignment.
|
| |
| constexpr Variant & | operator= (Variant &&other)=default |
| | move assignment.
|
| |
| constexpr std::enable_if_t< is_unique< Match, Ts... >::value &&std::is_constructible< Match, T && >::value, Variant & > | operator= (T &&t) noexcept |
| | assign a Variant holding the alternative selected by overload resolution.
|
| |
| constexpr std::enable_if_t< is_unique< T, Ts... >::value, bool > | is () const |
| | check that the member type in use is the same than the one specified.
|
| |
| constexpr std::enable_if_t< is_index< I, Ts... >::value, bool > | is () const |
| | check that the index in use is the same than the one specified.
|
| |
| constexpr std::enable_if_t< is_unique< T, Ts... >::value &&std::is_constructible< T, Args &&... >::value, T & > | set (Args &&...args) |
| | set the variable type of the object identified by type and assign it a value.
|
| |
| constexpr std::enable_if_t< is_unique< T, Ts... >::value &&std::is_constructible< T, std::initializer_list< Up > &, Args &&... >::value, T & > | set (std::initializer_list< Up > il, Args &&... args) |
| | set the variable type of the object identified by type and assign it a value.
|
| |
| constexpr std::enable_if_t< std::is_constructible< find_element_t< I, Ts... >, Args &&... >::value, find_element_t< I, Ts... > & > | set (Args &&...args) |
| | set the variable type of the object identified by index and assign it a value.
|
| |
| constexpr std::enable_if_t< std::is_constructible< find_element_t< I, Ts... >, std::initializer_list< Up > &, Args &&... >::value, find_element_t< I, Ts... > & > | set (std::initializer_list< Up > il, Args &&... args) |
| | set the variable type of the object identified by index and assign it a value.
|
| |
| constexpr std::enable_if_t< is_unique< T, Ts... >::value, T & > | get () |
| | get the variable value of the object type identified by type.
|
| |
| constexpr std::enable_if_t< is_unique< T, Ts... >::value, const T & > | get () const |
| | get the variable value of the object type identified by type.
|
| |
| constexpr std::enable_if_t< is_index< I, Ts... >::value, find_element_t< I, Ts... > & > | get () |
| | get the variable value of the object type identified by index.
|
| |
| constexpr std::enable_if_t< is_index< I, Ts... >::value, const find_element_t< I, Ts... > & > | get () const |
| | get the variable value of the object type identified by index.
|
| |
| constexpr std::enable_if_t< is_unique< T, Ts... >::value, T * > | getIf () |
| | get the variable value address of the object type identified by type.
|
| |
| constexpr std::enable_if_t< is_unique< T, Ts... >::value, const T * > | getIf () const |
| | get the variable value address of the object type identified by type.
|
| |
| constexpr std::enable_if_t< is_index< I, Ts... >::value, find_element_t< I, Ts... > * > | getIf () |
| | get the variable value address of the object type identified by index.
|
| |
| constexpr std::enable_if_t< is_index< I, Ts... >::value, const find_element_t< I, Ts... > * > | getIf () const |
| | get the variable value address of the object type identified by index.
|
| |
| constexpr std::size_t | index () const noexcept |
| | return the index of the alternative that is currently held by the variant.
|
| |