iterator for a tag set. More...
#include <tags.h>
Public Member Functions | |
virtual bool | next ()=0 |
moves this iterator to the next tag in the set. More... | |
virtual | ~Iterator () |
iterator destructor. | |
Public Member Functions inherited from siena::Tag | |
virtual | ~Tag () |
virtual destructor. | |
virtual std::string | to_string () const =0 |
string value of this tag. More... | |
virtual std::string & | to_string (std::string &) const =0 |
string value of this tag. More... | |
iterator for a tag set.
An iterator in a tag set represents a tag directly, in the sense that it is itself a tag reference, and it can also be switched to refer to the next tag in the set. The iteration order is implementation-dependent.
The following example shows how to iterate through a tag set:
Notice that iterators must be explicitly deallocated.
|
pure virtual |
moves this iterator to the next tag in the set.