2005/5/9

     
 

class THashMap

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

acdk::util::THashMap< K, V > Class Template Reference

#include <THashMap.h>

Inheritance diagram for acdk::util::THashMap< K, V >:

acdk::util::TAbstractMap< K, V > acdk::lang::Cloneable acdk::io::Serializable acdk::lang::Object acdk::util::TMap< K, V > acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

template<class K, class V>
class acdk::util::THashMap< K, V >

A unsorted typed Map implemented via HashCodes.

The elements stored in a THashMap 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.21
Date:
Date
2005/04/09 19:26:57


Public Types

typedef K RKeyType
typedef V RValueType
typedef THashMap< RKeyType,
RValueType
ThisContainerType
typedef RefHolder< ThisContainerTypeRThisContainerType
typedef THashMap< RKeyType,
RValueType
ThisType
typedef RefHolder< ThisTypeRThisType
typedef RThisContainerType RefType
typedef TBucket< RKeyType,
RValueType
BucketType
typedef BucketType::RefType RBucketType
typedef TBucketNode< RKeyType,
RValueType
BucketNodeType
typedef BucketNodeType::RefType RBucketNodeType
typedef ObjectArrayImpl< RBucketTypeBucketArrayType
typedef RObjectArrayImpl<
RBucketType
RBucketArrayType
typedef TMap< RKeyType, RValueTypeMapType
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 TIterator< RMapEntryTypeIteratorType
typedef IteratorType::RefType RIteratorType

Public Member Functions

 THashMap (int initialCapacity=HashMap::DEFAULT_CAPACITY, float initialLoadFactor=HashMap::DEFAULT_LOAD_FACTOR)
 THashMap (IN(RMapType) other)
virtual int size ()
virtual bool isEmpty ()
virtual void clear ()
virtual acdk::lang::Object clone ()
virtual acdk::lang::Object clone (sys::Allocator *alc)
virtual RKeySetType keySet ()
virtual RMapEntrySetType entrySet ()
virtual RValueCollectionType values ()
virtual bool containsKey (INP(RKeyType) key)
virtual bool containsValue (INP(RValueType) value)
virtual RValueType get (INP(RKeyType) key)
virtual RValueType put (IN(RKeyType) key, IN(RValueType) value)
virtual void putAll (IN(RMapType) t)
virtual RValueType remove (INP(RKeyType) key)
int capacity ()
float loadFactor ()
virtual RIteratorType iterator ()

Static Public Member Functions

acdk::lang::Object create_instance ()

Public Attributes

friends_private __pad0__: int _capacity
int _size
float _loadFactor
int _threshold
int _modCount
RBucketArrayType _buckets
friends_private __pad1__: void _init(int initialCapacity


Member Typedef Documentation

template<class K, class V>
typedef ObjectArrayImpl<RBucketType> acdk::util::THashMap< K, V >::BucketArrayType
 

template<class K, class V>
typedef TBucketNode<RKeyType, RValueType> acdk::util::THashMap< K, V >::BucketNodeType
 

template<class K, class V>
typedef TBucket<RKeyType, RValueType> acdk::util::THashMap< K, V >::BucketType
 

template<class K, class V>
typedef TIterator<RMapEntryType> acdk::util::THashMap< K, V >::IteratorType
 

template<class K, class V>
typedef MapType::KeySetType acdk::util::THashMap< K, V >::KeySetType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef MapType::MapEntrySetType acdk::util::THashMap< K, V >::MapEntrySetType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef MapType::MapEntryType acdk::util::THashMap< K, V >::MapEntryType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef TMap<RKeyType, RValueType> acdk::util::THashMap< K, V >::MapType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef RObjectArrayImpl<RBucketType> acdk::util::THashMap< K, V >::RBucketArrayType
 

template<class K, class V>
typedef BucketNodeType::RefType acdk::util::THashMap< K, V >::RBucketNodeType
 

template<class K, class V>
typedef BucketType::RefType acdk::util::THashMap< K, V >::RBucketType
 

template<class K, class V>
typedef RThisContainerType acdk::util::THashMap< K, V >::RefType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef IteratorType::RefType acdk::util::THashMap< K, V >::RIteratorType
 

template<class K, class V>
typedef KeySetType::RefType acdk::util::THashMap< K, V >::RKeySetType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef K acdk::util::THashMap< K, V >::RKeyType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef MapEntrySetType::RefType acdk::util::THashMap< K, V >::RMapEntrySetType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef MapEntryType::RefType acdk::util::THashMap< K, V >::RMapEntryType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef MapType::RefType acdk::util::THashMap< K, V >::RMapType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef RefHolder<ThisContainerType> acdk::util::THashMap< K, V >::RThisContainerType
 

template<class K, class V>
typedef RefHolder<ThisType> acdk::util::THashMap< K, V >::RThisType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef ValueCollectionType::RefType acdk::util::THashMap< K, V >::RValueCollectionType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef V acdk::util::THashMap< K, V >::RValueType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef THashMap<RKeyType, RValueType> acdk::util::THashMap< K, V >::ThisContainerType
 

template<class K, class V>
typedef THashMap<RKeyType, RValueType> acdk::util::THashMap< K, V >::ThisType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
typedef MapType::ValueCollectionType acdk::util::THashMap< K, V >::ValueCollectionType
 

Reimplemented from acdk::util::TAbstractMap< K, V >.


Constructor & Destructor Documentation

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

template<class K, class V>
acdk::util::THashMap< K, V >::THashMap IN(RMapType other  )  [inline]
 


Member Function Documentation

template<class K, class V>
int acdk::util::THashMap< K, V >::capacity  )  [inline]
 

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

