Class to access constant arrays.
More...
#include <msgpack_light/details/array_ref.h>
Class to access constant arrays.
- 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 45 of file array_ref.h.
◆ const_iterator
◆ const_object_ref_type
Type to access constant objects.
Definition at line 48 of file array_ref.h.
◆ iterator
◆ const_array_ref()
Constructor.
- Parameters
-
Definition at line 61 of file array_ref.h.
◆ begin()
Get an iterator to the first element.
- Returns
- Iterator.
Definition at line 84 of file array_ref.h.
◆ cbegin()
Get an iterator to the first element.
- Returns
- Iterator.
Definition at line 102 of file array_ref.h.
◆ cend()
Get an iterator to the past-the-end element.
- Returns
- Iterator.
Definition at line 111 of file array_ref.h.
◆ end()
Get an iterator to the past-the-end element.
- Returns
- Iterator.
Definition at line 93 of file array_ref.h.
◆ operator[]()
Get an object.
- Parameters
-
[in] | index | Index of the object. |
- Returns
- Object.
Definition at line 51 of file array_ref_impl.h.
◆ size()
std::size_t msgpack_light::const_array_ref::size |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Get the size.
- Returns
- Size.
Definition at line 68 of file array_ref.h.
◆ data_
The documentation for this class was generated from the following files: