OpenTTD Source: LinkGraph::EdgeIterator Class Reference

OpenTTD Source 12.0-beta1

Public Member Functions
LinkGraph::EdgeIterator Class Reference

An iterator for non-const edges. More...

`#include <linkgraph.h>`

Inheritance diagram for LinkGraph::EdgeIterator:

## Public Member Functions
| EdgeIterator (BaseEdge *edges, NodeID current)
| Constructor. More...
Public Member Functions inherited from LinkGraph::BaseEdgeIterator< BaseEdge, Edge, EdgeIterator >
| BaseEdgeIterator (BaseEdge *base, NodeID current)
| Constructor. More...
EdgeIterator & | operator++ ()
| Prefix-increment. More...
EdgeIterator | operator++ (int)
| Postfix-increment. More...
bool | operator== (const Tother &other)
| Compare with some other edge iterator. More...
bool | operator!= (const Tother &other)
| Compare for inequality with some other edge iterator. More...
std::pair< NodeID, Edge > | operator* () const
| Dereference with operator*. More...
FakePointer | operator-> () const
| Dereference with operator->. More...

## Additional Inherited Members
Protected Attributes inherited from LinkGraph::BaseEdgeIterator< BaseEdge, Edge, EdgeIterator >
BaseEdge * | base
| Array of edges being iterated.
NodeID | current
| Current offset in edges array.

## Detailed Description

An iterator for non-const edges.

Cannot be typedef'ed because of template-reference to EdgeIterator itself.

Definition at line 323 of file linkgraph.h.

## Constructor & Destructor Documentation

## ◆ EdgeIterator()

LinkGraph::EdgeIterator::EdgeIterator | ( | BaseEdge * | edges,
|  | NodeID | current
| ) |  |
| inline

Constructor.

Parameters

  edges | Array of edges to be iterated over.
  current | ID of current edge's end node.

Definition at line 330 of file linkgraph.h.

The documentation for this class was generated from the following file:

- src/linkgraph/linkgraph.h