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

CSet Class Template Reference

#include <CSet.hpp>

Inheritance diagram for CSet:

ISet PSet HashFreqVector List of all members.

Public Methods

 CSet ()
 CSet (const int maxSize_)
 ~CSet ()
void open (const int maxSize_)
void close ()
void clear ()
int add (const ObjType &u,const CountType &count=(CountType)1.0)
int remove (const ObjType &u)
int operator+= (const ObjType &u)
int operator-= (const ObjType &u)
const CountType count (const ObjType &u)const
const CountType count (const int idx)const
void setCount (const ObjType &u,const CountType count)
void setCount (const int idx,const CountType count)
void grow (const int newSize)
void ClearData ()

Protected Attributes

CountType* countOfIndex

template<class ObjType, class CountType> class CSet


Constructor & Destructor Documentation

template<class ObjType, class CountType>
CSet<ObjType, CountType>::CSet<ObjType, CountType> ( ) [inline]
 

template<class ObjType, class CountType>
CSet<ObjType, CountType>::CSet<ObjType, CountType> ( const int maxSize_ ) [inline]
 

template<class ObjType, class CountType>
CSet<ObjType, CountType>::~CSet<ObjType, CountType> ( ) [inline]
 


Member Function Documentation

template<class ObjType, class CountType>
void CSet<ObjType, CountType>::ClearData ( ) [inline]
 

template<class ObjType, class CountType>
int CSet<ObjType, CountType>::add ( const ObjType & u,
const CountType & count = (CountType) 1.0 ) [inline]
 

template<class ObjType, class CountType>
void CSet<ObjType, CountType>::clear ( ) [inline]
 

Reimplemented from ISet.

template<class ObjType, class CountType>
void CSet<ObjType, CountType>::close ( ) [inline]
 

Reimplemented from ISet.

template<class ObjType, class CountType>
const CountType CSet<ObjType, CountType>::count ( const int idx ) const [inline]
 

template<class ObjType, class CountType>
const CountType CSet<ObjType, CountType>::count ( const ObjType & u ) const [inline]
 

template<class ObjType, class CountType>
void CSet<ObjType, CountType>::grow ( const int newSize ) [inline]
 

Reimplemented from ISet.

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

Reimplemented from ISet.

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

Reimplemented from ISet.

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

Reimplemented from ISet.

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

Reimplemented from ISet.

template<class ObjType, class CountType>
void CSet<ObjType, CountType>::setCount ( const int idx,
const CountType count ) [inline]
 

template<class ObjType, class CountType>
void CSet<ObjType, CountType>::setCount ( const ObjType & u,
const CountType count ) [inline]
 


Member Data Documentation

template<class ObjType, class CountType>
CountType * CSet<ObjType, CountType>::countOfIndex [protected]
 


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