Skip to content

Class TempLat::ToolWithOwnMemory

template <typename T, size_t NDim>

ClassList > TempLat > ToolWithOwnMemory

A base class for powerspectrum and twopointcorrelator: holds an optionally persistent block of memory of the same shape as the Getter that you pass to it. More...

  • #include <toolwithownmemory.h>

Public Types

Type Name
typedef GetFloatType< SV >::type S
typedef GetGetReturnType< T >::type SV
typedef Field< S, NDim > fieldType

Public Functions

Type Name
ToolWithOwnMemory (T instance)
void setPersistentMemory ()

Protected Functions

Type Name
fieldType getFieldForMeasurement (std::string postfix)
Return a new field if it should be disposed of, return the persistent storage if it should be kept.
T & getInstance ()

Detailed Description

Unit test: ctest -R test-toolwithownmemory

Public Types Documentation

typedef S

typedef GetFloatType<SV>::type TempLat::ToolWithOwnMemory< T, NDim >::S;

typedef SV

typedef GetGetReturnType<T>::type TempLat::ToolWithOwnMemory< T, NDim >::SV;

typedef fieldType

typedef Field<S, NDim> TempLat::ToolWithOwnMemory< T, NDim >::fieldType;

Public Functions Documentation

function ToolWithOwnMemory

inline TempLat::ToolWithOwnMemory::ToolWithOwnMemory (
    T instance
) 

function setPersistentMemory

inline void TempLat::ToolWithOwnMemory::setPersistentMemory () 

Protected Functions Documentation

function getFieldForMeasurement

Return a new field if it should be disposed of, return the persistent storage if it should be kept.

inline fieldType TempLat::ToolWithOwnMemory::getFieldForMeasurement (
    std::string postfix
) 


function getInstance

inline T & TempLat::ToolWithOwnMemory::getInstance () 


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