xapian-core
1.4.26
|
Class representing a list of search results. More...
#include <eset.h>
Classes | |
class | Internal |
Class which actually implements Xapian::ESet. More... | |
Public Member Functions | |
ESet (const ESet &o) | |
Copying is allowed. More... | |
ESet & | operator= (const ESet &o) |
Copying is allowed. More... | |
ESet () | |
Default constructor. More... | |
~ESet () | |
Destructor. More... | |
Xapian::doccount | size () const |
Return number of items in this ESet object. More... | |
bool | empty () const |
Return true if this ESet object is empty. More... | |
Xapian::termcount | get_ebound () const |
Return a bound on the full size of this ESet object. More... | |
void | swap (ESet &o) |
Efficiently swap this ESet object with another. More... | |
ESetIterator | begin () const |
Return iterator pointing to the first item in this ESet. More... | |
ESetIterator | end () const |
Return iterator pointing to just after the last item in this ESet. More... | |
ESetIterator | operator[] (Xapian::doccount i) const |
Return iterator pointing to the i-th object in this ESet. More... | |
ESetIterator | back () const |
Return iterator pointing to the last object in this ESet. More... | |
std::string | get_description () const |
Return a string describing this object. More... | |
Xapian::doccount | max_size () const |
Private Types | |
typedef Xapian::ESetIterator | value_type |
typedef Xapian::termcount | size_type |
typedef Xapian::termcount_diff | difference_type |
typedef Xapian::ESetIterator | iterator |
typedef Xapian::ESetIterator | const_iterator |
typedef value_type * | pointer |
typedef const value_type * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
Private Attributes | |
Xapian::Internal::intrusive_ptr< Internal > | internal |
Friends | |
class | ESetIterator |
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
|
private |
ESet is what the C++ STL calls a container.
The following typedefs allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
See "The C++ Programming Language", 3rd ed. section 16.3.1:
Xapian::ESet::ESet | ( | const ESet & | o | ) |
Copying is allowed.
The internals are reference counted, so copying is cheap.
Definition at line 230 of file esetinternal.cc.
Xapian::ESet::ESet | ( | ) |
Default constructor.
Creates an empty ESet, mostly useful as a placeholder.
Definition at line 228 of file esetinternal.cc.
Referenced by operator=().
Xapian::ESet::~ESet | ( | ) |
Destructor.
Definition at line 244 of file esetinternal.cc.
|
inline |
Return iterator pointing to the last object in this ESet.
Definition at line 362 of file eset.h.
Referenced by DEFINE_TESTCASE().
|
inline |
Return iterator pointing to the first item in this ESet.
Definition at line 345 of file eset.h.
Referenced by DEFINE_TESTCASE(), and main().
|
inline |
|
inline |
Return iterator pointing to just after the last item in this ESet.
Definition at line 350 of file eset.h.
Referenced by DEFINE_TESTCASE(), and main().
std::string Xapian::ESet::get_description | ( | ) | const |
Return a string describing this object.
Definition at line 261 of file esetinternal.cc.
Xapian::termcount Xapian::ESet::get_ebound | ( | ) | const |
Return a bound on the full size of this ESet object.
This is a bound on size() if get_eset() had been called with maxitems set high enough that all results were returned.
Definition at line 254 of file esetinternal.cc.
Referenced by DEFINE_TESTCASE().
|
inline |
ESet is what the C++ STL calls a container.
The following methods allow the class to be used in templates in the same way the standard containers can be.
These are deliberately hidden from the Doxygen-generated docs, as the machinery here isn't interesting to API users. They just need to know that Xapian container classes are compatible with the STL.
Copying is allowed.
The internals are reference counted, so assignment is cheap.
Definition at line 233 of file esetinternal.cc.
|
inline |
Xapian::doccount Xapian::ESet::size | ( | ) | const |
Return number of items in this ESet object.
Definition at line 247 of file esetinternal.cc.
Referenced by DEFINE_TESTCASE(), Xapian::iterator_rewind(), and Xapian::iterator_rewound().
|
inline |
|
friend |
|
private |
Reference counted internals.
Definition at line 48 of file eset.h.
Referenced by Xapian::Enquire::Internal::get_eset(), operator=(), and swap().