nsol  0.4.1
Nsol - Neuroscience Objects Library
nsol::Cached< TYPE > Class Template Reference

This class allows to cache values. More...

#include <Cached.h>

+ Collaboration diagram for nsol::Cached< TYPE >:

Public Member Functions

bool dirty (unsigned int id_) const
 
void setDirty (unsigned int id_)
 
void setDirty (void)
 
virtual void setAndPropagateDirty (unsigned int id_)
 
virtual void setAndPropagateDirty (void)
 
void cacheValue (const unsigned int id_, TYPE value_) const
 
TYPE getValue (const unsigned int id_) const
 

Protected Attributes

std::map< unsigned int, TYPE > _values
 Container of the cached values. Is mutable to allow const methods to modify the cache if needed.
 

Detailed Description

template<typename TYPE = float>
class nsol::Cached< TYPE >

This class allows to cache values.

Definition at line 36 of file Cached.h.


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