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

CSet< ObjType, CountType > Class Template Reference

#include <CSet.hpp>

Inheritance diagram for CSet< ObjType, CountType >:

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


Constructor & Destructor Documentation

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

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

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


Member Function Documentation

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 void    [inline]
 

Reimplemented from ISet< ObjType >.

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

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

Reimplemented from ISet< ObjType >.

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< ObjType >.

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

Reimplemented from ISet< ObjType >.

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

Reimplemented from ISet< ObjType >.

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

Reimplemented from ISet< ObjType >.

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

Reimplemented from ISet< ObjType >.

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