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 SV
typedef fieldType
Public Functions Documentation
function ToolWithOwnMemory
function 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.
function getInstance
The documentation for this class was generated from the following file cosmolatticeweb/tmp/code_source/templat/include/TempLat/lattice/measuringtools/toolwithownmemory.h