![]() |
Fréchet View
1.6.0
A Tool for Exploring Fréchet Distance Algorithms
|
an iterator over a BitSet
Iterates over the set (true) bits of a BitSet.
Note that iterators allow for modifications to the underlying BitSet (contrary to some standard iterators).
#include <bitset.h>
Public Member Functions | |
| iterator () | |
| empty constructor; creates an invalid iterator More... | |
| iterator (const iterator &that) | |
| copy constructor More... | |
| iterator & | operator= (const iterator &that) |
| assignment operator More... | |
| bool | operator== (const iterator &that) const |
| equality comparator More... | |
| bool | valid () const |
| int | operator * () const |
| iterator & | operator++ () |
| pre-increment; move to the next set (true) bit More... | |
| iterator | operator++ (int) |
| post-increment; move to the next set (true) bit More... | |
| iterator & | operator-- () |
| pre-decrement; move to the previous set (true) bit More... | |
| iterator | operator-- (int) |
| post-decrement; move to the previous set (true) bit More... | |
| iterator & | operator+= (int n) |
| skip operator More... | |
| iterator | operator+ (int n) const |
| skip operator More... | |
| iterator & | operator-= (int n) |
| skip operator More... | |
| iterator | operator- (int n) |
| skip operator More... | |
| int | operator- (const iterator &that) |
| difference operator More... | |
Private Member Functions | |
| iterator (const BitSet *aparent, int start) | |
| constructor with parent and offset More... | |
Private Attributes | |
| const BitSet * | parent |
| parent BitSet More... | |
| int | _offset |
| current offset More... | |
Friends | |
| class | BitSet |
| BitSet::iterator::iterator | ( | ) |
empty constructor; creates an invalid iterator
Definition at line 196 of file bitset.cpp.
| BitSet::iterator::iterator | ( | const iterator & | that | ) |
|
private |
constructor with parent and offset
| aparent | parent BitSet |
| start | initial offset |
Definition at line 275 of file bitset.cpp.
| int BitSet::iterator::operator * | ( | ) | const |
Definition at line 216 of file bitset.cpp.
| BitSet::iterator BitSet::iterator::operator+ | ( | int | n | ) | const |
skip operator
| n | number of set bits to skip |
Definition at line 249 of file bitset.cpp.
| BitSet::iterator & BitSet::iterator::operator++ | ( | ) |
pre-increment; move to the next set (true) bit
Definition at line 221 of file bitset.cpp.
| BitSet::iterator BitSet::iterator::operator++ | ( | int | ) |
post-increment; move to the next set (true) bit
Definition at line 226 of file bitset.cpp.
| BitSet::iterator & BitSet::iterator::operator+= | ( | int | n | ) |
skip operator
| n | number of set bits to skip |
Definition at line 243 of file bitset.cpp.
| BitSet::iterator BitSet::iterator::operator- | ( | int | n | ) |
skip operator
| n | number of set bits to skip |
Definition at line 261 of file bitset.cpp.
| int BitSet::iterator::operator- | ( | const iterator & | that | ) |
difference operator
| that | iterator to compare with |
Definition at line 267 of file bitset.cpp.
| BitSet::iterator & BitSet::iterator::operator-- | ( | ) |
pre-decrement; move to the previous set (true) bit
Definition at line 232 of file bitset.cpp.
| BitSet::iterator BitSet::iterator::operator-- | ( | int | ) |
post-decrement; move to the previous set (true) bit
Definition at line 237 of file bitset.cpp.
| BitSet::iterator & BitSet::iterator::operator-= | ( | int | n | ) |
skip operator
| n | number of set bits to skip |
Definition at line 255 of file bitset.cpp.
| BitSet::iterator & BitSet::iterator::operator= | ( | const iterator & | that | ) |
assignment operator
| that | iterator to copy from |
Definition at line 200 of file bitset.cpp.
| bool BitSet::iterator::operator== | ( | const iterator & | that | ) | const |
equality comparator
| that | iterator to compare with |
Definition at line 206 of file bitset.cpp.
| bool BitSet::iterator::valid | ( | ) | const |
Definition at line 211 of file bitset.cpp.
|
private |
|
private |