PetaVision  Alpha
PV::RingBuffer< T > Class Template Reference

Public Member Functions

 RingBuffer (int numLevels, int numItems, T initialValue=(T) 0)
 
T * getBuffer (int level, int offset)
 
T * getBuffer (int offset)
 
T * getBuffer ()
 
int getNumItems ()
 
int getNumLevels ()
 
void newLevel ()
 

Private Member Functions

int levelIndex (int level) const
 

Private Attributes

std::vector< std::vector< T > > mBuffer
 
int mCurrentLevel
 
int mNumItems
 
int mNumLevels
 

Detailed Description

template<typename T>
class PV::RingBuffer< T >

Definition at line 16 of file RingBuffer.hpp.


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