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

lemur::utility::PSet< ObjType > Class Template Reference

#include <PSet.hpp>

Inheritance diagram for lemur::utility::PSet< ObjType >:

lemur::utility::ISet< ObjType > lemur::utility::CSet< ObjType, CountType > List of all members.

Public Member Functions

 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 Member Functions

SET_NODEinternalAdd (const ObjType &u)
int internalRemove (const ObjType &u)
long smallestPrimeGreaterThan (const int n)
int computeHash (const ObjType &u) const
SET_NODEcreateNode (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 lemur::utility::PSet< ObjType >


Constructor & Destructor Documentation

template<class ObjType>
lemur::utility::PSet< ObjType >::PSet  )  [inline]
 

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

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


Member Function Documentation

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

Reimplemented in lemur::utility::ISet< ObjType >, lemur::utility::ISet< FreqCount >, and lemur::utility::ISet< FloatFreqCounter >.

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

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

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

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

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

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

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

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

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

Reimplemented in lemur::utility::ISet< ObjType >, lemur::utility::ISet< FreqCount >, and lemur::utility::ISet< FloatFreqCounter >.

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

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

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

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

Reimplemented in lemur::utility::CSet< ObjType, CountType >, lemur::utility::ISet< ObjType >, lemur::utility::CSet< FreqCount, int >, lemur::utility::CSet< FloatFreqCounter, double >, lemur::utility::ISet< FreqCount >, and lemur::utility::ISet< FloatFreqCounter >.

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

Reimplemented in lemur::utility::CSet< ObjType, CountType >, lemur::utility::ISet< ObjType >, lemur::utility::CSet< FreqCount, int >, lemur::utility::CSet< FloatFreqCounter, double >, lemur::utility::ISet< FreqCount >, and lemur::utility::ISet< FloatFreqCounter >.

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

Reimplemented in lemur::utility::ISet< ObjType >, lemur::utility::ISet< FreqCount >, and lemur::utility::ISet< FloatFreqCounter >.

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

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

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

Reimplemented in lemur::utility::CSet< ObjType, CountType >, lemur::utility::ISet< ObjType >, lemur::utility::CSet< FreqCount, int >, lemur::utility::CSet< FloatFreqCounter, double >, lemur::utility::ISet< FreqCount >, and lemur::utility::ISet< FloatFreqCounter >.

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

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

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


Member Data Documentation

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

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

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

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

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


The documentation for this class was generated from the following file:
Generated on Tue Jun 15 11:03:07 2010 for Lemur by doxygen 1.3.4