Reimplemented from acdk::util::TAbstractMap< K, V >.

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

Reimplemented from acdk::lang::Cloneable.

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

Implements acdk::lang::Cloneable.

template<class K, class V>
virtual bool acdk::util::THashMap< K, V >::containsKey INP(RKeyType key  )  [inline, virtual]
 

template<class K, class V>
virtual bool acdk::util::THashMap< K, V >::containsValue INP(RValueType value  )  [inline, virtual]
 

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

Reimplemented from acdk::lang::Object.

template<class K, class V>
THashMap< K, V >::RMapEntrySetType acdk::util::THashMap< K, V >::entrySet  )  [virtual]
 

Implements acdk::util::TAbstractMap< K, V >.

template<class K, class V>
virtual RValueType acdk::util::THashMap< K, V >::get INP(RKeyType key  )  [inline, virtual]
 

Todo:
definition of nil by T = int

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

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
THashMap< K, V >::RIteratorType acdk::util::THashMap< K, V >::iterator  )  [virtual]
 

template<class K, class V>
THashMap< K, V >::RKeySetType acdk::util::THashMap< K, V >::keySet  )  [virtual]
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
float acdk::util::THashMap< K, V >::loadFactor  )  [inline]
 

template<class K, class V>
virtual RValueType acdk::util::THashMap< K, V >::put IN(RKeyType key,
IN(RValueType value
[inline, virtual]
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
virtual void acdk::util::THashMap< K, V >::putAll IN(RMapType t  )  [inline, virtual]
 

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
virtual RValueType acdk::util::THashMap< K, V >::remove INP(RKeyType key  )  [inline, virtual]
 

Todo:
definition of nil by T = int

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

Reimplemented from acdk::util::TAbstractMap< K, V >.

template<class K, class V>
THashMap< K, V >::RValueCollectionType acdk::util::THashMap< K, V >::values  )  [virtual]
 

Reimplemented from acdk::util::TAbstractMap< K, V >.


Member Data Documentation

template<class K, class V>
friends_private acdk::util::THashMap< K, V >::__pad0__
 

template<class K, class V>
friends_private acdk::util::THashMap< K, V >::__pad1__
 

template<class K, class V>
RBucketArrayType acdk::util::THashMap< K, V >::_buckets
 

template<class K, class V>
float acdk::util::THashMap< K, V >::_loadFactor
 

template<class K, class V>
int acdk::util::THashMap< K, V >::_modCount
 

template<class K, class V>
int acdk::util::THashMap< K, V >::_size
 

template<class K, class V>
int acdk::util::THashMap< K, V >::_threshold