Low-Level Abstraction of Memory Access
llama::ArrayIndex< T, Dim > Struct Template Reference

#include <ArrayExtents.hpp>

+ Inheritance diagram for llama::ArrayIndex< T, Dim >:
+ Collaboration diagram for llama::ArrayIndex< T, Dim >:

Static Public Attributes

static constexpr std::size_t rank = Dim
 

Additional Inherited Members

- Public Types inherited from llama::Array< T, Dim >
using value_type = T
 
- Public Member Functions inherited from llama::Array< T, Dim >
constexpr auto size () const
 
constexpr auto empty () const -> bool
 
constexpr auto begin () -> T *
 
constexpr auto begin () const -> const T *
 
constexpr auto end () -> T *
 
constexpr auto end () const -> const T *
 
constexpr auto front () -> T &
 
constexpr auto front () const -> const T &
 
constexpr auto back () -> T &
 
constexpr auto back () const -> const T &
 
constexpr auto operator[] (IndexType &&idx) -> T &
 
constexpr auto operator[] (IndexType &&idx) const -> const T &
 
constexpr auto data () -> T *
 
constexpr auto data () const -> const T *
 
constexpr auto get () -> T &
 
constexpr auto get () const -> const T &
 
- Public Attributes inherited from llama::Array< T, Dim >
element [N]
 

Detailed Description

template<typename T, std::size_t Dim>
struct llama::ArrayIndex< T, Dim >

Represents a run-time index into the array dimensions.

Template Parameters
DimCompile-time number of dimensions.

Definition at line 19 of file ArrayExtents.hpp.

Member Data Documentation

◆ rank

template<typename T , std::size_t Dim>
constexpr std::size_t llama::ArrayIndex< T, Dim >::rank = Dim
staticconstexpr

Definition at line 21 of file ArrayExtents.hpp.


The documentation for this struct was generated from the following file: