Public Member Functions | Private Attributes
RollingSum< T > Class Template Reference

#include <rolling_sum.h>

List of all members.

Public Member Functions

void add (T sample)
 RollingSum (size_t capacity)
sum ()

Private Attributes

boost::circular_buffer< T > buffer_
sum_

Detailed Description

template<typename T>
class RollingSum< T >

Definition at line 8 of file rolling_sum.h.


Constructor & Destructor Documentation

template<typename T>
RollingSum< T >::RollingSum ( size_t  capacity) [inline]

Definition at line 11 of file rolling_sum.h.


Member Function Documentation

template<typename T>
void RollingSum< T >::add ( sample) [inline]

Definition at line 17 of file rolling_sum.h.

template<typename T>
T RollingSum< T >::sum ( ) [inline]

Definition at line 24 of file rolling_sum.h.


Member Data Documentation

template<typename T>
boost::circular_buffer<T> RollingSum< T >::buffer_ [private]

Definition at line 30 of file rolling_sum.h.

template<typename T>
T RollingSum< T >::sum_ [private]

Definition at line 31 of file rolling_sum.h.


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


prosilica_camera
Author(s): Patrick Mihelich
autogenerated on Thu Jan 2 2014 11:46:39