|
spot 2.16
|
Iterator for traversing successors of a state. More...
#include <spot/graph/adjlist.hh>
Public Types | |
| using | iterator_category = std::input_iterator_tag |
| Standard iterator type alias. | |
| using | value_type = unsigned |
| Standard iterator type alias. | |
| using | difference_type = std::ptrdiff_t |
| Standard iterator type alias. | |
| using | pointer = const unsigned * |
| Standard iterator type alias. | |
| using | reference = const unsigned & |
| Standard iterator type alias. | |
Public Member Functions | |
| successor_iterator (const adjlist *g, unsigned idx) | |
| Construct an iterator over successors of state at idx in graph g. | |
| int | operator* () const |
| Dereference: return destination state. | |
| successor_iterator & | operator++ () |
| Pre-increment: advance to next successor. | |
| successor_iterator | operator++ (int) |
| Post-increment: advance to next successor. | |
Friends | |
| bool | operator== (const successor_iterator &iter, std::nullptr_t) |
| Return true iff iter is past the end. | |
| bool | operator== (std::nullptr_t, const successor_iterator &iter) |
| Return true iff iter is past the end. | |
| bool | operator!= (const successor_iterator &iter, std::nullptr_t) |
| Return true iff iter is not past the end. | |
| bool | operator!= (std::nullptr_t, const successor_iterator &iter) |
| Return true iff iter is not past the end. | |
Iterator for traversing successors of a state.
| using spot::adjlist< State_Data >::successor_iterator::difference_type = std::ptrdiff_t |
Standard iterator type alias.
| using spot::adjlist< State_Data >::successor_iterator::iterator_category = std::input_iterator_tag |
Standard iterator type alias.
| using spot::adjlist< State_Data >::successor_iterator::pointer = const unsigned* |
Standard iterator type alias.
| using spot::adjlist< State_Data >::successor_iterator::reference = const unsigned& |
Standard iterator type alias.
| using spot::adjlist< State_Data >::successor_iterator::value_type = unsigned |
Standard iterator type alias.
|
inline |
Construct an iterator over successors of state at idx in graph g.
|
inline |
Dereference: return destination state.
|
inline |
Pre-increment: advance to next successor.
|
inline |
Post-increment: advance to next successor.
|
friend |
Return true iff iter is not past the end.
|
friend |
Return true iff iter is not past the end.
|
friend |
Return true iff iter is past the end.
|
friend |
Return true iff iter is past the end.
1.9.8