class route_breadth_first_iterator #( type T = int ) extends iterator#( T )
Provides a breadth-first iterator to a route.
| T | optional The type of data collected in a route. The default is int. |
| route_breadth_first_iterator | Provides a breadth-first iterator to a route. |
| Types | |
| route_node_type | The shorthand of the route_node type specialized with type T. |
| route_type | The shorthand of the route type specialized with type T. |
| new | Creates a route iterator. |
| has_next | virtual Returns 1 if the iterator has more elements. |
| next | virtual Returns the next element. |
| next_node | virtual Returns the next route_node. |
| remove | virtual Removes the last element returned by the iterator. |
typedef route_node#( T ) route_node_type
The shorthand of the route_node type specialized with type T.
typedef route#( T ) route_type
The shorthand of the route type specialized with type T.
virtual function route_node_type next_node()
virtual Returns the next route_node.
The next route node in the route.
Provides a breadth-first iterator to a route.
class route_breadth_first_iterator #( type T = int ) extends iterator#( T )
Implements a route structure.
class route #( type T = int ) extends collection#( T )
The shorthand of the route_node type specialized with type T.
typedef route_node#( T ) route_node_type
Implements a node of a route.
class route_node #( type T = int )
The shorthand of the route type specialized with type T.
typedef route#( T ) route_type
Creates a route iterator.
function new( route_type r )
virtual Returns 1 if the iterator has more elements.
virtual function bit has_next()
virtual Returns the next element.
virtual function T next()
virtual Returns the next route_node.
virtual function route_node_type next_node()
virtual Removes the last element returned by the iterator.
virtual function void remove()