zmm::Array< T > Class Template Reference

#include <array.h>

Inheritance diagram for zmm::Array< T >:
zmm::Object ReentrantArray< T >

Public Member Functions

 Array ()
 Array (int capacity)
void append (Ref< T > el)
void set (Ref< T > el, int index)
Ref< T > get (int index)
void remove (int index, int count=1)
void removeUnordered (int index)
void insert (int index, Ref< T > el)
int size ()
void clear ()
void optimize ()
Object ** getObjectArray ()
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

ArrayBase base
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

template<class T>
class zmm::Array< T >

Definition at line 68 of file array.h.


Constructor & Destructor Documentation

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

Definition at line 74 of file array.h.

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

Definition at line 78 of file array.h.


Member Function Documentation

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

Reimplemented in ReentrantArray< T >.

Definition at line 83 of file array.h.

template<class T>
void zmm::Array< T >::clear (  )  [inline]

Reimplemented in ReentrantArray< T >.

Definition at line 111 of file array.h.

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

Reimplemented in ReentrantArray< T >.

Definition at line 91 of file array.h.

template<class T>
Object** zmm::Array< T >::getObjectArray (  )  [inline]

Definition at line 120 of file 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::Array< T >::insert ( int  index,
Ref< T >  el 
) [inline]

Reimplemented in ReentrantArray< T >.

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

template<class T>
void zmm::Array< T >::optimize (  )  [inline]

Reimplemented in ReentrantArray< T >.

Definition at line 115 of file array.h.

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

Reimplemented in ReentrantArray< T >.

Definition at line 95 of file array.h.

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

Reimplemented in ReentrantArray< T >.

Definition at line 99 of file array.h.

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

Reimplemented in ReentrantArray< T >.

Definition at line 87 of file array.h.

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

Reimplemented in ReentrantArray< T >.

Definition at line 107 of file array.h.


Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
template<class T>
ArrayBase zmm::Array< T >::base [protected]
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