zmm::IntArray Class Reference

#include <base_array.h>

Inheritance diagram for zmm::IntArray:
zmm::BaseArray< int > zmm::Object

Public Member Functions

String toCSV (char sep= ',')
void addCSV (String csv, char sep= ',')
void _init (int capacity)
void append (intel)
void set (intel, int index)
int get (int index)
void remove (int index, int count=1)
void removeUnordered (int index)
void insert (int index, intel)
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

int * arr
int siz
int capacity
mt_atomic_t _ref_count
pthread_mutex_t mutex

Detailed Description

Definition at line 162 of file base_array.h.


Member Function Documentation

void zmm::BaseArray< int >::_init ( int  capacity  )  [inline, inherited]

Definition at line 57 of file base_array.h.

References zmm::BaseArray< T >::arr, MALLOC, and zmm::BaseArray< T >::siz.

void zmm::IntArray::addCSV ( String  csv,
char  sep = ',' 
) [inline]
void zmm::BaseArray< int >::append ( int  el  )  [inline, inherited]

Definition at line 70 of file base_array.h.

References zmm::BaseArray< T >::arr, zmm::BaseArray< T >::resize(), and zmm::BaseArray< T >::siz.

Referenced by addCSV().

int zmm::BaseArray< int >::get ( int  index  )  [inline, inherited]

Definition at line 81 of file base_array.h.

References zmm::BaseArray< T >::arr.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file object.cc.

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

void zmm::BaseArray< int >::insert ( int  index,
int  el 
) [inline, inherited]
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]
void zmm::BaseArray< int >::remove ( int  index,
int  count = 1 
) [inline, inherited]

Definition at line 86 of file base_array.h.

References zmm::BaseArray< T >::arr, max, and zmm::BaseArray< T >::siz.

void zmm::BaseArray< int >::removeUnordered ( int  index  )  [inline, inherited]

Definition at line 107 of file base_array.h.

References zmm::BaseArray< T >::arr, and zmm::BaseArray< T >::siz.

void zmm::BaseArray< int >::resize ( int  requiredSize  )  [inline, inherited]
void Object::retain (  )  [inherited]
void zmm::BaseArray< int >::set ( int  el,
int  index 
) [inline, inherited]

Definition at line 76 of file base_array.h.

References zmm::BaseArray< T >::arr.

int zmm::BaseArray< int >::size (  )  [inline, inherited]

Definition at line 126 of file base_array.h.

References zmm::BaseArray< T >::siz.

String zmm::IntArray::toCSV ( char  sep = ','  )  [inline]

Definition at line 165 of file base_array.h.

References _, and zmm::BaseArray< int >::siz.


Field Documentation

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

Definition at line 157 of file base_array.h.

int zmm::BaseArray< int >::capacity [protected, inherited]

Definition at line 159 of file base_array.h.

pthread_mutex_t zmm::Object::mutex [protected, inherited]
int zmm::BaseArray< int >::siz [protected, inherited]

Definition at line 158 of file base_array.h.

Referenced by toCSV().


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