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

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

#include "../thread.h"
#include "linkgraph.h"
#include <atomic>

Go to the source code of this file.

Data Structures

class  LinkGraphJob
 Class for calculation jobs to be run on link graphs. More...
 
struct  LinkGraphJob::DemandAnnotation
 Demand between two nodes. More...
 
struct  LinkGraphJob::EdgeAnnotation
 Annotation for a link graph edge. More...
 
struct  LinkGraphJob::NodeAnnotation
 Annotation for a link graph node. More...
 
class  Path
 A leg of a path in the link graph. More...
 

Typedefs

typedef std::list< Path * > PathList
 
typedef Pool< LinkGraphJob, LinkGraphJobID, 32, 0xFFFF > LinkGraphJobPool
 Type of the pool for link graph jobs.
 

Variables

LinkGraphJobPool _link_graph_job_pool
 The actual pool with link graph jobs.
 

Detailed Description

Declaration of link graph job classes used for cargo distribution.

Definition in file linkgraphjob.h.

Typedef Documentation

◆ LinkGraphJobPool

typedef Pool<LinkGraphJob, LinkGraphJobID, 32, 0xFFFF> LinkGraphJobPool

Type of the pool for link graph jobs.

Definition at line 22 of file linkgraphjob.h.

◆ PathList

typedef std::list<Path *> PathList

Definition at line 19 of file linkgraphjob.h.