WordCursorOne(3)

WordCursorOne3

Search and retrieve entries in a wordlistone object.

Usage

#include <WordList.h>
int callback(WordList *, WordDBCursor& , const WordReference *, Object &)
{
   ...
}
Object* data = ...
WordList *words = ...;
WordCursor *search = words->Cursor(callback, data);
WordCursor *search = words->Cursor(WordKey("word <UNDEF> <UNDEF>"));
WordCursor *search = words->Cursor(WordKey("word <UNDEF> <UNDEF>"), callback, data);
WordCursor *search = words->Cursor(WordKey());
if(search->Walk() == NOTOK) bark;
List* results = search->GetResults();
search->WalkInit();
if(search->WalkNext() == OK)
  dosomething(search->GetFound());
search->WalkFinish();

Overview

WordCursorOne is a WordCursor derived class that implements search in a WordListOne object. It currently is the only derived class of the WordCursor object. Most of its behaviour is described in the WordCursor manual page, only the behaviour specific to WordCursorOne is documented here.

Methods

WordCursorOne(WordList *words)

Private constructor. Creator of the object must then call Initialize() prior to using any other methods.

WordCursorOne(WordList *words, wordlist_walk_callback_t callback, Object * callback_data)

Private constructor. See WordList::Cursor method with same prototype for description.

WordCursorOne(WordList *words, const WordKey &searchKey, int action = HTDIG_WORDLIST_WALKER)

Private constructor. See WordList::Cursor method with same prototype for description.

WordCursorOne(WordList *words, const WordKey &searchKey, wordlist_walk_callback_t callback, Object * callback_data)

Private constructor. See WordList::Cursor method with same prototype for description.

Releases

2 releases since Debian 3.0 (Woody); the text changed 1 time.

  1. 3.0
  2. 3.1

Authors

Loic Dachary [email protected]

The Ht://Dig group http://dev.htdig.org/

From libmifluz0-dev 0.24.0-9 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.