|
iceoryx2
C++ Language Bindings
|
Wrapper class for a C-style array of type ElementType and size Capacity. Per default it is uninitialized but all elements can be zeroed via template parameter ZeroedBuffer. More...
#include <uninitialized_array.hpp>
Public Types | |
| using | value_type = ElementType |
| using | iterator = ElementType * |
| using | const_iterator = const ElementType * |
Public Member Functions | |
| constexpr | UninitializedArray () noexcept |
| UninitializedArray (const UninitializedArray &)=delete | |
| UninitializedArray (UninitializedArray &&)=delete | |
| UninitializedArray & | operator= (const UninitializedArray &)=delete |
| UninitializedArray & | operator= (UninitializedArray &&)=delete |
| ~UninitializedArray ()=default | |
| constexpr ElementType & | operator[] (const uint64_t index) noexcept |
| returns a reference to the element stored at index | |
| constexpr const ElementType & | operator[] (const uint64_t index) const noexcept |
| returns a const reference to the element stored at index | |
| iterator | begin () noexcept |
| returns an iterator to the beginning of the UninitializedArray | |
| const_iterator | begin () const noexcept |
| returns a const iterator to the beginning of the UninitializedArray | |
| iterator | end () noexcept |
| returns an iterator to the end of the UninitializedArray | |
| const_iterator | end () const noexcept |
| returns a const iterator to the end of the UninitializedArray | |
Static Public Member Functions | |
| static constexpr uint64_t | capacity () noexcept |
| returns the array capacity | |
Wrapper class for a C-style array of type ElementType and size Capacity. Per default it is uninitialized but all elements can be zeroed via template parameter ZeroedBuffer.
| ElementType | is the array type |
| Capacity | is the array size |
| Buffer | is the policy parameter to choose between an uninitialized, not zeroed array (=NonZeroedBuffer, default) and an uninitialized array with all elements zeroed (=ZeroedBuffer) |
Definition at line 68 of file uninitialized_array.hpp.
| using iox2::legacy::UninitializedArray< ElementType, Capacity, Buffer >::const_iterator = const ElementType* |
Definition at line 74 of file uninitialized_array.hpp.
| using iox2::legacy::UninitializedArray< ElementType, Capacity, Buffer >::iterator = ElementType* |
Definition at line 73 of file uninitialized_array.hpp.
| using iox2::legacy::UninitializedArray< ElementType, Capacity, Buffer >::value_type = ElementType |
Definition at line 72 of file uninitialized_array.hpp.
|
inlineconstexprnoexcept |
Definition at line 80 of file uninitialized_array.hpp.
|
delete |
|
delete |
|
default |
|
noexcept |
returns a const iterator to the beginning of the UninitializedArray
|
noexcept |
returns an iterator to the beginning of the UninitializedArray
|
staticconstexprnoexcept |
returns the array capacity
|
noexcept |
returns a const iterator to the end of the UninitializedArray
|
noexcept |
returns an iterator to the end of the UninitializedArray
|
delete |
|
delete |
|
constexprnoexcept |
returns a const reference to the element stored at index
| [in] | index | position of the element to return |
|
constexprnoexcept |
returns a reference to the element stored at index
| [in] | index | position of the element to return |