zmm::ObjectStack< T > Class Template Reference

#include <object_stack.h>

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

Public Member Functions

 ObjectStack (int initialCapacity)
 ~ObjectStack ()
void push (Ref< T > element)
Ref< T > pop ()
int getCapacity ()
int size ()
bool isEmpty ()
void push (Object *element)
void resize (int requiredSize)
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

Object ** data
ObjectemptyType
int capacity
int count
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

template<class T>
class zmm::ObjectStack< T >

Definition at line 42 of file object_stack.h.


Constructor & Destructor Documentation

template<class T>
zmm::ObjectStack< T >::ObjectStack ( int  initialCapacity  )  [inline]

Definition at line 45 of file object_stack.h.

template<class T>
zmm::ObjectStack< T >::~ObjectStack (  )  [inline]

Definition at line 49 of file object_stack.h.


Member Function Documentation

int zmm::BaseStack< Object * >::getCapacity (  )  [inline, inherited]

Definition at line 58 of file base_stack.h.

References zmm::BaseStack< T >::capacity.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

bool zmm::BaseStack< Object * >::isEmpty (  )  [inline, inherited]

Definition at line 68 of file base_stack.h.

References zmm::BaseStack< T >::count.

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<class T>
Ref<T> zmm::ObjectStack< T >::pop (  )  [inline]

Reimplemented from zmm::BaseStack< Object * >.

Definition at line 66 of file object_stack.h.

Referenced by zmm::ObjectStack< Element >::pop().

void zmm::BaseStack< Object * >::push ( Object element  )  [inline, inherited]
template<class T>
void zmm::ObjectStack< T >::push ( Ref< T >  element  )  [inline]

Definition at line 59 of file object_stack.h.

Referenced by zmm::ObjectStack< Element >::push().

void Object::release (  )  [inherited]
void zmm::BaseStack< Object * >::resize ( int  requiredSize  )  [inline, inherited]
void Object::retain (  )  [inherited]
int zmm::BaseStack< Object * >::size (  )  [inline, inherited]

Definition at line 63 of file base_stack.h.

References zmm::BaseStack< T >::count.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
int zmm::BaseStack< Object * >::capacity [protected, inherited]

Definition at line 106 of file base_stack.h.

int zmm::BaseStack< Object * >::count [protected, inherited]

Definition at line 107 of file base_stack.h.

Object * * zmm::BaseStack< Object * >::data [protected, inherited]

Definition at line 104 of file base_stack.h.

Object * zmm::BaseStack< Object * >::emptyType [protected, inherited]

Definition at line 105 of file base_stack.h.

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