return false;
}
void canCheck() { incheck_ = false; }
- /// check for wrap around
+ /// set if checking already started from the beginning
void wrapAround(bool flag) {
wrap_around_ = flag;
if (flag) {
DocIterator const cursor() const;
/// status checks
bool isCurrentBuffer(DocIterator const & cursor) const;
+ /// return true if we ended a complete cycle
bool isWrapAround(DocIterator const & cursor) const;
+ /// returns true if we did already start from the beginning
bool isWrapAround() const { return wrap_around_; }
bool atLastPos(DocIterator const & cursor) const;
/// validate the cached doc iterators
DocIterator end_;
///
bool incheck_;
- ///
+ /// Did we already start from the beginning?
bool wrap_around_;
};