ACT-CV - Machine Vision for Cognitive Modeling
Public Member Functions | Protected Attributes | List of all members
RingBuf< _t, len > Class Template Reference

Ringbuffer for arbritrary types. More...

#include <OpenCVHelpers.h>

Collaboration diagram for RingBuf< _t, len >:
Collaboration graph

Public Member Functions

 RingBuf ()
 
_t & GetCur ()
 
_t & GetPrev ()
 
void Add (const _t &x)
 
void IncIndex ()
 

Protected Attributes

_t data [len]
 
int curIdx
 

Detailed Description

template<class _t, int len>
class RingBuf< _t, len >

Ringbuffer for arbritrary types.

not really bound to opencv, might get its own header file soon.

Definition at line 73 of file OpenCVHelpers.h.

Constructor & Destructor Documentation

template<class _t, int len>
RingBuf< _t, len >::RingBuf ( )

Definition at line 78 of file OpenCVHelpers.h.

Member Function Documentation

template<class _t, int len>
void RingBuf< _t, len >::Add ( const _t &  x)
template<class _t, int len>
_t& RingBuf< _t, len >::GetCur ( )
template<class _t, int len>
_t& RingBuf< _t, len >::GetPrev ( )

Definition at line 82 of file OpenCVHelpers.h.

Referenced by OpticalFlow::Calc(), and OpticalFlow::SelectFeatures().

template<class _t, int len>
void RingBuf< _t, len >::IncIndex ( )

Member Data Documentation

template<class _t, int len>
int RingBuf< _t, len >::curIdx
protected
template<class _t, int len>
_t RingBuf< _t, len >::data[len]
protected

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


ACT-CV - Machine Vision for Cognitive Modeling
© 2015 Marc Halbruegge (actcvlibrary@googlemail.com)