|
cpp-msgpack-light 0.3.0
A light library to serialize MessagePack.
|
Class to access non-constant arrays. More...
#include <msgpack_light/details/array_ref.h>
Public Types | |
| using | allocator_type = Allocator |
| Type of the allocator. | |
| using | const_iterator = const_array_iterator |
| Type of iterators. | |
| using | const_object_ref_type = const_object_ref |
| Type to access constant objects. | |
| using | iterator = mutable_array_iterator<Allocator> |
| Type of iterators. | |
| using | mutable_object_ref_type = mutable_object_ref<Allocator> |
| Type to access non-constant objects. | |
Public Member Functions | |
| mutable_array_ref (details::array_data &data, details::allocator_wrapper< Allocator > &allocator) | |
| Constructor. | |
| const_array_iterator | begin () const noexcept |
| Get an iterator to the first element. | |
| mutable_array_iterator< Allocator > | begin () noexcept |
| Get an iterator to the first element. | |
| const_array_iterator | end () const noexcept |
| Get an iterator to the past-the-end element. | |
| mutable_array_iterator< Allocator > | end () noexcept |
| Get an iterator to the past-the-end element. | |
| const_object_ref_type | operator[] (std::size_t index) const noexcept |
| Get an object. | |
| mutable_object_ref_type | operator[] (std::size_t index) noexcept |
| Get an object. | |
| void | resize (std::size_t size) |
| Change the size. | |
| std::size_t | size () const noexcept |
| Get the size. | |
Private Attributes | |
| details::allocator_wrapper< Allocator > * | allocator_ |
| Allocator. | |
| details::array_data * | data_ |
| Data. | |
Class to access non-constant arrays.
| Allocator | Type of the allocator. |
Definition at line 133 of file array_ref.h.
| using msgpack_light::mutable_array_ref< Allocator >::allocator_type = Allocator |
Type of the allocator.
Definition at line 136 of file array_ref.h.
| using msgpack_light::mutable_array_ref< Allocator >::const_iterator = const_array_iterator |
Type of iterators.
Definition at line 148 of file array_ref.h.
| using msgpack_light::mutable_array_ref< Allocator >::const_object_ref_type = const_object_ref |
Type to access constant objects.
Definition at line 142 of file array_ref.h.
| using msgpack_light::mutable_array_ref< Allocator >::iterator = mutable_array_iterator<Allocator> |
Type of iterators.
Definition at line 145 of file array_ref.h.
| using msgpack_light::mutable_array_ref< Allocator >::mutable_object_ref_type = mutable_object_ref<Allocator> |
Type to access non-constant objects.
Definition at line 139 of file array_ref.h.
|
inline |
Constructor.
| [in] | data | Data. |
| [in] | allocator | Allocator. |
Definition at line 156 of file array_ref.h.
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
|
inlinenodiscardnoexcept |
Get an iterator to the past-the-end element.
Definition at line 241 of file array_ref.h.
|
inlinenodiscardnoexcept |
Get an iterator to the past-the-end element.
Definition at line 222 of file array_ref.h.
|
inlinenodiscardnoexcept |
Get an object.
| [in] | index | Index of the object. |
Definition at line 42 of file array_ref_impl.h.
|
inlinenodiscardnoexcept |
Get an object.
| [in] | index | Index of the object. |
Definition at line 36 of file array_ref_impl.h.
|
inline |
|
inlinenodiscardnoexcept |
|
private |
Allocator.
Definition at line 250 of file array_ref.h.
|
private |
Data.
Definition at line 247 of file array_ref.h.