#include <nda/accessors.hpp>
template<typename T>
struct nda::default_accessor::accessor< T >
Accessor type of the nda::default_accessor.
- Template Parameters
-
Definition at line 42 of file accessors.hpp.
|
using | element_type = T |
| Value type of the data.
|
|
using | pointer = T * |
| Pointer type to the data.
|
|
using | reference = T & |
| Reference type to the data.
|
|
|
static __inline__ reference | access (pointer p, std::ptrdiff_t i) noexcept |
| Access a specific element of the data.
|
|
static __inline__ T * | offset (pointer p, std::ptrdiff_t i) noexcept |
| Offset the pointer by a certain number of elements.
|
|
◆ access()
Access a specific element of the data.
- Parameters
-
p | Pointer to the data. |
i | Index of the element to access. |
- Returns
- Reference to the element.
Definition at line 59 of file accessors.hpp.
◆ offset()
Offset the pointer by a certain number of elements.
- Parameters
-
p | Pointer to the data. |
i | Number of elements to offset the pointer by. |
- Returns
- Pointer after applying the offset.
Definition at line 71 of file accessors.hpp.
The documentation for this struct was generated from the following file: