OpenTTD
Public Member Functions | Data Fields
LinkGraphJob::NodeAnnotation Struct Reference

Annotation for a link graph node. More...

Public Member Functions

void Init (uint supply)
 Initialize a Linkgraph job node.

Data Fields

uint undelivered_supply
 Amount of supply that hasn't been distributed yet.
PathList paths
 Paths through this node, sorted so that those with flow == 0 are in the back.
FlowStatMap flows
 Planned flows to other nodes.

Detailed Description

Annotation for a link graph node.

Definition at line 46 of file linkgraphjob.h.

Member Function Documentation

void LinkGraphJob::NodeAnnotation::Init ( uint  supply)

Initialize a Linkgraph job node.

The underlying memory is expected to be freshly allocated, without any constructors having been called.

Parameters
supplyInitial undelivered supply.

Definition at line 208 of file linkgraphjob.cpp.


The documentation for this struct was generated from the following files: