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

PSet< ObjType > Class Template Reference

#include <PSet.hpp>

Inheritance diagram for PSet< ObjType >:

ISet< ObjType > CSet< ObjType, CountType > 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< ObjType >


Constructor & Destructor Documentation

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

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

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


Member Function Documentation

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

Reimplemented in ISet< ObjType >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in CSet< ObjType, CountType >, ISet< ObjType >, CSet< FreqCount, int >, CSet< FloatFreqCounter, double >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in CSet< ObjType, CountType >, ISet< ObjType >, CSet< FreqCount, int >, CSet< FloatFreqCounter, double >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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< ObjType >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

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

Reimplemented in CSet< ObjType, CountType >, ISet< ObjType >, CSet< FreqCount, int >, CSet< FloatFreqCounter, double >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in CSet< ObjType, CountType >, ISet< ObjType >, CSet< FreqCount, int >, CSet< FloatFreqCounter, double >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in CSet< ObjType, CountType >, ISet< ObjType >, CSet< FreqCount, int >, CSet< FloatFreqCounter, double >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in ISet< ObjType >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in ISet< ObjType >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in CSet< ObjType, CountType >, ISet< ObjType >, CSet< FreqCount, int >, CSet< FloatFreqCounter, double >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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

Reimplemented in FloatFreqVector, HashFreqVector, ISet< ObjType >, ISet< ResultEntry >, ISet< FreqCount >, and ISet< FloatFreqCounter >.

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 on Wed Nov 3 12:59:51 2004 for Lemur Toolkit by doxygen1.2.18