2.0.0b10
catchment modelling framework
|
An iterator over every upstream reach from a start reach. More...
An iterator over every upstream reach from a start reach.
Implements both the Python and the C++ iterator interface Usage C++:
Usage Python:
Public Member Functions | |
ReachIterator (Reach::ptr first) | |
Creates a ReachIterator from a first reach. | |
Reach::ptr | next () |
Returns the next reach in the upstream queue. | |
double | position () const |
Returns the distance to the root reach. | |
Reach::ptr | reach () const |
Returns the current reach. | |
bool | valid () const |
Returns true, if reaches are left to iterate over. | |