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

#include "OVR_Deque.h"

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

Public Types

enum  { DefaultCapacity = 500 }
 

Public Member Functions

 Deque (int capacity=DefaultCapacity)
 
virtual ~Deque (void)
 
virtual void PushBack (const Elem &Item)
 
virtual void PushFront (const Elem &Item)
 
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 IsEmpty () const
 
virtual bool IsFull () const
 

Protected Attributes

Elem * Data
 
const int Capacity
 
int Beginning
 
int End
 
int ElemCount
 

Private Member Functions

Dequeoperator= (const Deque &q)
 
 Deque (const Deque< Elem > &OtherDeque)
 

Detailed Description

template<class Elem>
class OVR::Deque< Elem >

Definition at line 33 of file OVR_Deque.h.

Member Enumeration Documentation

template<class Elem>
anonymous enum
Enumerator
DefaultCapacity 

Definition at line 36 of file OVR_Deque.h.

Constructor & Destructor Documentation

template<class Elem >
OVR::Deque< Elem >::Deque ( int  capacity = DefaultCapacity)

Definition at line 103 of file OVR_Deque.h.

template<class Elem >
OVR::Deque< Elem >::~Deque ( void  )
virtual

Definition at line 112 of file OVR_Deque.h.

template<class Elem>
OVR::Deque< Elem >::Deque ( const Deque< Elem > &  OtherDeque)
inlineprivate

Definition at line 69 of file OVR_Deque.h.

Member Function Documentation

template<class Elem >
UPInt OVR::Deque< Elem >::GetCapacity ( void  ) const
inlinevirtual

Definition at line 253 of file OVR_Deque.h.

template<class Elem >
UPInt OVR::Deque< Elem >::GetSize ( void  ) const
inlinevirtual

Definition at line 259 of file OVR_Deque.h.

template<class Elem >
bool OVR::Deque< Elem >::IsFull ( void  ) const
inlinevirtual

Definition at line 271 of file OVR_Deque.h.

template<class Elem>
Deque& OVR::Deque< Elem >::operator= ( const Deque< Elem > &  q)
inlineprivate

Definition at line 68 of file OVR_Deque.h.

template<class Elem >
const Elem & OVR::Deque< Elem >::PeekBack ( int  count = 0) const
virtual

Definition at line 216 of file OVR_Deque.h.

template<class Elem >
const Elem & OVR::Deque< Elem >::PeekFront ( int  count = 0) const
virtual

Definition at line 204 of file OVR_Deque.h.

template<class Elem >
void OVR::Deque< Elem >::PushBack ( const Elem &  Item)
virtual

Reimplemented in OVR::CircularBuffer< Elem >.

Definition at line 131 of file OVR_Deque.h.

template<class Elem >
void OVR::Deque< Elem >::PushFront ( const Elem &  Item)
virtual

Reimplemented in OVR::CircularBuffer< Elem >.

Definition at line 146 of file OVR_Deque.h.

Field Documentation

template<class Elem>
int OVR::Deque< Elem >::Beginning
protected

Definition at line 60 of file OVR_Deque.h.

template<class Elem>
const int OVR::Deque< Elem >::Capacity
protected

Definition at line 59 of file OVR_Deque.h.

template<class Elem>
Elem* OVR::Deque< Elem >::Data
protected

Definition at line 58 of file OVR_Deque.h.

template<class Elem>
int OVR::Deque< Elem >::ElemCount
protected

Definition at line 65 of file OVR_Deque.h.

template<class Elem>
int OVR::Deque< Elem >::End
protected

Definition at line 61 of file OVR_Deque.h.


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