Lucene++ - a full-featured, c++ search engine
API Documentation


Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
Lucene::HashSet< TYPE, HASH, EQUAL > Class Template Reference

Utility template class to handle hash set collections that can be safely copied and shared. More...

#include <HashSet.h>

+ Inheritance diagram for Lucene::HashSet< TYPE, HASH, EQUAL >:
+ Collaboration diagram for Lucene::HashSet< TYPE, HASH, EQUAL >:

Public Types

typedef HashSet< TYPE, HASH, EQUAL > this_type
 
typedef boost::unordered_set< TYPE, HASH, EQUAL > set_type
 
typedef set_type::iterator iterator
 
typedef set_type::const_iterator const_iterator
 
typedef TYPE value_type
 

Public Member Functions

virtual ~HashSet ()
 
void reset ()
 
int32_t size () const
 
bool empty () const
 
void clear ()
 
iterator begin ()
 
iterator end ()
 
const_iterator begin () const
 
const_iterator end () const
 
 operator bool () const
 
bool operator! () const
 
set_typeoperator= (const set_type &other)
 
bool add (const TYPE &type)
 
template<class ITER >
void addAll (ITER first, ITER last)
 
bool remove (const TYPE &type)
 
iterator find (const TYPE &type)
 
bool contains (const TYPE &type) const
 
- Public Member Functions inherited from Lucene::LuceneSync
virtual ~LuceneSync ()
 
virtual SynchronizePtr getSync ()
 Return this object synchronize lock. More...
 
virtual LuceneSignalPtr getSignal ()
 Return this object signal. More...
 
virtual void lock (int32_t timeout=0)
 Lock this object using an optional timeout. More...
 
virtual void unlock ()
 Unlock this object. More...
 
virtual bool holdsLock ()
 Returns true if this object is currently locked by current thread. More...
 
virtual void wait (int32_t timeout=0)
 Wait for signal using an optional timeout. More...
 
virtual void notifyAll ()
 Notify all threads waiting for signal. More...
 

Static Public Member Functions

static this_type newInstance ()
 
template<class ITER >
static this_type newInstance (ITER first, ITER last)
 

Protected Attributes

boost::shared_ptr< set_typesetContainer
 
- Protected Attributes inherited from Lucene::LuceneSync
SynchronizePtr objectLock
 
LuceneSignalPtr objectSignal
 

Detailed Description

template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
class Lucene::HashSet< TYPE, HASH, EQUAL >

Utility template class to handle hash set collections that can be safely copied and shared.

Member Typedef Documentation

template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
typedef set_type::const_iterator Lucene::HashSet< TYPE, HASH, EQUAL >::const_iterator
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
typedef set_type::iterator Lucene::HashSet< TYPE, HASH, EQUAL >::iterator
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
typedef boost::unordered_set<TYPE, HASH, EQUAL> Lucene::HashSet< TYPE, HASH, EQUAL >::set_type
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
typedef HashSet<TYPE, HASH, EQUAL> Lucene::HashSet< TYPE, HASH, EQUAL >::this_type
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
typedef TYPE Lucene::HashSet< TYPE, HASH, EQUAL >::value_type

Constructor & Destructor Documentation

template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
virtual Lucene::HashSet< TYPE, HASH, EQUAL >::~HashSet ( )
inlinevirtual

Member Function Documentation

template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
bool Lucene::HashSet< TYPE, HASH, EQUAL >::add ( const TYPE &  type)
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
template<class ITER >
void Lucene::HashSet< TYPE, HASH, EQUAL >::addAll ( ITER  first,
ITER  last 
)
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
iterator Lucene::HashSet< TYPE, HASH, EQUAL >::begin ( )
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
const_iterator Lucene::HashSet< TYPE, HASH, EQUAL >::begin ( ) const
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
void Lucene::HashSet< TYPE, HASH, EQUAL >::clear ( )
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
bool Lucene::HashSet< TYPE, HASH, EQUAL >::contains ( const TYPE &  type) const
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
bool Lucene::HashSet< TYPE, HASH, EQUAL >::empty ( ) const
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
iterator Lucene::HashSet< TYPE, HASH, EQUAL >::end ( )
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
const_iterator Lucene::HashSet< TYPE, HASH, EQUAL >::end ( ) const
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
iterator Lucene::HashSet< TYPE, HASH, EQUAL >::find ( const TYPE &  type)
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
static this_type Lucene::HashSet< TYPE, HASH, EQUAL >::newInstance ( )
inlinestatic
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
template<class ITER >
static this_type Lucene::HashSet< TYPE, HASH, EQUAL >::newInstance ( ITER  first,
ITER  last 
)
inlinestatic
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
Lucene::HashSet< TYPE, HASH, EQUAL >::operator bool ( ) const
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
bool Lucene::HashSet< TYPE, HASH, EQUAL >::operator! ( ) const
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
set_type& Lucene::HashSet< TYPE, HASH, EQUAL >::operator= ( const set_type other)
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
bool Lucene::HashSet< TYPE, HASH, EQUAL >::remove ( const TYPE &  type)
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
void Lucene::HashSet< TYPE, HASH, EQUAL >::reset ( )
inline
template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
int32_t Lucene::HashSet< TYPE, HASH, EQUAL >::size ( ) const
inline

Field Documentation

template<class TYPE, class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
boost::shared_ptr<set_type> Lucene::HashSet< TYPE, HASH, EQUAL >::setContainer
protected

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

clucene.sourceforge.net