2005/5/9

     
 

class TAbstractList

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

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

#include <TAbstractList.h>

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

acdk::util::TAbstractCollection< T > acdk::util::TList< T > acdk::lang::Object acdk::util::TCollection< T > acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch acdk::util::TAbstractListSubList< T > acdk::util::TArrayList< T > List of all members.

Detailed Description

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

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


Public Types

typedef T RValueType
typedef TAbstractList< RValueTypeThisType
typedef RefHolder< ThisTypeRThisType
typedef RThisType RefType
typedef TCollection< RValueTypeCollectionType
typedef CollectionType::RefType RCollectionType
typedef RValueType RElementType
typedef TList< RValueTypeListType
typedef ListType::RefType RListType
typedef TAbstractList< RValueTypeThisCollectionType
typedef RefHolder< TAbstractCollection<
RValueType > > 
RThisCollectionType
typedef TAbstractCollection<
RValueType
AbstractCollectionType
typedef AbstractCollectionType::RefType RAbstractCollectionType
typedef TIterator< T > IteratorType
typedef IteratorType::RefType RIteratorType
typedef ObjectArrayImpl< T > ValueArrayType
typedef RObjectArrayImpl< T > RValueArrayType
typedef TListIterator< RValueTypeListIteratorType
typedef ListIteratorType::RefType RListIteratorType
typedef TAbstractListSubList<
RValueType
AbstractListSubListType
typedef RefHolder< AbstractListSubListTypeRAbstractListSubListType

Public Member Functions

 TAbstractList ()
virtual RValueType get (int index)=0
virtual void add (int index, IN(RValueType) o)
virtual bool add (IN(RValueType) o)
virtual bool addAll (int index, IN(RCollectionType) c)
virtual void clear ()
 reimplemented from Collection

virtual bool equals (IN(acdk::lang::Object) o)
virtual int hashCode ()
virtual int indexOf (IN(RValueType) o)
virtual RIteratorType iterator ()
 reimplemented from Collection

virtual RListIteratorType listIterator (int index=0)
virtual int lastIndexOf (IN(RValueType) o)
virtual RValueType remove (int index)
virtual RValueType set (int index, IN(RValueType) o)
virtual int size ()
 return the number of elements in this collection

virtual RListType subList (int fromIndex, int toIndex)
 see AbstractListSubList

virtual bool isEmpty ()
 reimplemented from Collection

virtual bool contains (IN(RValueType) obj)
 reimplemented from Collection

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

virtual bool remove (IN(RValueType) obj)
 reimplemented from Collection

virtual bool removeAll (IN(RCollectionType) c)
 reimplemented from Collection

virtual bool addAll (IN(RCollectionType) c)
 reimplemented from Collection

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

virtual RValueArrayType toArray ()
 reimplemented from Collection

virtual RValueArrayType toArray (IN(RValueArrayType) a)
 reimplemented from Collection

virtual RString toString ()
 return a string representation of this object Object::toString() return getName() by default


Protected Member Functions

virtual void removeRange (int fromIndex, int toIndex)

Protected Attributes

int _modCount

Friends

class TAbstractListIterator< T >
class TAbstractListListIterator< T >
class TAbstractListSubList< T >


Member Typedef Documentation

template<class T>
typedef TAbstractCollection<RValueType> acdk::util::TAbstractList< T >::AbstractCollectionType
 

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

template<class T>
typedef TAbstractListSubList<RValueType> acdk::util::TAbstractList< T >::AbstractListSubListType
 

Reimplemented in acdk::util::TAbstractListSubList< T >.

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

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

Reimplemented in acdk::util::TArrayList< T >.

template<class T>
typedef TIterator<T> acdk::util::TAbstractList< T >::IteratorType
 

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TArrayList< T >.

template<class T>
typedef TList<RValueType> acdk::util::TAbstractList< T >::ListType
 

template<class T>
typedef AbstractCollectionType::RefType acdk::util::TAbstractList< T >::RAbstractCollectionType
 

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

template<class T>
typedef RefHolder<AbstractListSubListType> acdk::util::TAbstractList< T >::RAbstractListSubListType
 

Reimplemented in acdk::util::TAbstractListSubList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

template<class T>
typedef RValueType acdk::util::TAbstractList< T >::RElementType
 

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

template<class T>
typedef ListType::RefType acdk::util::TAbstractList< T >::RListType
 

template<class T>
typedef RefHolder<TAbstractCollection<RValueType> > acdk::util::TAbstractList< T >::RThisCollectionType
 

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

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

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

Reimplemented in acdk::util::TArrayList< T >.

template<class T>
typedef RObjectArrayImpl<T> acdk::util::TAbstractList< T >::RValueArrayType
 

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

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

template<class T>
typedef TAbstractList<RValueType> acdk::util::TAbstractList< T >::ThisCollectionType
 

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

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

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

Reimplemented in acdk::util::TArrayList< T >.

template<class T>
typedef ObjectArrayImpl<T> acdk::util::TAbstractList< T >::ValueArrayType
 

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


Constructor & Destructor Documentation

template<class T>
acdk::util::TAbstractList< T >::TAbstractList  )  [inline]
 


Member Function Documentation

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

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

template<class T>
virtual bool acdk::util::TAbstractList< T >::equals IN(acdk::lang::Object o  )  [inline, virtual]
 

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

template<class T>
virtual RValueType acdk::util::TAbstractList< T >::get int  index  )  [pure virtual]
 

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

Implemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

template<class T>
virtual int acdk::util::TAbstractList< T >::hashCode  )  [inline, virtual]
 

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

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

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

Reimplemented in acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

template<class T>
TAbstractList< T >::RIteratorType acdk::util::TAbstractList< T >::iterator  )  [inline, virtual]
 

reimplemented from Collection

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

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

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

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

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

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

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

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

return the number of elements in this collection

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

Reimplemented in acdk::util::TAbstractListSubList< T >, and acdk::util::TArrayList< T >.

template<class T>
TAbstractList< T >::RListType acdk::util::TAbstractList< T >::subList int  fromIndex,
int  toIndex
[virtual]
 

see AbstractListSubList

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

template<class T>
virtual RValueArrayType acdk::util::TAbstractList< T >::toArray IN(RValueArrayType a  )  [inline, virtual]
 

reimplemented from Collection

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

template<class T>
virtual RValueArrayType acdk::util::TAbstractList< T >::toArray  )  [inline, virtual]
 

reimplemented from Collection

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

Reimplemented in acdk::util::TArrayList< T >.

template<class T>
virtual RString acdk::util::TAbstractList< T >::toString  )  [inline, virtual]
 

return a string representation of this object Object::toString() return getName() by default

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


Friends And Related Function Documentation

template<class T>
friend class TAbstractListIterator< T > [friend]
 

template<class T>
friend class TAbstractListListIterator< T > [friend]
 

template<class T>
friend class TAbstractListSubList< T > [friend]
 


Member Data Documentation

template<class T>
int acdk::util::TAbstractList< T >::_modCount [mutable, protected]
 

Reimplemented in acdk::util::TAbstractListSubList< T >.