Lucene++ - a full-featured, c++ search engine
API Documentation
Go to the documentation of this file.
16 template <
class TYPE,
class LESS = std::less<TYPE> >
41 instance.
setContainer = Lucene::newInstance<set_type>(first, last);
77 bool add(
const TYPE& type) {
99 return equals(other, std::equal_to<TYPE>());
102 template <
class PRED>
114 operator bool()
const {
set_type::iterator iterator
Definition: Set.h:21
static this_type newInstance(ITER first, ITER last)
Definition: Set.h:39
const_iterator begin() const
Definition: Set.h:69
Utility template class to handle set based collections that can be safely copied and shared.
Definition: Set.h:17
bool add(const TYPE &type)
Definition: Set.h:77
std::set< TYPE, LESS > set_type
Definition: Set.h:20
bool empty() const
Definition: Set.h:53
bool remove(const TYPE &type)
Definition: Set.h:86
static this_type newInstance()
Definition: Set.h:32
boost::shared_ptr< set_type > setContainer
Definition: Set.h:29
Definition: AbstractAllTermDocs.h:12
void clear()
Definition: Set.h:57
void reset()
Definition: Set.h:45
set_type::const_iterator const_iterator
Definition: Set.h:22
void addAll(ITER first, ITER last)
Definition: Set.h:82
virtual ~Set()
Definition: Set.h:25
bool operator!() const
Definition: Set.h:118
bool operator==(const this_type &other)
Definition: Set.h:122
bool contains(const TYPE &type) const
Definition: Set.h:94
iterator end()
Definition: Set.h:65
bool equals(const this_type &other) const
Definition: Set.h:98
int32_t size() const
Definition: Set.h:49
const_iterator end() const
Definition: Set.h:73
void swap(this_type &other)
Definition: Set.h:110
iterator begin()
Definition: Set.h:61
Base class for all Lucene synchronised classes.
Definition: LuceneSync.h:15
Set< TYPE, LESS > this_type
Definition: Set.h:19
TYPE value_type
Definition: Set.h:23
bool operator!=(const this_type &other)
Definition: Set.h:126
bool equals(const this_type &other, PRED comp) const
Definition: Set.h:103
iterator find(const TYPE &type)
Definition: Set.h:90
clucene.sourceforge.net