Public Member Functions | Private Attributes | List of all members
RollingSum< T > Class Template Reference

#include <rolling_sum.h>

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): Maintained by William Woodall - wwoodall@willowgarage.com, Contributions by Allison Thackston - allison.thackston@nasa.gov
autogenerated on Mon Jun 10 2019 14:20:19