OpenTTD Source 20241224-master-gf74b0cf984
linkgraph.h File Reference

Declaration of link graph classes used for cargo distribution. More...

#include "../core/pool_type.hpp"
#include "../station_base.h"
#include "../cargotype.h"
#include "../timer/timer_game_economy.h"
#include "../saveload/saveload.h"
#include "linkgraph_type.h"
#include <utility>

Go to the source code of this file.

Data Structures

class  LinkGraph
 A connected component of a link graph. More...
 
struct  LinkGraph::BaseEdge
 An edge in the link graph. More...
 
struct  LinkGraph::BaseNode
 Node of the link graph. More...
 

Typedefs

typedef Pool< LinkGraph, LinkGraphID, 32, 0xFFFF > LinkGraphPool
 Type of the pool for link graph components.
 

Variables

LinkGraphPool _link_graph_pool
 The actual pool with link graphs.
 

Detailed Description

Declaration of link graph classes used for cargo distribution.

Definition in file linkgraph.h.

Typedef Documentation

◆ LinkGraphPool

typedef Pool<LinkGraph, LinkGraphID, 32, 0xFFFF> LinkGraphPool

Type of the pool for link graph components.

Each station can be in at up to 32 link graphs. So we allow for plenty of them to be created.

Definition at line 27 of file linkgraph.h.