Skip to content

Class TempLat::VectorFieldCollection

template <class Arg, int N, int SHIFTIND, bool flatAssign>

ClassList > TempLat > VectorFieldCollection

A class which allows to make collections of vector fields. More...

  • #include <vectorfieldcollection.h>

Public Types

Type Name
typedef GetComponent Getter
typedef GetGetReturnType< Arg >::type RT
typedef typename GetFloatType< RT >::type T

Public Static Attributes

Type Name
constexpr size_t NDim = GetNDim::get&lt;Arg&gt;()
constexpr size_t size = N

Public Functions

Type Name
VectorFieldCollection (std::string name, device::memory::host_ptr< MemoryToolBox< NDim > > toolBox, LatticeParameters< T > pLatPar=LatticeParameters< T >())
auto getComp (Tag< M > t) const
auto operator() (Tag< M > t) const
void operator+= (R && r)
void operator= (R && r)
std::string toString (device::Idx i) const

Detailed Description

Unit test: ctest -R test-vectorfieldcollection

@vocab-summary \(N\) vector fields under one name; the two containers nest, as for a collection of gauge fields. @vocab-signature VectorFieldCollection<FieldType, N> Ws("Ws", toolBox); @vocab-tags Collection

Public Types Documentation

typedef Getter

using TempLat::VectorFieldCollection< Arg, N, SHIFTIND, flatAssign >::Getter =  GetComponent;

typedef RT

using TempLat::VectorFieldCollection< Arg, N, SHIFTIND, flatAssign >::RT =  GetGetReturnType<Arg>::type;

typedef T

using TempLat::VectorFieldCollection< Arg, N, SHIFTIND, flatAssign >::T =  typename GetFloatType<RT>::type;

Public Static Attributes Documentation

variable NDim

constexpr size_t TempLat::VectorFieldCollection< Arg, N, SHIFTIND, flatAssign >::NDim;

variable size

constexpr size_t TempLat::VectorFieldCollection< Arg, N, SHIFTIND, flatAssign >::size;

Public Functions Documentation

function VectorFieldCollection

inline TempLat::VectorFieldCollection::VectorFieldCollection (
    std::string name,
    device::memory::host_ptr < MemoryToolBox < NDim > > toolBox,
    LatticeParameters < T > pLatPar=LatticeParameters < T >()
) 

function getComp

template<int M>
inline auto TempLat::VectorFieldCollection::getComp (
    Tag < M > t
) const

function operator()

template<int M>
inline auto TempLat::VectorFieldCollection::operator() (
    Tag < M > t
) const

function operator+=

template<typename R>
inline void TempLat::VectorFieldCollection::operator+= (
    R && r
) 

function operator=

template<typename R>
inline void TempLat::VectorFieldCollection::operator= (
    R && r
) 

function toString

inline std::string TempLat::VectorFieldCollection::toString (
    device::Idx i
) const


The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/field/collections/vectorfieldcollection.h