2005/5/9

     
 

class TArrayList

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

acdk::util::TArrayList< T > Class Template Reference

#include <TArrayList.h>

Inheritance diagram for acdk::util::TArrayList< T >:

acdk::util::TAbstractList< T > acdk::lang::Cloneable acdk::io::Serializable acdk::util::TAbstractCollection< T > acdk::util::TList< T > acdk::lang::Object acdk::util::TCollection< T > acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

template<class T>
class acdk::util::TArrayList< T >

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.6
Date:
Date
2005/02/05 10:45:06
isfinal


Public Types

typedef T RValueType
typedef T RElementType
typedef RElementType::Type ElementType
typedef TArrayList< RValueTypeThisType
typedef RefHolder< ThisTypeRThisType
typedef ThisType ArrayListType
typedef RThisType RArrayListType
typedef RThisType RefType
typedef TCollection< RValueTypeCollectionType
typedef CollectionType::RefType RCollectionType
typedef TIterator< RValueTypeIteratorType
typedef IteratorType::RefType RIteratorType
typedef TListIterator< RValueTypeListIteratorType
typedef ListIteratorType::RefType RListIteratorType
typedef TAbstractList< RValueTypeAbstractListType
typedef AbstractListType::RefType RAbstractListType
typedef ObjectArrayImpl< RValueTypeValueTypeArrayType
typedef RObjectArrayImpl<
RValueType
RValueTypeArrayType

Public Member Functions

 TArrayList (int capacity=ArrayList::DEFAULT_CAPACITY)
 TArrayList (IN(RCollectionType) other)
virtual void ensureCapacity (int mincap)
virtual bool add (IN(RValueType) o)
virtual bool containsAll (IN(RCollectionType) c)
 reimplemented from Collection

RValueType get (int index)
int size ()
 return the number of elements in this collection

bool isEmpty ()
 reimplemented from Collection

RValueType remove (int index)
bool removeAll (IN(RCollectionType) c)
 reimplemented from Collection

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

bool remove (IN(RValueType) o)
 reimplemented from Collection

void removeRange (int fromIndex, int toIndex)
void add (int index, IN(RValueType) obj)
bool addAll (IN(RCollectionType) coll)
 reimplemented from Collection

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

int indexOf (IN(RValueType) obj)
int lastIndexOf (IN(RValueType) obj)
RListIteratorType listIterator (int index=0)
void clear ()
 reimplemented from Collection

RValueType set (int index, IN(RValueType) obj)
RValueTypeArrayType toArray ()
 reimplemented from Collection

RValueTypeArrayType toArray (IN(RValueTypeArrayType) oarray)
void trimToSize ()

Static Public Member Functions

acdk::lang::Object create_instance ()

Protected Attributes

int _size
RValueTypeArrayType _data

Static Private Member Functions

bool _isEqual (IN(RValueType) o1, IN(RValueType) o2)


Member Typedef Documentation

template<class T>
typedef TAbstractList<RValueType> acdk::util::TArrayList< T >::AbstractListType
 

template<class T>
typedef ThisType acdk::util::TArrayList< T >::ArrayListType
 

template<class T>
typedef TCollection<RValueType> acdk::util::TArrayList< T >::CollectionType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef RElementType::Type acdk::util::TArrayList< T >::ElementType
 

Reimplemented from acdk::util::TCollection< T >.

template<class T>
typedef TIterator<RValueType> acdk::util::TArrayList< T >::IteratorType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef TListIterator<RValueType> acdk::util::TArrayList< T >::ListIteratorType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef AbstractListType::RefType acdk::util::TArrayList< T >::RAbstractListType
 

template<class T>
typedef RThisType acdk::util::TArrayList< T >::RArrayListType
 

