Buffer< T > Class Template Reference

Templated circular buffer. More...

#include <CUDASIFT/tpimage.h>

List of all members.

Public Member Functions

 Buffer (int w, int h)
 Constructor.
T * GetData () const
 Get buffer data position.
int GetWidth () const
 Get buffer width.
int GetHeight () const
 Get buffer height.
T * operator[] (int i)
 Get pointer to pixel row i modulo height.
void Clear (T val=(T) 0)
 Clear buffer data.

Detailed Description

template<class T>
class Buffer< T >

Templated circular buffer.

Definition at line 68 of file tpimage.h.


Constructor & Destructor Documentation

template<class T >
Buffer< T >::Buffer ( int  w,
int  h 
) [inline]

Constructor.

Parameters:
w buffer width
h buffer height

Definition at line 395 of file tpimage.h.


Member Function Documentation

template<class T >
void Buffer< T >::Clear ( val = (T) 0  )  [inline]

Clear buffer data.

Parameters:
val value to fill buffer with

Definition at line 409 of file tpimage.h.

template<class T >
T* Buffer< T >::GetData (  )  const [inline]

Get buffer data position.

Definition at line 78 of file tpimage.h.

template<class T >
int Buffer< T >::GetHeight (  )  const [inline]

Get buffer height.

Definition at line 82 of file tpimage.h.

template<class T >
int Buffer< T >::GetWidth (  )  const [inline]

Get buffer width.

Definition at line 80 of file tpimage.h.

template<class T >
T* Buffer< T >::operator[] ( int  i  )  [inline]

Get pointer to pixel row i modulo height.

Definition at line 84 of file tpimage.h.


The documentation for this class was generated from the following file:
Generated on Sun May 8 08:43:08 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3