Class to access non-constant maps.
More...
#include <msgpack_light/details/map_ref.h>
template<typename Allocator = standard_allocator>
class msgpack_light::mutable_map_ref< Allocator >
Class to access non-constant maps.
- Template Parameters
-
Allocator | Type of the allocator. |
- Note
- Instances of this class can be created from msgpack_light::object, msgpack_light::mutable_object_ref classes.
- Warning
- This class only holds pointers to data in msgpack_light::object class, do not call functions in this class without msgpack_light::object instances holding the data.
Definition at line 120 of file map_ref.h.
◆ allocator_type
template<typename Allocator = standard_allocator>
Type of the allocator.
Definition at line 123 of file map_ref.h.
◆ const_iterator
template<typename Allocator = standard_allocator>
Type of iterators.
Definition at line 135 of file map_ref.h.
◆ const_object_ref_type
template<typename Allocator = standard_allocator>
Type to access constant objects.
Definition at line 129 of file map_ref.h.
◆ iterator
template<typename Allocator = standard_allocator>
Type of iterators.
Definition at line 132 of file map_ref.h.
◆ mutable_object_ref_type
template<typename Allocator = standard_allocator>
Type to access non-constant objects.
Definition at line 126 of file map_ref.h.
◆ mutable_map_ref()
template<typename Allocator = standard_allocator>
Constructor.
- Parameters
-
[in] | data | Data. |
[in] | allocator | Allocator. |
Definition at line 143 of file map_ref.h.
◆ begin() [1/2]
template<typename Allocator = standard_allocator>
Get an iterator to the first key-value pair.
- Returns
- Iterator.
Definition at line 210 of file map_ref.h.
◆ begin() [2/2]
template<typename Allocator = standard_allocator>
Get an iterator to the first key-value pair.
- Returns
- Iterator.
Definition at line 191 of file map_ref.h.
◆ end() [1/2]
template<typename Allocator = standard_allocator>
Get an iterator to the past-the-end key-value pair.
- Returns
- Iterator.
Definition at line 219 of file map_ref.h.
◆ end() [2/2]
template<typename Allocator = standard_allocator>
Get an iterator to the past-the-end key-value pair.
- Returns
- Iterator.
Definition at line 200 of file map_ref.h.
◆ key() [1/2]
template<typename Allocator>
Get a key.
- Parameters
-
[in] | index | Index of the key-value pair. |
- Returns
- Object of the key.
Definition at line 42 of file map_ref_impl.h.
◆ key() [2/2]
template<typename Allocator>
Get a key.
- Parameters
-
[in] | index | Index of the key-value pair. |
- Returns
- Object of the key.
Definition at line 36 of file map_ref_impl.h.
◆ size()
template<typename Allocator = standard_allocator>
Get the size.
- Returns
- Size.
Definition at line 152 of file map_ref.h.
◆ value() [1/2]
template<typename Allocator>
Get a value.
- Parameters
-
[in] | index | Index of the key-value pair. |
- Returns
- Object of the value.
Definition at line 54 of file map_ref_impl.h.
◆ value() [2/2]
template<typename Allocator>
Get a value.
- Parameters
-
[in] | index | Index of the key-value pair. |
- Returns
- Object of the value.
Definition at line 48 of file map_ref_impl.h.
◆ allocator_
template<typename Allocator = standard_allocator>
◆ data_
template<typename Allocator = standard_allocator>
The documentation for this class was generated from the following files: