Class TempLat::AbstractField
template <typename T, size_t _NDim>
ClassList > TempLat > AbstractField
A base class for a one-component field, providing common functionality and holding relevant pointers to memory tools.
#include <abstractfield.h>
Inherited by the following classes: TempLat::ConfigView, TempLat::FourierView, TempLat::ConfigView, TempLat::FourierView
Public Static Attributes
| Type | Name |
|---|---|
| constexpr size_t | NDim = \_NDim |
Public Functions
| Type | Name |
|---|---|
| AbstractField (std::string name, device::memory::host_ptr< MemoryToolBox< NDim > > toolBox, LatticeParameters< T > pLatPar) |
|
| bool | areGhostsStale () const |
| device::Idx | confirmGhostsUpToDate () const |
| void | confirmSpace (const LayoutStruct< NDim > & newLayout, const SpaceStateType & spaceType) const |
| const BCSpec< NDim > & | getBCSpec () const |
| auto | getDx () const |
| auto | getKIR () const |
| auto | getLatParams () const |
| device::memory::host_ptr< MemoryManager< T, NDim > > | getMemoryManager () const |
| device::memory::host_ptr< MemoryToolBox< NDim > > | getToolBox () const |
| bool | isConfigSpace () const Check the current state. |
| bool | isFourierSpace () const Check the current state. |
| void | setBCSpec (BCSpec< NDim > bcSpec) |
| void | setGhostsAreStale () const |
Protected Attributes
| Type | Name |
|---|---|
| const LatticeParameters< T > | latPar |
| device::memory::host_ptr< MemoryManager< T, NDim > > | mManager |
Protected Functions
| Type | Name |
|---|---|
| const device::memory::host_ptr< MemoryToolBox< NDim > > & | toolBox () const The toolbox, without copying a reference count. |
Public Static Attributes Documentation
variable NDim
Public Functions Documentation
function AbstractField
inline TempLat::AbstractField::AbstractField (
std::string name,
device::memory::host_ptr < MemoryToolBox < NDim > > toolBox,
LatticeParameters < T > pLatPar
)
function areGhostsStale
function confirmGhostsUpToDate
function confirmSpace
inline void TempLat::AbstractField::confirmSpace (
const LayoutStruct < NDim > & newLayout,
const SpaceStateType & spaceType
) const
function getBCSpec
function getDx
function getKIR
function getLatParams
function getMemoryManager
inline device::memory::host_ptr < MemoryManager < T, NDim > > TempLat::AbstractField::getMemoryManager () const
function getToolBox
inline device::memory::host_ptr < MemoryToolBox < NDim > > TempLat::AbstractField::getToolBox () const
function isConfigSpace
Check the current state.
Returns:
true if in configuration space
function isFourierSpace
Check the current state.
Returns:
true if in fourier space
function setBCSpec
function setGhostsAreStale
Protected Attributes Documentation
variable latPar
variable mManager
Protected Functions Documentation
function toolBox
The toolbox, without copying a reference count.
inline const device::memory::host_ptr < MemoryToolBox < NDim > > & TempLat::AbstractField::toolBox () const
Replaces the former mToolBox member: the manager already holds the toolbox (memorymanager.h), so a field-side handle was a second reference count paid on every copy of a field and fields are copied by value into every node of every expression template. Use this in field internals; getToolBox() above still hands out an owning copy for external callers.
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/field/abstractfield.h