|
cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
|
Class to access non-constant maps. More...
#include <msgpack_light/details/map_ref.h>
Public Types | |
| using | allocator_type = Allocator |
| Type of the allocator. | |
| using | const_iterator = const_map_iterator |
| Type of iterators. | |
| using | const_object_ref_type = const_object_ref |
| Type to access constant objects. | |
| using | iterator = mutable_map_iterator<Allocator> |
| Type of iterators. | |
| using | mutable_object_ref_type = mutable_object_ref<Allocator> |
| Type to access non-constant objects. | |
Public Member Functions | |
| mutable_map_ref (details::map_data &data, details::allocator_wrapper< Allocator > &allocator) | |
| Constructor. | |
| const_map_iterator | begin () const noexcept |
| Get an iterator to the first key-value pair. | |
| mutable_map_iterator< Allocator > | begin () noexcept |
| Get an iterator to the first key-value pair. | |
| const_map_iterator | end () const noexcept |
| Get an iterator to the past-the-end key-value pair. | |
| mutable_map_iterator< Allocator > | end () noexcept |
| Get an iterator to the past-the-end key-value pair. | |
| const_object_ref_type | key (std::size_t index) const noexcept |
| Get a key. | |
| mutable_object_ref_type | key (std::size_t index) noexcept |
| Get a key. | |
| std::size_t | size () const noexcept |
| Get the size. | |
| const_object_ref_type | value (std::size_t index) const noexcept |
| Get a value. | |
| mutable_object_ref_type | value (std::size_t index) noexcept |
| Get a value. | |
Private Attributes | |
| details::allocator_wrapper< Allocator > * | allocator_ |
| Allocator. | |
| details::map_data * | data_ |
| Data. | |
Class to access non-constant maps.
| Allocator | Type of the allocator. |
| using msgpack_light::mutable_map_ref< Allocator >::allocator_type = Allocator |
| using msgpack_light::mutable_map_ref< Allocator >::const_iterator = const_map_iterator |
| using msgpack_light::mutable_map_ref< Allocator >::const_object_ref_type = const_object_ref |
| using msgpack_light::mutable_map_ref< Allocator >::iterator = mutable_map_iterator<Allocator> |
| using msgpack_light::mutable_map_ref< Allocator >::mutable_object_ref_type = mutable_object_ref<Allocator> |
|
inline |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Get a key.
| [in] | index | Index of the key-value pair. |
Definition at line 42 of file map_ref_impl.h.
|
inlinenodiscardnoexcept |
Get a key.
| [in] | index | Index of the key-value pair. |
Definition at line 36 of file map_ref_impl.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Get a value.
| [in] | index | Index of the key-value pair. |
Definition at line 54 of file map_ref_impl.h.
|
inlinenodiscardnoexcept |
Get a value.
| [in] | index | Index of the key-value pair. |
Definition at line 48 of file map_ref_impl.h.
|
private |
|
private |