Siena Fast Forwarding Documentation (v. 2.0.1)
Public Member Functions | List of all members
siena::TagSetList::Iterator Class Referenceabstract

interface of a generic reference to a tagset in a tagset list. More...

#include <tags.h>

Inheritance diagram for siena::TagSetList::Iterator:
Inheritance graph
[legend]
Collaboration diagram for siena::TagSetList::Iterator:
Collaboration graph
[legend]

Public Member Functions

virtual bool next ()=0
 moves this iterator to the next tag set in its predicate. More...
 
virtual ~Iterator ()
 destructor
 
- Public Member Functions inherited from siena::TagSet
virtual Iteratorfirst () const =0
 returns an iterator over this tag set. More...
 

Detailed Description

interface of a generic reference to a tagset in a tagset list.

Provides sequential access to the individual tag sets in a tagset list. The iterator provides direct access to the tag set in the sense that it itself implements the TagSet interface.

Examples:
simple_tags_types.cc, and simple_tags_types.h.

Member Function Documentation

virtual bool siena::TagSetList::Iterator::next ( )
pure virtual

moves this iterator to the next tag set in its predicate.

Returns
true if the tag set pointed to by this iterator before this call to next() is not the last one in its predicate. In this case, after this call to next(), this iterator will point to the next tag set.
false if this iterator points to the last tag set or to the end of the sequence. In this case, after this call to next(), this iterator will point to an invalid tag set representing the end of the sequence.