Skip to content

Class TempLat::TempLatArray

template <typename T, int N, int shift>

ClassList > TempLat > TempLatArray

A class which makes array compatible which getComp algebra. More...

  • #include <templatarray.h>

Public Types

Type Name
typedef GetComponent Getter

Public Static Attributes

Type Name
constexpr size_t size = N

Public Functions

Type Name
TempLatArray () = default
TempLatArray (const std::array< T, N > & vec)
TempLatArray (std::array< T, N > && vec)
std::array< T, N > & asArr ()
T getComp (Tag< M > t) noexcept const
T operator() (device::Idx i) const
T & operator() (device::Idx i)
void operator= (const std::vector< T > & vec)
void operator= (S && vec)
T operator[] (device::Idx i) const
T & operator[] (device::Idx i)

Detailed Description

Unit test: ctest -R test-templatarray

Public Types Documentation

typedef Getter

using TempLat::TempLatArray< T, N, shift >::Getter =  GetComponent;

Public Static Attributes Documentation

variable size

constexpr size_t TempLat::TempLatArray< T, N, shift >::size;

Public Functions Documentation

function TempLatArray [1/3]

TempLat::TempLatArray::TempLatArray () = default

function TempLatArray [2/3]

inline TempLat::TempLatArray::TempLatArray (
    const std::array< T, N > & vec
) 

function TempLatArray [3/3]

inline TempLat::TempLatArray::TempLatArray (
    std::array< T, N > && vec
) 

function asArr

inline std::array< T, N > & TempLat::TempLatArray::asArr () 

function getComp

template<int M>
inline T TempLat::TempLatArray::getComp (
    Tag < M > t
) noexcept const

function operator()

inline T TempLat::TempLatArray::operator() (
    device::Idx i
) const

function operator()

inline T & TempLat::TempLatArray::operator() (
    device::Idx i
) 

function operator=

inline void TempLat::TempLatArray::operator= (
    const std::vector< T > & vec
) 

function operator=

template<typename S>
inline void TempLat::TempLatArray::operator= (
    S && vec
) 

function operator[]

inline T TempLat::TempLatArray::operator[] (
    device::Idx i
) const

function operator[]

inline T & TempLat::TempLatArray::operator[] (
    device::Idx i
) 


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/util/templatarray.h