WordCursorOne man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]


WordCursorOne(3)					      WordCursorOne(3)

NAME
       WordCursorOne -

       search and retrieve entries in a WordListOne object.

SYNOPSIS
       #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();

DESCRIPTION
       WordCursorOne is a WordCursor derived class that implements search in a
       WordListOne object. It currently is the only derived class of the Word‐
       Cursor  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 Ini‐
	      tialize() 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 pro‐
	      totype for description.

       WordCursorOne(WordList *words, const WordKey &searchKey, int  action  =
       HTDIG_WORDLIST_WALKER)
	      Private  constructor. See WordList::Cursor method with same pro‐
	      totype for description.

       WordCursorOne(WordList	 *words,     const     WordKey	   &searchKey,
       wordlist_walk_callback_t callback, Object * callback_data)
	      Private  constructor. See WordList::Cursor method with same pro‐
	      totype for description.

AUTHORS
       Loic Dachary loic@gnu.org

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

SEE ALSO
       htdb_dump(1), htdb_stat(1), htdb_load(1), mifluzdump(1), mifluzload(1),
       mifluzsearch(1),	  mifluzdict(1),  WordContext(3),  WordList(3),	 Word‐
       Dict(3), WordListOne(3), WordKey(3), WordKeyInfo(3), WordType(3), Word‐
       DBInfo(3), WordRecordInfo(3), WordRecord(3), WordReference(3), WordCur‐
       sor(3), WordMonitor(3), Configuration(3), mifluz(3)

				     local		      WordCursorOne(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net