Array container.
More...
#include <Array.hpp>
|
| uint32_t | size () const noexcept |
| | Size of the array. More...
|
| |
| uint32_t | max_size () const noexcept |
| | Maximum size of the array. More...
|
| |
| T & | at (uint32_t pos) &noexcept |
| | Access to an element. Can only be used on lvalue objects. More...
|
| |
| const T & | at (uint32_t pos) const &&noexcept=delete |
| | Deleted at method on rvalue objects. More...
|
| |
| const T & | at (uint32_t pos) const &noexcept |
| | Const access to an element. Can only be used on lvalue objects. More...
|
| |
| T * | data () &noexcept |
| | Access to the first element. More...
|
| |
| T const * | data () const &&noexcept=delete |
| | Deleted data method on rvalue objects. More...
|
| |
| T const * | data () const &noexcept |
| | Const access to the first element. More...
|
| |
| T & | operator[] (uint32_t pos) &noexcept |
| | Access to an element. More...
|
| |
| const T & | operator[] (uint32_t pos) const &&noexcept=delete |
| | Deleted operator [] on rvalue objects. More...
|
| |
| const T & | operator[] (uint32_t pos) const &noexcept |
| | Const access to an element. More...
|
| |
| void | fill (const T &value) noexcept |
| | Fill the array with a value. More...
|
| |
template<typename T, uint32_t N>
struct eprosima::safedds::memory::container::Array< T, N >
Array container.
- Template Parameters
-
| T | Type of the elements |
| N | Number of elements |
◆ value_type
template<typename T , uint32_t N>
◆ at() [1/3]
template<typename T , uint32_t N>
Access to an element. Can only be used on lvalue objects.
- Parameters
-
| pos | Position of the element |
- Returns
- Reference to the element
◆ at() [2/3]
template<typename T , uint32_t N>
Deleted at method on rvalue objects.
◆ at() [3/3]
template<typename T , uint32_t N>
Const access to an element. Can only be used on lvalue objects.
- Parameters
-
| pos | Position of the element |
- Returns
- Reference to the element
◆ data() [1/3]
template<typename T , uint32_t N>
Access to the first element.
- Returns
- Pointer to the first element
◆ data() [2/3]
template<typename T , uint32_t N>
Deleted data method on rvalue objects.
◆ data() [3/3]
template<typename T , uint32_t N>
Const access to the first element.
- Returns
- Pointer to the first element
◆ fill()
template<typename T , uint32_t N>
Fill the array with a value.
- Parameters
-
| value | Value to fill the array with |
◆ max_size()
template<typename T , uint32_t N>
Maximum size of the array.
- Returns
- Number of elements
◆ operator[]() [1/3]
template<typename T , uint32_t N>
Access to an element.
- Parameters
-
| pos | Position of the element |
- Returns
- Reference to the element
◆ operator[]() [2/3]
template<typename T , uint32_t N>
Deleted operator [] on rvalue objects.
◆ operator[]() [3/3]
template<typename T , uint32_t N>
Const access to an element.
- Parameters
-
| pos | Position of the element |
- Returns
- Reference to the element
◆ size()
template<typename T , uint32_t N>
Size of the array.
- Returns
- Number of elements
◆ inner_array
template<typename T , uint32_t N>
The documentation for this struct was generated from the following file:
- build/docs/user_manual/v3.0.0/tmp/include/safedds/memory/container/Array.hpp