zmm::BaseStack< T > Class Template Reference

#include <base_stack.h>

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

Public Member Functions

 BaseStack (int initialCapacity, T emptyType)
 ~BaseStack ()
int getCapacity ()
int size ()
bool isEmpty ()
void push (T element)
void resize (int requiredSize)
pop ()
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 count
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

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

Definition at line 42 of file base_stack.h.


Constructor & Destructor Documentation

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

Definition at line 45 of file base_stack.h.

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

Definition at line 53 of file base_stack.h.


Member Function Documentation

template<typename T>
int zmm::BaseStack< T >::getCapacity (  )  [inline]

Definition at line 58 of file base_stack.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::BaseStack< T >::isEmpty (  )  [inline]

Definition at line 68 of file base_stack.h.

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.

template<typename T>
T zmm::BaseStack< T >::pop (  )  [inline]
template<typename T>
void zmm::BaseStack< T >::push ( element  )  [inline]

Definition at line 73 of file base_stack.h.

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

Definition at line 80 of file base_stack.h.

Referenced by zmm::BaseStack< Object * >::push().

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

Definition at line 63 of file base_stack.h.


Field Documentation

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

Definition at line 105 of file base_stack.h.

Referenced by zmm::BaseStack< Object * >::pop().

pthread_mutex_t zmm::Object::mutex [protected, inherited]

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