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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


prosilica_camera
Author(s): Patrick Mihelich
autogenerated on Fri Jan 11 09:55:11 2013