https://mooseframework.inl.gov
Classes | Functions
ValueCache.h File Reference

Go to the source code of this file.

Classes

class  ValueCache< T >
 ValueCache is a generic helper template to implement an unstructured data cache, where arbitrary result types can be placed in an n-dimensional space of real numbers. More...
 
class  ValueCache< T >
 ValueCache is a generic helper template to implement an unstructured data cache, where arbitrary result types can be placed in an n-dimensional space of real numbers. More...
 

Functions

template<typename T >
void dataStore (std::ostream &stream, ValueCache< T > &c, void *context)
 
template<typename T >
void dataLoad (std::istream &stream, ValueCache< T > &c, void *context)
 

Function Documentation

◆ dataLoad()

template<typename T >
void dataLoad ( std::istream &  stream,
ValueCache< T > &  c,
void context 
)
inline

Definition at line 311 of file ValueCache.h.

312 {
313  loadHelper(stream, c._location_data, context);
314  c.rebuildTree();
315 }
void rebuildTree()
rebuild the kd-tree from scratch and update the bounding box
Definition: ValueCache.h:251
void loadHelper(std::istream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:985
std::vector< std::pair< std::vector< Real >, T > > _location_data
Definition: ValueCache.h:88

◆ dataStore()

template<typename T >
void dataStore ( std::ostream &  stream,
ValueCache< T > &  c,
void context 
)
inline

Definition at line 304 of file ValueCache.h.

Referenced by ValueCache< T >::~ValueCache().

305 {
306  storeHelper(stream, c._location_data, context);
307 }
void storeHelper(std::ostream &stream, P &data, void *context)
Scalar helper routine.
Definition: DataIO.h:893
std::vector< std::pair< std::vector< Real >, T > > _location_data
Definition: ValueCache.h:88