Low-Level Abstraction of Memory Access
llama::mapping::MappingBase< TArrayExtents, TRecordDim > Struct Template Reference

#include <Common.hpp>

+ Inheritance diagram for llama::mapping::MappingBase< TArrayExtents, TRecordDim >:
+ Collaboration diagram for llama::mapping::MappingBase< TArrayExtents, TRecordDim >:

Public Types

using ArrayExtents = TArrayExtents
 
using RecordDim = TRecordDim
 

Public Member Functions

constexpr MappingBase ()=default
 
constexpr MappingBase (ArrayExtents extents, RecordDim={})
 
constexpr auto extents () const -> ArrayExtents
 

Protected Types

using ArrayIndex = typename ArrayExtents::Index
 
using size_type = typename ArrayExtents::value_type
 

Detailed Description

template<typename TArrayExtents, typename TRecordDim>
struct llama::mapping::MappingBase< TArrayExtents, TRecordDim >

Definition at line 18 of file Common.hpp.

Member Typedef Documentation

◆ ArrayExtents

template<typename TArrayExtents , typename TRecordDim >
using llama::mapping::MappingBase< TArrayExtents, TRecordDim >::ArrayExtents = TArrayExtents

Definition at line 20 of file Common.hpp.

◆ ArrayIndex

template<typename TArrayExtents , typename TRecordDim >
using llama::mapping::MappingBase< TArrayExtents, TRecordDim >::ArrayIndex = typename ArrayExtents::Index
protected

Definition at line 24 of file Common.hpp.

◆ RecordDim

template<typename TArrayExtents , typename TRecordDim >
using llama::mapping::MappingBase< TArrayExtents, TRecordDim >::RecordDim = TRecordDim

Definition at line 21 of file Common.hpp.

◆ size_type

template<typename TArrayExtents , typename TRecordDim >
using llama::mapping::MappingBase< TArrayExtents, TRecordDim >::size_type = typename ArrayExtents::value_type
protected

Definition at line 25 of file Common.hpp.

Constructor & Destructor Documentation

◆ MappingBase() [1/2]

template<typename TArrayExtents , typename TRecordDim >
constexpr llama::mapping::MappingBase< TArrayExtents, TRecordDim >::MappingBase ( )
constexprdefault

◆ MappingBase() [2/2]

template<typename TArrayExtents , typename TRecordDim >
constexpr llama::mapping::MappingBase< TArrayExtents, TRecordDim >::MappingBase ( ArrayExtents  extents,
RecordDim  = {} 
)
inlineexplicitconstexpr

Definition at line 31 of file Common.hpp.

Member Function Documentation

◆ extents()

template<typename TArrayExtents , typename TRecordDim >
constexpr auto llama::mapping::MappingBase< TArrayExtents, TRecordDim >::extents ( ) const -> ArrayExtents
inlineconstexpr

Definition at line 35 of file Common.hpp.


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