2005/5/9

     
 

class ArrayList

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::util::ArrayList Class Reference

#include <ArrayList.h>

Inheritance diagram for acdk::util::ArrayList:

acdk::util::AbstractList acdk::lang::Cloneable acdk::io::Serializable acdk::util::AbstractCollection acdk::util::List acdk::lang::Object acdk::util::Collection acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

API: Java<br/>.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.16
Date:
Date
2005/04/09 19:26:56
isfinal


Public Member Functions

 ArrayList (int capacity=DEFAULT_CAPACITY)
 ArrayList (IN(RCollection) other)
 ArrayList (IN(RObjectArray) array, bool copy)
 create ArrayList from array

virtual ~ArrayList ()
virtual void ensureCapacity (int mincap)
virtual bool add (IN(acdk::lang::Object) o)
 reimplemented from Collection

virtual bool containsAll (IN(RCollection) c)
 reimplemented from Collection

acdk::lang::Object get (int index)
int size ()
bool isEmpty ()
 reimplemented from Collection

acdk::lang::Object remove (int index)
bool removeAll (IN(RCollection) c)
 reimplemented from Collection

bool retainAll (IN(RCollection) c)
 reimplemented from Collection

bool remove (IN(acdk::lang::Object) o)
 reimplemented from Collection

void removeRange (int fromIndex, int toIndex)
void add (int index, IN(acdk::lang::Object) obj)
bool addAll (IN(RCollection) coll)
 reimplemented from Collection

bool addAll (int index, IN(RCollection) coll)
acdk::lang::Object clone ()
acdk::lang::Object clone (sys::Allocator *alc)
bool contains (IN(acdk::lang::Object) obj)
 reimplemented from Collection

int indexOf (IN(acdk::lang::Object) obj)
int lastIndexOf (IN(acdk::lang::Object) obj)
RListIterator listIterator (int index=0)
void clear ()
 reimplemented from Collection

acdk::lang::Object set (int index, IN(acdk::lang::Object) obj)
RObjectArray toArray ()
 reimplemented from Collection

RObjectArray toArray (IN(RObjectArray) oarray)
 reimplemented from Collection

void trimToSize ()

Static Public Member Functions

acdk::lang::Object create_instance ()

Public Attributes

int _size
RObjectArray _data

Static Public Attributes

const int DEFAULT_CAPACITY

Static Private Member Functions

bool _isEqual (IN(acdk::lang::Object) o1, IN(acdk::lang::Object) o2)


Constructor & Destructor Documentation

acdk::util::ArrayList::ArrayList int  capacity = DEFAULT_CAPACITY  ) 
 

acdk::util::ArrayList::ArrayList IN(RCollection other  ) 
 

acdk::util::ArrayList::ArrayList IN(RObjectArray array,
bool  copy
 

create ArrayList from array

Parameters:
array the array
copy if false take over the reference of array as internal data. Modification to this ArrayList will also be reflected in the array parameter.

virtual acdk::util::ArrayList::~ArrayList  )  [virtual]
 


Member Function Documentation

bool acdk::util::ArrayList::_isEqual IN(acdk::lang::Object o1,
IN(acdk::lang::Object o2
[inline, static, private]
 

void acdk::util::ArrayList::add int  index,
IN(acdk::lang::Object obj
[virtual]
 

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::ArrayList::add IN(acdk::lang::Object o  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

bool acdk::util::ArrayList::addAll int  index,
IN(RCollection coll
[virtual]
 

Reimplemented from acdk::util::AbstractList.

bool acdk::util::ArrayList::addAll IN(RCollection coll  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

void acdk::util::ArrayList::clear  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

acdk::lang::Object acdk::util::ArrayList::clone sys::Allocator *  alc  )  [virtual]
 

Reimplemented from acdk::lang::Cloneable.

acdk::lang::Object acdk::util::ArrayList::clone  )  [inline, virtual]
 

Implements acdk::lang::Cloneable.

bool acdk::util::ArrayList::contains IN(acdk::lang::Object obj  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

virtual bool acdk::util::ArrayList::containsAll IN(RCollection c  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

acdk::lang::Object acdk::util::ArrayList::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

virtual void acdk::util::ArrayList::ensureCapacity int  mincap  )  [virtual]
 

acdk::lang::Object acdk::util::ArrayList::get int  index  )  [inline, virtual]
 

Implements acdk::util::AbstractList.

int acdk::util::ArrayList::indexOf IN(acdk::lang::Object obj  )  [virtual]
 

Reimplemented from acdk::util::AbstractList.

bool acdk::util::ArrayList::isEmpty  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

int acdk::util::ArrayList::lastIndexOf IN(acdk::lang::Object obj  )  [virtual]
 

Reimplemented from acdk::util::AbstractList.

RListIterator acdk::util::ArrayList::listIterator int  index = 0  )  [inline, virtual]
 

Reimplemented from acdk::util::AbstractList.

bool acdk::util::ArrayList::remove IN(acdk::lang::Object o  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

acdk::lang::Object acdk::util::ArrayList::remove int  index  )  [virtual]
 

Reimplemented from acdk::util::AbstractList.

bool acdk::util::ArrayList::removeAll IN(RCollection c  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

void acdk::util::ArrayList::removeRange int  fromIndex,
int  toIndex
[virtual]
 

Reimplemented from acdk::util::AbstractList.

bool acdk::util::ArrayList::retainAll IN(RCollection c  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

acdk::lang::Object acdk::util::ArrayList::set int  index,
IN(acdk::lang::Object obj
[virtual]
 

Reimplemented from acdk::util::AbstractList.

int acdk::util::ArrayList::size  )  [inline, virtual]
 

Reimplemented from acdk::util::AbstractList.

RObjectArray acdk::util::ArrayList::toArray IN(RObjectArray oarray  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

RObjectArray acdk::util::ArrayList::toArray  )  [virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::AbstractList.

void acdk::util::ArrayList::trimToSize  ) 
 


Member Data Documentation

RObjectArray acdk::util::ArrayList::_data
 

int acdk::util::ArrayList::_size
 

const int acdk::util::ArrayList::DEFAULT_CAPACITY [static]