#include <matchspy.h>
Public Types | |
typedef std::input_iterator_tag | iterator_category |
typedef std::string | value_type |
typedef size_t | difference_type |
typedef std::string * | pointer |
typedef std::string & | reference |
Public Member Functions | |
StringListUnserialiser () | |
Default constructor - use this to define an end iterator. | |
StringListUnserialiser (const std::string &in) | |
Constructor which takes a serialised list of strings, and creates an iterator pointing to the first of them. | |
~StringListUnserialiser () | |
Destructor - nothing special to release. | |
StringListUnserialiser (const StringListUnserialiser &other) | |
Copy constructor. | |
void | operator= (const StringListUnserialiser &other) |
Assignment operator. | |
std::string | operator * () const |
Get the current item. | |
StringListUnserialiser & | operator++ () |
Move to the next item. | |
StringListUnserialiser | operator++ (int) |
Move to the next item (postfix). | |
Friends | |
bool | operator== (const StringListUnserialiser &a, const StringListUnserialiser &b) |
Compare this iterator with another. | |
bool | operator!= (const StringListUnserialiser &a, const StringListUnserialiser &b) |
The class can be used as an iterator: use the default constructor to get an end iterator.
Xapian::StringListUnserialiser::StringListUnserialiser | ( | ) | [inline] |
Default constructor - use this to define an end iterator.
Xapian::StringListUnserialiser::StringListUnserialiser | ( | const std::string & | in | ) | [inline] |
Constructor which takes a serialised list of strings, and creates an iterator pointing to the first of them.
Xapian::StringListUnserialiser::~StringListUnserialiser | ( | ) | [inline] |
Destructor - nothing special to release.
Xapian::StringListUnserialiser::StringListUnserialiser | ( | const StringListUnserialiser & | other | ) | [inline] |
Copy constructor.
void Xapian::StringListUnserialiser::operator= | ( | const StringListUnserialiser & | other | ) | [inline] |
Assignment operator.
std::string Xapian::StringListUnserialiser::operator * | ( | ) | const [inline] |
Get the current item.
StringListUnserialiser& Xapian::StringListUnserialiser::operator++ | ( | ) | [inline] |
Move to the next item.
StringListUnserialiser Xapian::StringListUnserialiser::operator++ | ( | int | ) | [inline] |
Move to the next item (postfix).
bool operator== | ( | const StringListUnserialiser & | a, | |
const StringListUnserialiser & | b | |||
) | [friend] |
Compare this iterator with another.