GEOS
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
geos::StencilAccessors< TRAITS > Struct Template Reference

A struct to automatically construct and store element view accessors. More...

#include <StencilAccessors.hpp>

Public Member Functions

template<typename TRAIT >
auto get (TRAIT) const
 
template<typename TRAIT >
auto get () const
 
 StencilAccessors (ElementRegionManager const &elemManager, string const &solverName)
 Constructor for the struct. More...
 

Protected Member Functions

 StencilAccessors ()=default
 Constructor for the struct.
 

Protected Attributes

std::tuple< ElementRegionManager::ElementViewAccessor< traits::ViewTypeConst< typename TRAITS::type > > ... > m_accessors
 the tuple storing all the accessors
 

Detailed Description

template<typename ... TRAITS>
struct geos::StencilAccessors< TRAITS >

A struct to automatically construct and store element view accessors.

Template Parameters
TRAITSthe pack containing the types of the fields

Definition at line 38 of file StencilAccessors.hpp.

Constructor & Destructor Documentation

◆ StencilAccessors()

template<typename ... TRAITS>
geos::StencilAccessors< TRAITS >::StencilAccessors ( ElementRegionManager const &  elemManager,
string const &  solverName 
)
inline

Constructor for the struct.

Parameters
[in]elemManagera reference to the elemRegionManager
[in]solverNamethe name of the solver creating the view accessors

Definition at line 65 of file StencilAccessors.hpp.

Member Function Documentation

◆ get()

template<typename ... TRAITS>
template<typename TRAIT >
auto geos::StencilAccessors< TRAITS >::get ( TRAIT  ) const
inline
Returns
reference to the accessor for the given field
Template Parameters
TRAITthe field trait type

Definition at line 47 of file StencilAccessors.hpp.


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