zmm::ArrayBase Class Reference

#include <array.h>

Public Member Functions

 ArrayBase ()
 ~ArrayBase ()
void init (int capacity)
void append (Object *el)
void set (Object *el, int index)
Objectget (int index)
void remove (int index, int count)
void removeUnordered (int index)
void clear ()
void insert (int index, Object *el)
int size ()
void optimize ()

Data Fields

Object ** arr

Protected Member Functions

void resize (int requiredSize)

Protected Attributes

int siz
int capacity

Detailed Description

Definition at line 42 of file array.h.


Constructor & Destructor Documentation

ArrayBase::ArrayBase (  ) 

Definition at line 43 of file array.cc.

ArrayBase::~ArrayBase (  ) 

Definition at line 53 of file array.cc.

References arr, FREE, zmm::Object::release(), and siz.


Member Function Documentation

void ArrayBase::append ( Object el  ) 

Definition at line 64 of file array.cc.

References arr, resize(), zmm::Object::retain(), and siz.

Referenced by zmm::Array< CacheObject >::append().

void ArrayBase::clear (  ) 

Definition at line 151 of file array.cc.

References arr, zmm::Object::release(), and siz.

Referenced by zmm::Array< CacheObject >::clear().

Object * ArrayBase::get ( int  index  ) 

Definition at line 80 of file array.cc.

References arr.

Referenced by zmm::Array< CacheObject >::get().

void ArrayBase::init ( int  capacity  ) 

Definition at line 46 of file array.cc.

References arr, MALLOC, and siz.

Referenced by zmm::Array< CacheObject >::Array().

void ArrayBase::insert ( int  index,
Object el 
)

Definition at line 120 of file array.cc.

References arr, resize(), zmm::Object::retain(), and siz.

Referenced by zmm::Array< CacheObject >::insert().

void ArrayBase::optimize (  ) 

Definition at line 133 of file array.cc.

References arr, capacity, REALLOC, and siz.

Referenced by zmm::Array< CacheObject >::optimize().

void ArrayBase::remove ( int  index,
int  count 
)

Definition at line 84 of file array.cc.

References arr, max, NULL, zmm::Object::release(), and siz.

Referenced by zmm::Array< CacheObject >::remove().

void ArrayBase::removeUnordered ( int  index  ) 

Definition at line 111 of file array.cc.

References arr, NULL, zmm::Object::release(), and siz.

Referenced by zmm::Array< CacheObject >::removeUnordered().

void ArrayBase::resize ( int  requiredSize  )  [protected]

Definition at line 139 of file array.cc.

References arr, capacity, REALLOC, and siz.

Referenced by append(), and insert().

void ArrayBase::set ( Object el,
int  index 
)

Definition at line 71 of file array.cc.

References arr, zmm::Object::release(), and zmm::Object::retain().

Referenced by zmm::Array< CacheObject >::set().

int zmm::ArrayBase::size (  )  [inline]

Definition at line 55 of file array.h.

References siz.

Referenced by zmm::Array< CacheObject >::size().


Field Documentation

int zmm::ArrayBase::capacity [protected]

Definition at line 63 of file array.h.

Referenced by optimize(), and resize().

int zmm::ArrayBase::siz [protected]

Definition at line 62 of file array.h.

Referenced by append(), clear(), init(), insert(), optimize(), remove(), removeUnordered(), resize(), size(), and ~ArrayBase().


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

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