Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

PSet Class Template Reference

#include <PSet.hpp>

Inheritance diagram for PSet:

ISet CSet HashFreqVector List of all members.

Public Methods

 PSet ()
 PSet (const int maxSize_p)
 ~PSet ()
const int size ()const
const int maxsize ()const
void open (const int maxSize_p)
void close ()
void clear ()
int add (const ObjType &u)
int remove (const ObjType &u)
int operator+= (const ObjType &u)
int operator-= (const ObjType &u)
const ObjType& operator[] (const int idx)const
int operator[] (const ObjType &u)const

Protected Methods

SET_NODE* internalAdd (const ObjType &u)
int internalRemove (const ObjType &u)
long smallestPrimeGreaterThan (const int n)
int computeHash (const ObjType &u)const
SET_NODE* createNode (const ObjType &u)
void deleteNode (SET_NODE *node)

Protected Attributes

int currentSize
int maxSize
int hashTableSize
SET_NODE** hashTable
int setNodeSize

template<class ObjType> class PSet


Constructor & Destructor Documentation

template<class ObjType>
PSet<ObjType>::PSet<ObjType> ( ) [inline]
 

template<class ObjType>
PSet<ObjType>::PSet<ObjType> ( const int maxSize_p ) [inline]
 

template<class ObjType>
PSet<ObjType>::~PSet<ObjType> ( ) [inline]
 


Member Function Documentation

template<class ObjType>
int PSet<ObjType>::add ( const ObjType & u ) [inline]
 

Reimplemented in ISet.

template<class ObjType>
void PSet<ObjType>::clear ( ) [inline]
 

Reimplemented in CSet, and ISet.

template<class ObjType>
void PSet<ObjType>::close ( ) [inline]
 

Reimplemented in CSet, and ISet.

template<class ObjType>
int PSet<ObjType>::computeHash ( const ObjType & u ) const [inline, protected]
 

template<class ObjType>
SET_NODE * PSet<ObjType>::createNode ( const ObjType & u ) [inline, protected]
 

template<class ObjType>
void PSet<ObjType>::deleteNode ( SET_NODE * node ) [inline, protected]
 

template<class ObjType>
SET_NODE * PSet<ObjType>::internalAdd ( const ObjType & u ) [inline, protected]
 

template<class ObjType>
int PSet<ObjType>::internalRemove ( const ObjType & u ) [inline, protected]
 

Reimplemented in ISet.

template<class ObjType>
const int PSet<ObjType>::maxsize ( ) const [inline]
 

template<class ObjType>
void PSet<ObjType>::open ( const int maxSize_ ) [inline]
 

Reimplemented in CSet, and ISet.

template<class ObjType>
int PSet<ObjType>::operator+= ( const ObjType & u ) [inline]
 

Reimplemented in CSet, and ISet.

template<class ObjType>
int PSet<ObjType>::operator-= ( const ObjType & u ) [inline]
 

Reimplemented in CSet, and ISet.

template<class ObjType>
int PSet<ObjType>::operator[] ( const ObjType & u ) const [inline]
 

Reimplemented in ISet.

template<class ObjType>
const ObjType & PSet<ObjType>::operator[] ( const int idx ) const [inline]
 

Reimplemented in ISet.

template<class ObjType>
int PSet<ObjType>::remove ( const ObjType & u ) [inline]
 

Reimplemented in CSet, and ISet.

template<class ObjType>
const int PSet<ObjType>::size ( ) const [inline]
 

Reimplemented in ISet.

template<class ObjType>
long PSet<ObjType>::smallestPrimeGreaterThan ( const int n ) [inline, protected]
 


Member Data Documentation

template<class ObjType>
int PSet<ObjType>::currentSize [protected]
 

template<class ObjType>
SET_NODE ** PSet<ObjType>::hashTable [protected]
 

template<class ObjType>
int PSet<ObjType>::hashTableSize [protected]
 

template<class ObjType>
int PSet<ObjType>::maxSize [protected]
 

template<class ObjType>
int PSet<ObjType>::setNodeSize [protected]
 


The documentation for this class was generated from the following file:
Generated at Fri Jul 26 18:22:55 2002 for LEMUR by doxygen1.2.4 written by Dimitri van Heesch, © 1997-2000