#include <iterator.hh>
Public Types | |
| typedef I | iterator_type |
| typedef I::value_type | value_type |
Public Member Functions | |
| IterRange () | |
| IterRange (I beg, I end) | |
| bool | AtEnd () const |
| IterRange< I > & | Next () |
| I::value_type & | Get () |
| IterRange< I > & | operator++ () |
| I::value_type & | operator* () |
To turn two iterators marking the half-closed range [beg, end) into a iterator range use:
// ent is an instance of entity IterRange<AtomHandleIter> atom_range(ent.AtomsBegin(), ent.AtomsEnd()); for (; !atom_range.AtEnd(); ++atom_range) { }
Definition at line 51 of file iterator.hh.
| typedef I iterator_type |
Definition at line 53 of file iterator.hh.
| typedef I::value_type value_type |
Definition at line 54 of file iterator.hh.
| IterRange | ( | ) | [inline] |
Definition at line 55 of file iterator.hh.
| IterRange | ( | I | beg, | |
| I | end | |||
| ) | [inline] |
Definition at line 56 of file iterator.hh.
| bool AtEnd | ( | ) | const [inline] |
| I::value_type& Get | ( | ) | [inline] |
Definition at line 68 of file iterator.hh.
| IterRange<I>& Next | ( | ) | [inline] |
| I::value_type& operator* | ( | ) | [inline] |
Definition at line 75 of file iterator.hh.
| IterRange<I>& operator++ | ( | ) | [inline] |
Definition at line 71 of file iterator.hh.
1.5.8