2005/5/9

     
 

class TCollection

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

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

#include <TCollection.h>

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

acdk::util::TAbstractCollection< T > acdk::util::TList< T > acdk::util::TAbstractList< T > acdk::util::TAbstractSet< T > acdk::util::TAbstractList< T > acdk::util::TAbstractListSubList< T > acdk::util::TArrayList< T > acdk::util::TAbstractListSubList< T > acdk::util::TArrayList< T > List of all members.

Detailed Description

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

Typed Collection following Java Model.

See also:

Java: http://java.sun.com/j2se/1.3/docs/api/java/util/Collection.html

Requirements:
  • Element created with default constructor T() has to be implemented. acdk_isNil(T()) == true
  • Copy constructor has to be implemented.

  • ::acdk_equals(INP(T) t); has to be implemented
  • ::acdk_isNil(INP(T) t); has to be implemented

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


Public Types

typedef T RValueType
typedef T RElementType
typedef RElementType::Type ElementType
typedef TCollection< T > CollectionType
typedef InterfaceHolder< CollectionTypeRCollectionType
typedef RCollectionType RefType
typedef TIterator< RValueTypeIteratorType
typedef IteratorType::RefType RIteratorType
typedef RObjectArrayImpl<
RValueType
RValueArrayType

Public Member Functions

virtual bool add (INP(T) o)=0
 Add an element to collection.

virtual bool addAll (INP(RCollectionType) c)=0
 add all elements of c to this collection

virtual void clear ()=0
 remove all elements from this collection

virtual int size ()=0
 return the number of elements in this collection

virtual bool isEmpty ()=0
 return true if this collection doesn't contains any elements

virtual bool contains (INP(RValueType) o)=0
virtual bool containsAll (INP(RCollectionType) c)=0
virtual RIteratorType iterator ()=0
virtual bool remove (IN(RValueType) o)=0
virtual bool removeAll (IN(RCollectionType) c)=0
virtual bool retainAll (IN(RCollectionType) c)=0
virtual bool equals (IN(acdk::lang::Object) c)=0
virtual int hashCode ()=0
virtual RValueArrayType toArray ()=0
virtual RValueArrayType toArray (INP(RValueArrayType) array)=0


Member Typedef Documentation

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

Reimplemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

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

Reimplemented in acdk::util::TArrayList< T >, and acdk::util::TTreeMapEntrySet< K, V >.

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

Reimplemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractMapCachedKeySet< K, V >, acdk::util::TAbstractMapCachedValuesCollection< K, V >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
typedef InterfaceHolder<CollectionType> acdk::util::TCollection< T >::RCollectionType
 

Reimplemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractListSubList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
typedef RCollectionType acdk::util::TCollection< T >::RefType
 

Reimplemented in acdk::util::TAbstractList< T >, acdk::util::TAbstractListSubList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

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

Reimplemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TArrayList< T >, acdk::util::TList< T >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractCollection< K >.

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

Reimplemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractMapCachedKeySet< K, V >, acdk::util::TAbstractMapCachedValuesCollection< K, V >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
typedef RObjectArrayImpl<RValueType> acdk::util::TCollection< T >::RValueArrayType
 

Reimplemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractSet< T >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

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

Reimplemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractListSubList< T >, acdk::util::TAbstractMapCachedKeySet< K, V >, acdk::util::TAbstractMapCachedValuesCollection< K, V >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.


Member Function Documentation

template<class T>
virtual bool acdk::util::TCollection< T >::add INP(T)  o  )  [pure virtual]
 

Add an element to collection.

template<class T>
virtual bool acdk::util::TCollection< T >::addAll INP(RCollectionType c  )  [pure virtual]
 

add all elements of c to this collection

template<class T>
virtual void acdk::util::TCollection< T >::clear  )  [pure virtual]
 

remove all elements from this collection

Implemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual bool acdk::util::TCollection< T >::contains INP(RValueType o  )  [pure virtual]
 

template<class T>
virtual bool acdk::util::TCollection< T >::containsAll INP(RCollectionType c  )  [pure virtual]
 

template<class T>
virtual bool acdk::util::TCollection< T >::equals IN(acdk::lang::Object c  )  [pure virtual]
 

Implemented in acdk::util::TAbstractList< T >, acdk::util::TAbstractMapCachedValuesCollection< K, V >, acdk::util::TAbstractSet< T >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual int acdk::util::TCollection< T >::hashCode  )  [pure virtual]
 

Implemented in acdk::util::TAbstractList< T >, acdk::util::TAbstractMapCachedValuesCollection< K, V >, acdk::util::TAbstractSet< T >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual bool acdk::util::TCollection< T >::isEmpty  )  [pure virtual]
 

return true if this collection doesn't contains any elements

Implemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractMapCachedKeySet< K, V >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual RIteratorType acdk::util::TCollection< T >::iterator  )  [pure virtual]
 

Implemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractMapCachedKeySet< K, V >, acdk::util::TAbstractMapCachedValuesCollection< K, V >, acdk::util::TAbstractSet< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual bool acdk::util::TCollection< T >::remove IN(RValueType o  )  [pure virtual]
 

Implemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual bool acdk::util::TCollection< T >::removeAll IN(RCollectionType c  )  [pure virtual]
 

Implemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::TList< T >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual bool acdk::util::TCollection< T >::retainAll IN(RCollectionType c  )  [pure virtual]
 

Implemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::TList< T >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual int acdk::util::TCollection< T >::size  )  [pure virtual]
 

return the number of elements in this collection

Implemented in acdk::util::TAbstractList< T >, acdk::util::TAbstractListSubList< T >, acdk::util::TAbstractMapCachedKeySet< K, V >, acdk::util::TAbstractMapCachedValuesCollection< K, V >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::THashMapEntriesSet< K, V >, acdk::util::THashMapKeySet< K, V >, acdk::util::THashMapValuesCollection< K, V >, acdk::util::THashSet< K >, acdk::util::TList< T >, acdk::util::TSortedMapValueCollection< K, V >, acdk::util::TTreeMapKeySet< K, V >, acdk::util::TTreeMapValueSet< K, V >, acdk::util::TTreeMapEntrySet< K, V >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.

template<class T>
virtual RValueArrayType acdk::util::TCollection< T >::toArray INP(RValueArrayType array  )  [pure virtual]
 

template<class T>
virtual RValueArrayType acdk::util::TCollection< T >::toArray  )  [pure virtual]
 

Implemented in acdk::util::TAbstractCollection< T >, acdk::util::TAbstractList< T >, acdk::util::TAbstractSet< T >, acdk::util::TArrayList< T >, acdk::util::TList< T >, acdk::util::TAbstractCollection< V >, acdk::util::TAbstractCollection< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractCollection< TMapEntry< K, V >::RefType >, acdk::util::TAbstractCollection< K >, acdk::util::TAbstractSet< V >, acdk::util::TAbstractSet< InterfaceHolder< TMapEntry< K, V > > >, acdk::util::TAbstractSet< TMapEntry< K, V >::RefType >, and acdk::util::TAbstractSet< K >.