CLAM-Development
1.1
|
An StatMemory may hold a T value and remembers whether it has been set or is not initialized. More...
#include <Stats.hxx>
Public Member Functions | |
StatMemory () | |
const StatMemory & | operator= (const T &value) |
bool | HasValue () |
void | Reset () |
operator T () |
An StatMemory may hold a T value and remembers whether it has been set or is not initialized.
It has two states, value memorized and no value memorized. By default is not memorized until it is assigned to a value that is copied. Then you can query the value using the call operator. By reseting it you are releasing the memory until a new assignement.
CLAM::StatMemory< T >::StatMemory | ( | ) | [inline] |
bool CLAM::StatMemory< T >::HasValue | ( | ) | [inline] |
Definition at line 62 of file Stats.hxx.
Referenced by CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::GetCentroid().
CLAM::StatMemory< T >::operator T | ( | ) | [inline] |
const StatMemory& CLAM::StatMemory< T >::operator= | ( | const T & | value | ) | [inline] |
void CLAM::StatMemory< T >::Reset | ( | void | ) | [inline] |
Definition at line 66 of file Stats.hxx.
Referenced by CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::Reset(), and CLAM::StatsTmpl< false, FrameDescriptors, FrameDescriptors >::SetArray().