zmm::BaseQueue< T > Class Template Reference

a simple stack for a base type. NOT thread safe! More...

#include <base_queue.h>

Inheritance diagram for zmm::BaseQueue< T >:
zmm::Object

Public Member Functions

 BaseQueue (int initialCapacity, T emptyType)
 ~BaseQueue ()
int getCapacity ()
int size ()
bool isEmpty ()
void resize (int requiredSize)
void enqueue (T element)
dequeue ()
get (int index)
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Attributes

T * data
emptyType
int capacity
int queueBegin
int queueEnd
bool overlap
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

template<typename T>
class zmm::BaseQueue< T >

a simple stack for a base type. NOT thread safe!

Definition at line 41 of file base_queue.h.


Constructor & Destructor Documentation

template<typename T>
zmm::BaseQueue< T >::BaseQueue ( int  initialCapacity,
emptyType 
) [inline]

Definition at line 44 of file base_queue.h.

template<typename T>
zmm::BaseQueue< T >::~BaseQueue (  )  [inline]

Definition at line 54 of file base_queue.h.


Member Function Documentation

template<typename T>
T zmm::BaseQueue< T >::dequeue (  )  [inline]
template<typename T>
void zmm::BaseQueue< T >::enqueue ( element  )  [inline]

Definition at line 101 of file base_queue.h.

template<typename T>
T zmm::BaseQueue< T >::get ( int  index  )  [inline]
template<typename T>
int zmm::BaseQueue< T >::getCapacity (  )  [inline]

Definition at line 59 of file base_queue.h.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

References zmm::Object::_ref_count, and atomic_get().

template<typename T>
bool zmm::BaseQueue< T >::isEmpty (  )  [inline]

Definition at line 72 of file base_queue.h.

Referenced by zmm::BaseQueue< Object * >::dequeue().

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file object.cc.

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file object.cc.

References MALLOC.

void Object::release (  )  [inherited]
template<typename T>
void zmm::BaseQueue< T >::resize ( int  requiredSize  )  [inline]

Definition at line 77 of file base_queue.h.

Referenced by zmm::BaseQueue< Object * >::enqueue().

void Object::retain (  )  [inherited]
template<typename T>
int zmm::BaseQueue< T >::size (  )  [inline]

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
template<typename T>
int zmm::BaseQueue< T >::capacity [protected]
template<typename T>
T* zmm::BaseQueue< T >::data [protected]
template<typename T>
T zmm::BaseQueue< T >::emptyType [protected]

Definition at line 130 of file base_queue.h.

Referenced by zmm::BaseQueue< Object * >::dequeue().

pthread_mutex_t zmm::Object::mutex [protected, inherited]
template<typename T>
bool zmm::BaseQueue< T >::overlap [protected]
template<typename T>
int zmm::BaseQueue< T >::queueBegin [protected]
template<typename T>
int zmm::BaseQueue< T >::queueEnd [protected]

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

Generated on Fri Mar 26 20:16:59 2010 for MediaTomb by  doxygen 1.6.1