Ginan
Loading...
Searching...
No Matches
Cache< TYPE > Struct Template Reference
Inheritance diagram for Cache< TYPE >:
Collaboration diagram for Cache< TYPE >:

Public Member Functions

 Cache ()
 
Cache< TYPE > & uninit ()
 
const TYPE & useCache (std::function< TYPE()> lambda)
 

Data Fields

std::function< TYPE()> lambda
 
TYPE output
 
bool initialised = false
 

Constructor & Destructor Documentation

◆ Cache()

template<typename TYPE >
Cache< TYPE >::Cache ( )
inline

Member Function Documentation

◆ uninit()

template<typename TYPE >
Cache< TYPE > & Cache< TYPE >::uninit ( )
inline
Here is the caller graph for this function:

◆ useCache()

template<typename TYPE >
const TYPE & Cache< TYPE >::useCache ( std::function< TYPE()> lambda)
inline
Here is the caller graph for this function:

Field Documentation

◆ initialised

template<typename TYPE >
bool Cache< TYPE >::initialised = false

◆ lambda

template<typename TYPE >
std::function<TYPE()> Cache< TYPE >::lambda

◆ output

template<typename TYPE >
TYPE Cache< TYPE >::output

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