HyperPlot  v1
Bin and visualise multidimensional datasets
Public Member Functions | Private Attributes | List of all members
CachedVar< T > Class Template Reference

Detailed Description

template<class T>
class CachedVar< T >

HyperPlot, Author: Sam Harnew, sam.h.nosp@m.arne.nosp@m.w@gma.nosp@m.il.c.nosp@m.om , Date: Dec 2015

Used for variables we want to cache. Provides a flag that tells us when the cached variable needs updating

Definition at line 24 of file CachedVar.h.

#include <CachedVar.h>

Public Member Functions

 CachedVar (const T &var=T())
 
void changed ()
 
void updated ()
 
T & get ()
 
const T & get () const
 
CachedVaroperator= (const T &other)
 
 operator const T & ()
 
bool isUpdateNeeded ()
 

Private Attributes

bool _needsUpdate
 
_cachedVar
 

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