Class to access constant maps.
More...
#include <msgpack_light/details/map_ref.h>
Class to access constant maps.
- Note
- Instances of this class can be created from msgpack_light::object, msgpack_light::const_object_ref, 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 43 of file map_ref.h.
◆ const_iterator
Type of iterators.
Definition at line 52 of file map_ref.h.
◆ const_object_ref_type
Type to access constant objects.
Definition at line 46 of file map_ref.h.
◆ iterator
Type of iterators.
Definition at line 49 of file map_ref.h.
◆ const_map_ref()
Constructor.
- Parameters
-
Definition at line 59 of file map_ref.h.
◆ begin()
Get an iterator to the first key-value pair.
- Returns
- Iterator.
Definition at line 89 of file map_ref.h.
◆ end()
Get an iterator to the past-the-end key-value pair.
- Returns
- Iterator.
Definition at line 98 of file map_ref.h.
◆ key()
Get a key.
- Parameters
-
[in] | index | Index of the key-value pair. |
- Returns
- Object of the key.
Definition at line 62 of file map_ref_impl.h.
◆ size()
std::size_t msgpack_light::const_map_ref::size |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Get the size.
- Returns
- Size.
Definition at line 66 of file map_ref.h.
◆ value()
Get a value.
- Parameters
-
[in] | index | Index of the key-value pair. |
- Returns
- Object of the value.
Definition at line 67 of file map_ref_impl.h.
◆ data_
The documentation for this class was generated from the following files: