2005/5/9

     
 

class THashSet

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

acdk::util::THashSet< K > Class Template Reference

#include <THashSet.h>

Inheritance diagram for acdk::util::THashSet< K >:

acdk::util::TAbstractSet< K > acdk::util::TAbstractCollection< K > acdk::util::TSet< K > acdk::lang::Object acdk::util::TCollection< K > acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

template<class K>
class acdk::util::THashSet< K >

A unsorted typed Set implemented via HashCodes.

The elements stored in a THashSet should implement the method hashCode().

See also:

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

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


Public Types

typedef K RKeyType
typedef RKeyType RValueType
typedef acdk::lang::Object RMapValueType
typedef THashSet< RKeyTypeThisContainerType
typedef RefHolder< ThisContainerTypeRThisContainerType
typedef THashSet< RKeyTypeThisType
typedef RefHolder< ThisTypeRThisType
typedef RThisContainerType RefType
typedef THashMap< RKeyType,
RMapValueType
HashMapType
typedef TBucket< RKeyType,
RMapValueType
BucketType
typedef BucketType::RefType RBucketType
typedef TBucketNode< RKeyType,
RMapValueType
BucketNodeType
typedef BucketNodeType::RefType RBucketNodeType
typedef ObjectArrayImpl< RBucketTypeBucketArrayType
typedef RObjectArrayImpl<
RBucketType
RBucketArrayType
typedef TMap< RKeyType, RMapValueTypeMapType
typedef MapType::RefType RMapType
typedef MapType::MapEntryType MapEntryType
typedef MapEntryType::RefType RMapEntryType
typedef MapType::KeySetType KeySetType
typedef KeySetType::RefType RKeySetType
typedef MapType::MapEntrySetType MapEntrySetType
typedef MapEntrySetType::RefType RMapEntrySetType
typedef MapType::ValueCollectionType ValueCollectionType
typedef ValueCollectionType::RefType RValueCollectionType
typedef TAbstractSet< K
>::IteratorType 
IteratorType
typedef IteratorType::RefType RIteratorType

Public Member Functions

 THashSet (int initialCapacity=HashMap::DEFAULT_CAPACITY, float initialLoadFactor=HashMap::DEFAULT_LOAD_FACTOR)
virtual int size ()
virtual bool isEmpty ()
 reimplemented from Collection

virtual bool add (IN(RValueType) o)
virtual void clear ()
 reimplemented from Collection

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

virtual RIteratorType iterator ()
 reimplemented from Collection

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

virtual acdk::lang::Object clone ()
virtual acdk::lang::Object clone (sys::Allocator *alc)

Static Public Member Functions

acdk::lang::Object create_instance ()

Public Attributes

HashMapType _map


Member Typedef Documentation

template<class K>
typedef ObjectArrayImpl<RBucketType> acdk::util::THashSet< K >::BucketArrayType
 

template<class K>
typedef TBucketNode<RKeyType, RMapValueType> acdk::util::THashSet< K >::BucketNodeType
 

template<class K>
typedef TBucket<RKeyType, RMapValueType> acdk::util::THashSet< K >::BucketType
 

template<class K>
typedef THashMap<RKeyType, RMapValueType> acdk::util::THashSet< K >::HashMapType
 

template<class K>
typedef TAbstractSet<K>::IteratorType acdk::util::THashSet< K >::IteratorType
 

Reimplemented from acdk::util::TAbstractSet< K >.

template<class K>
typedef MapType::KeySetType acdk::util::THashSet< K >::KeySetType
 

template<class K>
typedef MapType::MapEntrySetType acdk::util::THashSet< K >::MapEntrySetType
 

template<class K>
typedef MapType::MapEntryType acdk::util::THashSet< K >::MapEntryType
 

template<class K>
typedef TMap<RKeyType, RMapValueType> acdk::util::THashSet< K >::MapType
 

template<class K>
typedef RObjectArrayImpl<RBucketType> acdk::util::THashSet< K >::RBucketArrayType
 

template<class K>
typedef BucketNodeType::RefType acdk::util::THashSet< K >::RBucketNodeType
 

template<class K>
typedef BucketType::RefType acdk::util::THashSet< K >::RBucketType
 

template<class K>
typedef RThisContainerType acdk::util::THashSet< K >::RefType
 

Reimplemented from acdk::util::TAbstractSet< K >.

template<class K>
typedef IteratorType::RefType acdk::util::THashSet< K >::RIteratorType
 

Reimplemented from acdk::util::TAbstractSet< K >.

template<class K>
typedef KeySetType::RefType acdk::util::THashSet< K >::RKeySetType
 

template<class K>
typedef K acdk::util::THashSet< K >::RKeyType
 

template<class K>
typedef MapEntrySetType::RefType acdk::util::THashSet< K >::RMapEntrySetType
 

template<class K>
typedef MapEntryType::RefType acdk::util::THashSet< K >::RMapEntryType
 

template<class K>
typedef MapType::RefType acdk::util::THashSet< K >::RMapType
 

template<class K>
typedef acdk::lang::Object acdk::util::THashSet< K >::RMapValueType
 

template<class K>
typedef RefHolder<ThisContainerType> acdk::util::THashSet< K >::RThisContainerType
 

template<class K>
typedef RefHolder<ThisType> acdk::util::THashSet< K >::RThisType
 

template<class K>
typedef ValueCollectionType::RefType acdk::util::THashSet< K >::RValueCollectionType
 

template<class K>
typedef RKeyType acdk::util::THashSet< K >::RValueType
 

Reimplemented from acdk::util::TAbstractSet< K >.

template<class K>
typedef THashSet<RKeyType> acdk::util::THashSet< K >::ThisContainerType
 

template<class K>
typedef THashSet<RKeyType> acdk::util::THashSet< K >::ThisType
 

template<class K>
typedef MapType::ValueCollectionType acdk::util::THashSet< K >::ValueCollectionType
 


Constructor & Destructor Documentation

template<class K>
acdk::util::THashSet< K >::THashSet int  initialCapacity = HashMap::DEFAULT_CAPACITY,
float  initialLoadFactor = HashMap::DEFAULT_LOAD_FACTOR
[inline]
 


Member Function Documentation

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

Reimplemented from acdk::util::TAbstractSet< K >.

template<class K>
virtual void acdk::util::THashSet< K >::clear  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractSet< K >.

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

See also:
clone

Reimplemented from acdk::lang::Object.

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

See also:
serialized_clone

Reimplemented from acdk::lang::Object.

template<class K>
virtual bool acdk::util::THashSet< K >::contains IN(RValueType o  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractSet< K >.

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

Reimplemented from acdk::lang::Object.

template<class K>
virtual bool acdk::util::THashSet< K >::isEmpty  )  [inline, virtual]
 

reimplemented from Collection

Reimplemented from acdk::util::TAbstractSet< K >.

template<class K>
virtual RIteratorType acdk::util::THashSet< K >::iterator  )  [inline, virtual]
 

reimplemented from Collection

Implements acdk::util::TAbstractSet< K >.

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

reimplemented from Collection

Reimplemented from acdk::util::TAbstractSet< K >.

template<class K>
virtual int acdk::util::THashSet< K >::size  )  [inline, virtual]
 

Implements acdk::util::TAbstractSet< K >.


Member Data Documentation

template<class K>
HashMapType acdk::util::THashSet< K >::_map