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


Loading...
Searching...
No Matches
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 >:

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.
 
virtual LuceneSignalPtr getSignal ()
 Return this object signal.
 
virtual void lock (int32_t timeout=0)
 Lock this object using an optional timeout.
 
virtual void unlock ()
 Unlock this object.
 
virtual bool holdsLock ()
 Returns true if this object is currently locked by current thread.
 
virtual void wait (int32_t timeout=0)
 Wait for signal using an optional timeout.
 
virtual void notifyAll ()
 Notify all threads waiting for signal.
 

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

◆ const_iterator

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

◆ 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

◆ set_type

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

◆ this_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

◆ value_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

◆ ~HashSet()

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

◆ add()

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

◆ addAll()

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

◆ begin() [1/2]

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
iterator Lucene::HashSet< TYPE, HASH, EQUAL >::begin ( )
inline

◆ begin() [2/2]

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
const_iterator Lucene::HashSet< TYPE, HASH, EQUAL >::begin ( ) const
inline

◆ clear()

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
void Lucene::HashSet< TYPE, HASH, EQUAL >::clear ( )
inline

◆ contains()

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

◆ empty()

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
bool Lucene::HashSet< TYPE, HASH, EQUAL >::empty ( ) const
inline

◆ end() [1/2]

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
iterator Lucene::HashSet< TYPE, HASH, EQUAL >::end ( )
inline

◆ end() [2/2]

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
const_iterator Lucene::HashSet< TYPE, HASH, EQUAL >::end ( ) const
inline

◆ find()

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

◆ newInstance() [1/2]

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
static this_type Lucene::HashSet< TYPE, HASH, EQUAL >::newInstance ( )
inlinestatic

◆ newInstance() [2/2]

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

◆ operator bool()

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
Lucene::HashSet< TYPE, HASH, EQUAL >::operator bool ( ) const
inline

◆ operator!()

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
bool Lucene::HashSet< TYPE, HASH, EQUAL >::operator! ( ) const
inline

◆ operator=()

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

◆ remove()

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

◆ reset()

template<class TYPE , class HASH = boost::hash<TYPE>, class EQUAL = std::equal_to<TYPE>>
void Lucene::HashSet< TYPE, HASH, EQUAL >::reset ( )
inline

◆ size()

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

◆ setContainer

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