|
cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
|
Class to access constant maps. More...
#include <msgpack_light/details/map_ref.h>
Public Types | |
| using | const_iterator = const_map_iterator |
| Type of iterators. | |
| using | const_object_ref_type = const_object_ref |
| Type to access constant objects. | |
| using | iterator = const_map_iterator |
| Type of iterators. | |
Public Member Functions | |
| const_map_ref (const details::map_data &data) | |
| Constructor. | |
| const_map_iterator | begin () const 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. | |
| const_object_ref_type | key (std::size_t index) const 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. | |
Private Attributes | |
| const details::map_data * | data_ |
| Data. | |
Class to access constant maps.
|
inlineexplicit |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Get a key.
| [in] | index | Index of the key-value pair. |
Definition at line 62 of file map_ref_impl.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Get a value.
| [in] | index | Index of the key-value pair. |
Definition at line 67 of file map_ref_impl.h.
|
private |