Bike-X  0.8
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OVR::CircularBuffer< Elem > Class Template Reference

#include "OVR_Deque.h"

Inheritance diagram for OVR::CircularBuffer< Elem >:
Inheritance graph
Collaboration diagram for OVR::CircularBuffer< Elem >:
Collaboration graph

Public Member Functions

 CircularBuffer (int MaxSize=Deque< Elem >::DefaultCapacity)
 
virtual void PushBack (const Elem &Item)
 
virtual void PushFront (const Elem &Item)
 
 CircularBuffer (UPInt size)
 
 ~CircularBuffer ()
 
bool IsEmpty () const
 
UByteWrite (UPInt size)
 
UByteReadBegin ()
 
void ReadEnd (UPInt size)
 
- Public Member Functions inherited from OVR::InPlaceMutableDeque< Elem >
 InPlaceMutableDeque (int capacity=Deque< Elem >::DefaultCapacity)
 
virtual ~InPlaceMutableDeque ()
 
virtual Elem & PeekBack (int count=0)
 
virtual Elem & PeekFront (int count=0)
 
- Public Member Functions inherited from OVR::Deque< Elem >
 Deque (int capacity=DefaultCapacity)
 
virtual ~Deque (void)
 
virtual Elem PopBack (void)
 
virtual Elem PopFront (void)
 
virtual const Elem & PeekBack (int count=0) const
 
virtual const Elem & PeekFront (int count=0) const
 
virtual UPInt GetSize (void) const
 
virtual UPInt GetCapacity (void) const
 
virtual void Clear (void)
 
virtual bool IsFull () const
 

Private Types

enum  { AlignSize = 16, AlignMask = AlignSize - 1 }
 

Private Member Functions

UPInt roundUpSize (UPInt size)
 

Private Attributes

UBytepBuffer
 
UPInt Size
 
UPInt Tail
 
UPInt Head
 
UPInt End
 

Additional Inherited Members

- Public Types inherited from OVR::Deque< Elem >
enum  { DefaultCapacity = 500 }
 
- Protected Attributes inherited from OVR::Deque< Elem >
Elem * Data
 
const int Capacity
 
int Beginning
 
int End
 
int ElemCount
 

Detailed Description

template<class Elem>
class OVR::CircularBuffer< Elem >

Definition at line 88 of file OVR_Deque.h.

Member Enumeration Documentation

template<class Elem>
anonymous enum
private
Enumerator
AlignSize 
AlignMask 

Definition at line 41 of file OVR_ThreadCommandQueue.cpp.

Constructor & Destructor Documentation

template<class Elem>
OVR::CircularBuffer< Elem >::CircularBuffer ( int  MaxSize = Deque<Elem>::DefaultCapacity)
inline

Definition at line 91 of file OVR_Deque.h.

template<class Elem>
OVR::CircularBuffer< Elem >::CircularBuffer ( UPInt  size)
inline

Definition at line 57 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
OVR::CircularBuffer< Elem >::~CircularBuffer ( )
inline

Definition at line 62 of file OVR_ThreadCommandQueue.cpp.

Member Function Documentation

template<class Elem>
bool OVR::CircularBuffer< Elem >::IsEmpty ( void  ) const
inlinevirtual

Reimplemented from OVR::Deque< Elem >.

Definition at line 69 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
void OVR::CircularBuffer< Elem >::PushFront ( const Elem &  Item)
inlinevirtual
template<class Elem>
UByte* OVR::CircularBuffer< Elem >::ReadBegin ( )
inline

Definition at line 76 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
void OVR::CircularBuffer< Elem >::ReadEnd ( UPInt  size)

Definition at line 125 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
UPInt OVR::CircularBuffer< Elem >::roundUpSize ( UPInt  size)
inlineprivate

Definition at line 52 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
UByte * OVR::CircularBuffer< Elem >::Write ( UPInt  size)

Definition at line 85 of file OVR_ThreadCommandQueue.cpp.

Field Documentation

template<class Elem>
UPInt OVR::CircularBuffer< Elem >::End
private

Definition at line 50 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
UPInt OVR::CircularBuffer< Elem >::Head
private

Definition at line 49 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
UByte* OVR::CircularBuffer< Elem >::pBuffer
private

Definition at line 46 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
UPInt OVR::CircularBuffer< Elem >::Size
private

Definition at line 47 of file OVR_ThreadCommandQueue.cpp.

template<class Elem>
UPInt OVR::CircularBuffer< Elem >::Tail
private

Definition at line 48 of file OVR_ThreadCommandQueue.cpp.


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