CLAM::StatMemory< T > Class Template Reference

#include <Stats.hxx>

List of all members.


Detailed Description

template<typename T>
class CLAM::StatMemory< 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.

Definition at line 51 of file Stats.hxx.


Public Member Functions

 StatMemory ()
const StatMemoryoperator= (const T &value)
bool HasValue ()
void Reset ()
 operator T ()

Constructor & Destructor Documentation

template<typename T>
CLAM::StatMemory< T >::StatMemory (  )  [inline]

Definition at line 54 of file Stats.hxx.


Member Function Documentation

template<typename T>
const StatMemory& CLAM::StatMemory< T >::operator= ( const T &  value  )  [inline]

Definition at line 55 of file Stats.hxx.

template<typename T>
bool CLAM::StatMemory< T >::HasValue (  )  [inline]

Definition at line 62 of file Stats.hxx.

Referenced by CLAM::StatsTmpl< abs >::GetCentroid().

template<typename T>
void CLAM::StatMemory< T >::Reset ( void   )  [inline]

Definition at line 66 of file Stats.hxx.

Referenced by CLAM::StatsTmpl< abs >::Reset(), and CLAM::StatsTmpl< abs >::SetArray().

template<typename T>
CLAM::StatMemory< T >::operator T (  )  [inline]

Definition at line 70 of file Stats.hxx.


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

Generated on Tue Aug 12 22:33:50 2008 for CLAM by  doxygen 1.5.5