Hugintrunk  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Private Attributes | List of all members
lfeat::bounded_set< _Key, _Compare > Class Template Reference

#include <BoundedSet.h>

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 More...
 
size_t max_size () const
 Returns the maximum size of the bounded_set. More...
 
size_t size () const
 Returns the size of the limited_multiset. More...
 
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
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
template<typename _Key , typename _Compare = std::less<_Key>>
void lfeat::bounded_set< _Key, _Compare >::insert ( const _Key &  x)
inline
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

Member Data Documentation

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

The documentation for this class was generated from the following file: