An iterator is used to iterate over lookup results. More...
#include <zorba/thesaurus.h>
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 () |
An iterator is used to iterate over lookup results.
Definition at line 64 of file thesaurus.h.
typedef std::unique_ptr<iterator,internal::ztd::destroy_delete<iterator> > zorba::Thesaurus::iterator::ptr |
Definition at line 67 of file thesaurus.h.
virtual zorba::Thesaurus::iterator::~iterator | ( | ) | [inline, protected, virtual] |
Definition at line 84 of file thesaurus.h.
virtual void zorba::Thesaurus::iterator::destroy | ( | ) | const [pure virtual] |
Destroys this iterator.
Gets the next synonym.
This function must always include the original phrase that was looked up in its results.
synonym | A pointer to the string to receive the next synonym. |
true
only if there is a next synonym.