Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

SetData Class Template Reference

#include <Set.h>

Inheritance diagram for SetData::

RefCounter QuickAssociationsRep List of all members.

Public Methods

 SetData (int size)
 SetData (const T &t)
 SetData (const SetData &sd)
 ~SetData ()
SetData* clone () const
Bool operator== (const SetData &sd) const
int hashElement (const T &t) const
void rehash (Bool calledByUser=FALSE)
void removeAllElements ()
int cardinality () const
Bool contains (const T &e) const
void adjoinElement (const T &e)
void removeElement (const T &e)
void printOn (ostream &ostr) const
void write (ostream &ostr) const
void read (istream &istr)

Protected Types

typedef Cell<T> CellType

Protected Attributes

friend SetIteratorData<T>
int userSize
int numberOfElements
int numberOfBuckets
CellType** hashTable

template<class T> class SetData


Member Typedef Documentation

template<class T>
typedef Cell<T> SetData<T>::CellType [protected]
 

Definition at line 387 of file Set.h.

Referenced by SetData(), and adjoinElement().


Constructor & Destructor Documentation

template<class T>
SetData<T>::SetData<T> ( int size ) [inline]
 

Definition at line 107 of file Set.h.

Referenced by clone().

template<class T>
SetData<T>::SetData<T> ( const T & t ) [inline]
 

Definition at line 126 of file Set.h.

template<class T>
SetData<T>::SetData<T> ( const SetData<T> & sd ) [inline]
 

Definition at line 135 of file Set.h.

template<class T>
SetData<T>::~SetData<T> ( ) [inline]
 

Definition at line 157 of file Set.h.


Member Function Documentation

template<class T>
SetData<T> * SetData<T>::clone ( ) const [inline]
 

Reimplemented in QuickAssociationsRep.

Definition at line 168 of file Set.h.

template<class T>
Bool SetData<T>::operator== ( const SetData<T> & sd ) const [inline]
 

Definition at line 170 of file Set.h.

template<class T>
int SetData<T>::hashElement ( const T & t ) const
 

Referenced by adjoinElement(), contains(), rehash(), removeElement(), and QuickAssociationsRep::seek().

template<class T>
void SetData<T>::rehash ( Bool calledByUser = FALSE ) [inline]
 

Definition at line 185 of file Set.h.

Referenced by adjoinElement(), and removeElement().

template<class T>
void SetData<T>::removeAllElements ( ) [inline]
 

Definition at line 233 of file Set.h.

Referenced by ~SetData().

template<class T>
int SetData<T>::cardinality ( ) const [inline]
 

Definition at line 249 of file Set.h.

template<class T>
Bool SetData<T>::contains ( const T & e ) const [inline]
 

Definition at line 251 of file Set.h.

Referenced by operator==().

template<class T>
void SetData<T>::adjoinElement ( const T & e ) [inline]
 

Definition at line 262 of file Set.h.

Referenced by QuickAssociationsRep::bind().

template<class T>
void SetData<T>::removeElement ( const T & e ) [inline]
 

Definition at line 277 of file Set.h.

Referenced by QuickAssociationsRep::unbind().

template<class T>
void SetData<T>::printOn ( ostream & ostr ) const [inline]
 

Definition at line 301 of file Set.h.

template<class T>
void SetData<T>::write ( ostream & ostr ) const
 

template<class T>
void SetData<T>::read ( istream & istr )
 


Member Data Documentation

template<class T>
friend SetData<T>::SetIteratorData<T> [protected]
 

Definition at line 389 of file Set.h.

template<class T>
int SetData<T>::userSize [protected]
 

Definition at line 394 of file Set.h.

template<class T>
int SetData<T>::numberOfElements [protected]
 

Definition at line 397 of file Set.h.

template<class T>
int SetData<T>::numberOfBuckets [protected]
 

Definition at line 398 of file Set.h.

template<class T>
CellType** SetData<T>::hashTable [protected]
 

Definition at line 399 of file Set.h.


The documentation for this class was generated from the following file:
Generated at Tue Jun 19 09:50:05 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001