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

interface of a generic predicate iterator. More...

#include <attributes.h>

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

Public Member Functions

virtual bool next ()=0
 moves this iterator to the next filter in its predicate. More...
 
virtual ~Iterator ()
 destructor
 
- Public Member Functions inherited from siena::Filter
virtual ~Filter ()
 virtual destructor
 
virtual Iteratorfirst () const =0
 returns an iterator over this filter. More...
 
virtual bool covers (const Message &m) const
 applies this filter to a message. More...
 

Detailed Description

interface of a generic predicate iterator.

provides sequential access to the filters in a predicate.

Examples:
simple_attributes_types.cc, and simple_attributes_types.h.

Member Function Documentation

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

moves this iterator to the next filter in its predicate.

Returns
true if the filter 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 filter.
false if this iterator points to the last filter or to the end of the sequence. In this case, after this call to next(), this iterator will point to an invalid filter representing the end of the sequence.
Examples:
simple_attributes_types.h.