Public Types | Public Member Functions | Protected Member Functions
zorba::Thesaurus::iterator Class Reference

An iterator is used to iterate over lookup results. More...

#include <zorba/thesaurus.h>

List of all members.

Public Types

typedef std::unique_ptr
< iterator,
internal::ztd::destroy_delete
< iterator > > 
ptr

Public Member Functions

virtual void destroy () const =0
 Destroys this iterator.
virtual bool next (String *synonym)=0
 Gets the next synonym.

Protected Member Functions

virtual ~iterator ()

Detailed Description

An iterator is used to iterate over lookup results.


Member Typedef Documentation

Definition at line 67 of file thesaurus.h.


Constructor & Destructor Documentation

virtual zorba::Thesaurus::iterator::~iterator ( ) [inline, protected, virtual]

Definition at line 84 of file thesaurus.h.


Member Function Documentation

virtual void zorba::Thesaurus::iterator::destroy ( ) const [pure virtual]

Destroys this iterator.

virtual bool zorba::Thesaurus::iterator::next ( String synonym) [pure virtual]

Gets the next synonym.

This function must always include the original phrase that was looked up in its results.

Parameters:
synonymA pointer to the string to receive the next synonym.
Returns:
Returns true only if there is a next synonym.

The documentation for this class was generated from the following file:
blog comments powered by Disqus