iterates over edges in a stateFlag More...
#include <stateFlag.h>
Public Member Functions | |
iterator (const stateFlag &sf) | |
iterator (const stateFlag &sf, int start) | |
int | index () const |
int | operator* () |
iterator< C > & | operator++ () |
iterator< C > | operator++ (int foo) |
iterator< C > & | operator-- () |
iterator< C > | operator-- (int foo) |
bool | operator== (iterator< C > it) const |
bool | operator!= (iterator< C > it) const |
template<class D > | |
bool | operator> (iterator< D > it) const |
template<class D > | |
bool | operator>= (iterator< D > it) const |
template<class D > | |
bool | operator< (iterator< D > it) const |
template<class D > | |
bool | operator<= (iterator< D > it) const |
Friends | |
class | stateFlag |
iterates over edges in a stateFlag
C is the comparator class. It should be one of rising, falling or change.
stateFlag::iterator< C >::iterator | ( | const stateFlag & | sf | ) | [inline, explicit] |
stateFlag iterator constructor
stateFlag | a stateFlag object Constructs a stateFlag::iterator from a stateFlag object. The iterator is not positioned at an edge when it is returned from this function. Its position is the minimum index of the stateFlag. |
The iterator must incremented before it points to an edge.
stateFlag::iterator< C >::iterator | ( | const stateFlag & | sf, | |
int | start | |||
) | [inline] |
stateFlag iterator constructor
stateFlag | a stateFlag object | |
start | an int containing the initial index of the iterator Constructs a stateFlag::iterator from a stateFlag object. The iterator is not positioned at an edge when it is returned from this function. Its position is at the index specified by start. |
Use this constructor if you want to begin the search for a new edge at a location other than the beginning of the stateFlag.
The iterator must incremented before it points to an edge.
int stateFlag::iterator< C >::index | ( | ) | const [inline] |
index of an iterator
bool stateFlag::iterator< C >::operator!= | ( | iterator< C > | it | ) | const [inline] |
not equal
it | is an iterator |
int stateFlag::iterator< C >::operator* | ( | ) | [inline] |
dereference
iterator<C> stateFlag::iterator< C >::operator++ | ( | int | foo | ) | [inline] |
post-increment
Advances the iterator to the next edge
iterator<C>& stateFlag::iterator< C >::operator++ | ( | ) | [inline] |
pre-increment
Advances the iterator to the next edge
iterator<C> stateFlag::iterator< C >::operator-- | ( | int | foo | ) | [inline] |
post-decrement
Decrements the iterator to the previous edge
iterator<C>& stateFlag::iterator< C >::operator-- | ( | ) | [inline] |
pre-decrement
Decrements the iterator to the previous edge
bool stateFlag::iterator< C >::operator< | ( | iterator< D > | it | ) | const [inline] |
less than
it | is an iterator |
bool stateFlag::iterator< C >::operator<= | ( | iterator< D > | it | ) | const [inline] |
less than or equal to
it | is an iterator |
bool stateFlag::iterator< C >::operator== | ( | iterator< C > | it | ) | const [inline] |
equals
it | is an iterator |
bool stateFlag::iterator< C >::operator> | ( | iterator< D > | it | ) | const [inline] |
greater than
it | is an iterator |
bool stateFlag::iterator< C >::operator>= | ( | iterator< D > | it | ) | const [inline] |
greater than or equal to
it | is an iterator |