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

lemur::utility::CSet< ObjType, CountType > Class Template Reference

#include <CSet.hpp>

Inheritance diagram for lemur::utility::CSet< ObjType, CountType >:

lemur::utility::ISet< ObjType > lemur::utility::PSet< ObjType > List of all members.

Public Member Functions

 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 lemur::utility::CSet< ObjType, CountType >


Constructor & Destructor Documentation

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

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

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


Member Function Documentation

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

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

Reimplemented from lemur::utility::ISet< ObjType >.

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

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

Reimplemented from lemur::utility::ISet< ObjType >.

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

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

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

Reimplemented from lemur::utility::ISet< ObjType >.

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

Reimplemented from lemur::utility::ISet< ObjType >.

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

Reimplemented from lemur::utility::ISet< ObjType >.

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

Reimplemented from lemur::utility::ISet< ObjType >.

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

Reimplemented from lemur::utility::ISet< ObjType >.

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

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


Member Data Documentation

template<class ObjType, class CountType>
CountType* lemur::utility::CSet< ObjType, CountType >::countOfIndex [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