Class to access non-constant arrays.
More...
#include <msgpack_light/details/array_ref.h>
template<typename Allocator = standard_allocator>
class msgpack_light::mutable_array_ref< Allocator >
Class to access non-constant arrays.
- 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 133 of file array_ref.h.
◆ allocator_type
template<typename Allocator = standard_allocator>
◆ const_iterator
template<typename Allocator = standard_allocator>
◆ const_object_ref_type
template<typename Allocator = standard_allocator>
Type to access constant objects.
Definition at line 142 of file array_ref.h.
◆ iterator
template<typename Allocator = standard_allocator>
◆ mutable_object_ref_type
template<typename Allocator = standard_allocator>
Type to access non-constant objects.
Definition at line 139 of file array_ref.h.
◆ mutable_array_ref()
template<typename Allocator = standard_allocator>
Constructor.
- Parameters
-
[in] | data | Data. |
[in] | allocator | Allocator. |
Definition at line 156 of file array_ref.h.
◆ begin() [1/2]
template<typename Allocator = standard_allocator>
Get an iterator to the first element.
- Returns
- Iterator.
Definition at line 232 of file array_ref.h.
◆ begin() [2/2]
template<typename Allocator = standard_allocator>
Get an iterator to the first element.
- Returns
- Iterator.
Definition at line 213 of file array_ref.h.
◆ end() [1/2]
template<typename Allocator = standard_allocator>
Get an iterator to the past-the-end element.
- Returns
- Iterator.
Definition at line 241 of file array_ref.h.
◆ end() [2/2]
template<typename Allocator = standard_allocator>
Get an iterator to the past-the-end element.
- Returns
- Iterator.
Definition at line 222 of file array_ref.h.
◆ operator[]() [1/2]
template<typename Allocator>
Get an object.
- Parameters
-
[in] | index | Index of the object. |
- Returns
- Object.
Definition at line 42 of file array_ref_impl.h.
◆ operator[]() [2/2]
template<typename Allocator>
Get an object.
- Parameters
-
[in] | index | Index of the object. |
- Returns
- Object.
Definition at line 36 of file array_ref_impl.h.
◆ resize()
template<typename Allocator = standard_allocator>
Change the size.
- Parameters
-
Definition at line 165 of file array_ref.h.
◆ size()
template<typename Allocator = standard_allocator>
Get the size.
- Returns
- Size.
Definition at line 188 of file array_ref.h.
◆ allocator_
template<typename Allocator = standard_allocator>
◆ data_
template<typename Allocator = standard_allocator>
The documentation for this class was generated from the following files: