16template <
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 {
Base class for all Lucene synchronised classes.
Definition LuceneSync.h:15
Utility template class to handle set based collections that can be safely copied and shared.
Definition Set.h:17
bool empty() const
Definition Set.h:53
bool operator!=(const this_type &other)
Definition Set.h:126
bool equals(const this_type &other, PRED comp) const
Definition Set.h:103
bool operator==(const this_type &other)
Definition Set.h:122
void reset()
Definition Set.h:45
Set< TYPE, LESS > this_type
Definition Set.h:19
set_type::const_iterator const_iterator
Definition Set.h:22
const_iterator end() const
Definition Set.h:73
bool operator!() const
Definition Set.h:118
iterator find(const TYPE &type)
Definition Set.h:90
boost::shared_ptr< set_type > setContainer
Definition Set.h:29
bool remove(const TYPE &type)
Definition Set.h:86
virtual ~Set()
Definition Set.h:25
static this_type newInstance()
Definition Set.h:32
void addAll(ITER first, ITER last)
Definition Set.h:82
iterator end()
Definition Set.h:65
static this_type newInstance(ITER first, ITER last)
Definition Set.h:39
iterator begin()
Definition Set.h:61
bool contains(const TYPE &type) const
Definition Set.h:94
bool add(const TYPE &type)
Definition Set.h:77
set_type::iterator iterator
Definition Set.h:21
int32_t size() const
Definition Set.h:49
void clear()
Definition Set.h:57
const_iterator begin() const
Definition Set.h:69
bool equals(const this_type &other) const
Definition Set.h:98
void swap(this_type &other)
Definition Set.h:110
std::set< TYPE, LESS > set_type
Definition Set.h:20
TYPE value_type
Definition Set.h:23
Definition AbstractAllTermDocs.h:12