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

#include <Null.hpp>

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

Public Member Functions

constexpr auto blobSize (size_type) const -> size_type
 
template<std::size_t... RecordCoords, typename Blobs >
constexpr auto compute (typename Base::ArrayIndex, RecordCoord< RecordCoords... >, Blobs &) const
 
- Public Member Functions inherited from llama::mapping::MappingBase< TArrayExtents, TRecordDim >
constexpr MappingBase ()=default
 
constexpr MappingBase (ArrayExtents extents, RecordDim={})
 
constexpr auto extents () const -> ArrayExtents
 

Static Public Member Functions

template<std::size_t... RecordCoords>
static constexpr auto isComputed (RecordCoord< RecordCoords... >)
 

Static Public Attributes

static constexpr std::size_t blobCount = 0
 

Additional Inherited Members

- Public Types inherited from llama::mapping::MappingBase< TArrayExtents, TRecordDim >
using ArrayExtents = TArrayExtents
 
using RecordDim = TRecordDim
 
- Protected Types inherited from llama::mapping::MappingBase< TArrayExtents, TRecordDim >
using ArrayIndex = typename ArrayExtents::Index
 
using size_type = typename ArrayExtents::value_type
 

Detailed Description

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

The Null mappings maps all elements to nothing. Writing data through a reference obtained from the Null mapping discards the value. Reading through such a reference returns a default constructed object.

Definition at line 34 of file Null.hpp.

Member Function Documentation

◆ blobSize()

template<typename TArrayExtents , typename TRecordDim >
constexpr auto llama::mapping::Null< TArrayExtents, TRecordDim >::blobSize ( size_type  ) const -> size_type
inlineconstexpr

Definition at line 46 of file Null.hpp.

◆ compute()

template<typename TArrayExtents , typename TRecordDim >
template<std::size_t... RecordCoords, typename Blobs >
constexpr auto llama::mapping::Null< TArrayExtents, TRecordDim >::compute ( typename Base::ArrayIndex  ,
RecordCoord< RecordCoords... >  ,
Blobs  
) const
inlineconstexpr

Definition at line 58 of file Null.hpp.

◆ isComputed()

template<typename TArrayExtents , typename TRecordDim >
template<std::size_t... RecordCoords>
static constexpr auto llama::mapping::Null< TArrayExtents, TRecordDim >::isComputed ( RecordCoord< RecordCoords... >  )
inlinestaticconstexpr

Definition at line 52 of file Null.hpp.

Member Data Documentation

◆ blobCount

template<typename TArrayExtents , typename TRecordDim >
constexpr std::size_t llama::mapping::Null< TArrayExtents, TRecordDim >::blobCount = 0
staticconstexpr

Definition at line 41 of file Null.hpp.


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