lfeat::bounded_set< _Key, _Compare > Class Template Reference

#include <BoundedSet.h>

List of all members.

Public Types

typedef std::set< _Key, _Compare
>::iterator 
iterator

Public Member Functions

 bounded_set ()
 bounded_set (size_t iMaxSize)
void setMaxSize (int iMax)
 sets the max size of bounded set
size_t max_size () const
 Returns the maximum size of the bounded_set.
size_t size () const
 Returns the size of the limited_multiset.
iterator begin ()
iterator end ()
void truncate ()
void insert (const _Key &x)
std::set< _Key, _Compare > & getSet ()

Private Attributes

size_t _maxSize
std::set< _Key, _Compare > _set


Detailed Description

template<typename _Key, typename _Compare = std::less<_Key>>
class lfeat::bounded_set< _Key, _Compare >

Definition at line 43 of file BoundedSet.h.


Member Typedef Documentation

template<typename _Key, typename _Compare = std::less<_Key>>
typedef std::set<_Key, _Compare>::iterator lfeat::bounded_set< _Key, _Compare >::iterator

Definition at line 50 of file BoundedSet.h.


Constructor & Destructor Documentation

template<typename _Key, typename _Compare = std::less<_Key>>
lfeat::bounded_set< _Key, _Compare >::bounded_set (  )  [inline]

Definition at line 53 of file BoundedSet.h.

template<typename _Key, typename _Compare = std::less<_Key>>
lfeat::bounded_set< _Key, _Compare >::bounded_set ( size_t  iMaxSize  )  [inline]

Definition at line 55 of file BoundedSet.h.


Member Function Documentation

template<typename _Key, typename _Compare = std::less<_Key>>
iterator lfeat::bounded_set< _Key, _Compare >::begin (  )  [inline]

Definition at line 75 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_set.

Referenced by KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF().

template<typename _Key, typename _Compare = std::less<_Key>>
iterator lfeat::bounded_set< _Key, _Compare >::end (  )  [inline]

Definition at line 80 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_set.

template<typename _Key, typename _Compare = std::less<_Key>>
std::set< _Key, _Compare>& lfeat::bounded_set< _Key, _Compare >::getSet (  )  [inline]

Definition at line 106 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_set.

Referenced by KDTreeSpace::KDTree< KE, VTYPE >::getNearestNeighboursBBF().

template<typename _Key, typename _Compare = std::less<_Key>>
void lfeat::bounded_set< _Key, _Compare >::insert ( const _Key &  x  )  [inline]

Definition at line 100 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_set, and lfeat::bounded_set< _Key, _Compare >::truncate().

Referenced by KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF().

template<typename _Key, typename _Compare = std::less<_Key>>
size_t lfeat::bounded_set< _Key, _Compare >::max_size (  )  const [inline]

Returns the maximum size of the bounded_set.

Definition at line 64 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_maxSize.

template<typename _Key, typename _Compare = std::less<_Key>>
void lfeat::bounded_set< _Key, _Compare >::setMaxSize ( int  iMax  )  [inline]

sets the max size of bounded set

Definition at line 58 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_maxSize.

template<typename _Key, typename _Compare = std::less<_Key>>
size_t lfeat::bounded_set< _Key, _Compare >::size (  )  const [inline]

Returns the size of the limited_multiset.

Definition at line 70 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_set.

Referenced by KDTreeSpace::KDTree< KE, VTYPE >::recurseNearestNeighboursBBF().

template<typename _Key, typename _Compare = std::less<_Key>>
void lfeat::bounded_set< _Key, _Compare >::truncate (  )  [inline]

Definition at line 90 of file BoundedSet.h.

References lfeat::bounded_set< _Key, _Compare >::_maxSize, and lfeat::bounded_set< _Key, _Compare >::_set.

Referenced by lfeat::bounded_set< _Key, _Compare >::insert().


Member Data Documentation

template<typename _Key, typename _Compare = std::less<_Key>>
size_t lfeat::bounded_set< _Key, _Compare >::_maxSize [private]

Definition at line 46 of file BoundedSet.h.

Referenced by lfeat::bounded_set< _Key, _Compare >::max_size(), lfeat::bounded_set< _Key, _Compare >::setMaxSize(), and lfeat::bounded_set< _Key, _Compare >::truncate().

template<typename _Key, typename _Compare = std::less<_Key>>
std::set< _Key, _Compare> lfeat::bounded_set< _Key, _Compare >::_set [private]

Definition at line 47 of file BoundedSet.h.

Referenced by lfeat::bounded_set< _Key, _Compare >::begin(), lfeat::bounded_set< _Key, _Compare >::end(), lfeat::bounded_set< _Key, _Compare >::getSet(), lfeat::bounded_set< _Key, _Compare >::insert(), lfeat::bounded_set< _Key, _Compare >::size(), and lfeat::bounded_set< _Key, _Compare >::truncate().


The documentation for this class was generated from the following file:
Generated on 5 Dec 2014 for Hugintrunk by  doxygen 1.4.7