Public Member Functions | Private Attributes

cmtk::Accumulators::Sum< TDataType > Class Template Reference

Sum accumulator. More...

#include <cmtkAccumulatorSum.h>

List of all members.

Public Member Functions

 Sum ()
 Default constructor.
void Reset ()
 Reset.
void AddValue (const TDataType &value)
 Add a value.
const TDataType & GetResult () const
 Retrive accumulated result.

Private Attributes

TDataType m_Sum
 Current sum.

Detailed Description

template<class TDataType>
class cmtk::Accumulators::Sum< TDataType >

Sum accumulator.

Definition at line 50 of file cmtkAccumulatorSum.h.


Constructor & Destructor Documentation

template<class TDataType >
cmtk::Accumulators::Sum< TDataType >::Sum (  ) [inline]

Default constructor.

Definition at line 54 of file cmtkAccumulatorSum.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines