zmm::BaseArray< T > Class Template Reference

#include <base_array.h>

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

Public Member Functions

 BaseArray ()
 BaseArray (int capacity)
void _init (int capacity)
 ~BaseArray ()
void append (T el)
void set (T el, int index)
get (int index)
void remove (int index, int count=1)
void removeUnordered (int index)
void insert (int index, T el)
int size ()
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

T * arr
int siz
int capacity
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

template<class T>
class zmm::BaseArray< T >

Definition at line 44 of file base_array.h.


Constructor & Destructor Documentation

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

Definition at line 47 of file base_array.h.

template<class T>
zmm::BaseArray< T >::BaseArray ( int  capacity  )  [inline]

Definition at line 52 of file base_array.h.

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

Definition at line 64 of file base_array.h.


Member Function Documentation

template<class T>
void zmm::BaseArray< T >::_init ( int  capacity  )  [inline]

Definition at line 57 of file base_array.h.

Referenced by zmm::BaseArray< int >::BaseArray().

template<class T>
void zmm::BaseArray< T >::append ( el  )  [inline]

Definition at line 70 of file base_array.h.

template<class T>
T zmm::BaseArray< T >::get ( int  index  )  [inline]

Definition at line 81 of file base_array.h.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

template<class T>
void zmm::BaseArray< T >::insert ( int  index,
el 
) [inline]

Definition at line 114 of file base_array.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.

void Object::release (  )  [inherited]
template<class T>
void zmm::BaseArray< T >::remove ( int  index,
int  count = 1 
) [inline]

Definition at line 86 of file base_array.h.

template<class T>
void zmm::BaseArray< T >::removeUnordered ( int  index  )  [inline]

Definition at line 107 of file base_array.h.

template<class T>
void zmm::BaseArray< T >::resize ( int  requiredSize  )  [inline]

Definition at line 131 of file base_array.h.

Referenced by zmm::BaseArray< int >::append(), and zmm::BaseArray< int >::insert().

void Object::retain (  )  [inherited]
template<class T>
void zmm::BaseArray< T >::set ( el,
int  index 
) [inline]

Definition at line 76 of file base_array.h.

template<class T>
int zmm::BaseArray< T >::size (  )  [inline]

Definition at line 126 of file base_array.h.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
template<class T>
T* zmm::BaseArray< T >::arr [protected]
template<class T>
int zmm::BaseArray< T >::capacity [protected]

Definition at line 159 of file base_array.h.

Referenced by zmm::BaseArray< int >::resize().

pthread_mutex_t zmm::Object::mutex [protected, inherited]
template<class T>
int zmm::BaseArray< T >::siz [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