template<class T>
typedef CollectionType::RefType acdk::util::TArrayList< T >::RCollectionType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef RThisType acdk::util::TArrayList< T >::RefType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef T acdk::util::TArrayList< T >::RElementType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef IteratorType::RefType acdk::util::TArrayList< T >::RIteratorType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef ListIteratorType::RefType acdk::util::TArrayList< T >::RListIteratorType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef RefHolder<ThisType> acdk::util::TArrayList< T >::RThisType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef T acdk::util::TArrayList< T >::RValueType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef RObjectArrayImpl<RValueType> acdk::util::TArrayList< T >::RValueTypeArrayType
 

template<class T>
typedef TArrayList<RValueType> acdk::util::TArrayList< T >::ThisType
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
typedef ObjectArrayImpl<RValueType> acdk::util::TArrayList< T >::ValueTypeArrayType
 


Constructor & Destructor Documentation

template<class T>
acdk::util::TArrayList< T >::TArrayList int  capacity = ArrayList::DEFAULT_CAPACITY  )  [inline]
 

template<class T>
acdk::util::TArrayList< T >::TArrayList IN(RCollectionType other  )  [inline]
 


Member Function Documentation

template<class T>
bool acdk::util::TArrayList< T >::_isEqual IN(RValueType o1,
IN(RValueType o2
[inline, static, private]
 

template<class T>
void acdk::util::TArrayList< T >::add int  index,
IN(RValueType obj
[inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
virtual bool acdk::util::TArrayList< T >::add IN(RValueType o  )  [inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
bool acdk::util::TArrayList< T >::addAll int  index,
IN(RCollectionType coll
[inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
bool acdk::util::TArrayList< T >::addAll IN(RCollectionType coll  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
void acdk::util::TArrayList< T >::clear  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
acdk::lang::Object acdk::util::TArrayList< T >::clone sys::Allocator *  alc  )  [inline, virtual]
 

Reimplemented from acdk::lang::Cloneable.

template<class T>
acdk::lang::Object acdk::util::TArrayList< T >::clone  )  [inline, virtual]
 

Implements acdk::lang::Cloneable.

template<class T>
bool acdk::util::TArrayList< T >::contains IN(RValueType obj  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
virtual bool acdk::util::TArrayList< T >::containsAll IN(RCollectionType c  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
acdk::lang::Object acdk::util::TArrayList< T >::create_instance  )  [inline, static]
 

Reimplemented from acdk::lang::Object.

template<class T>
virtual void acdk::util::TArrayList< T >::ensureCapacity int  mincap  )  [inline, virtual]
 

template<class T>
RValueType acdk::util::TArrayList< T >::get int  index  )  [inline, virtual]
 

Implements acdk::util::TAbstractList< T >.

template<class T>
int acdk::util::TArrayList< T >::indexOf IN(RValueType obj  )  [inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
bool acdk::util::TArrayList< T >::isEmpty  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
int acdk::util::TArrayList< T >::lastIndexOf IN(RValueType obj  )  [inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
RListIteratorType acdk::util::TArrayList< T >::listIterator int  index = 0  )  [inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
bool acdk::util::TArrayList< T >::remove IN(RValueType o  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
RValueType acdk::util::TArrayList< T >::remove int  index  )  [inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
bool acdk::util::TArrayList< T >::removeAll IN(RCollectionType c  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
void acdk::util::TArrayList< T >::removeRange int  fromIndex,
int  toIndex
[inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
bool acdk::util::TArrayList< T >::retainAll IN(RCollectionType c  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
RValueType acdk::util::TArrayList< T >::set int  index,
IN(RValueType obj
[inline, virtual]
 

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
int acdk::util::TArrayList< T >::size  )  [inline, virtual]
 

return the number of elements in this collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
RValueTypeArrayType acdk::util::TArrayList< T >::toArray IN(RValueTypeArrayType oarray  )  [inline]
 

template<class T>
RValueTypeArrayType acdk::util::TArrayList< T >::toArray  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractList< T >.

template<class T>
void acdk::util::TArrayList< T >::trimToSize  )  [inline]
 


Member Data Documentation

template<class T>
RValueTypeArrayType acdk::util::TArrayList< T >::_data [protected]
 

template<class T>
int acdk::util::TArrayList< T >::_size [protected]