OpenTTD
linkgraph_base.h
Go to the documentation of this file.
1 /*
2  * This file is part of OpenTTD.
3  * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4  * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5  * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <http://www.gnu.org/licenses/>.
6  */
7 
10 #ifndef LINKGRAPH_BASE_H
11 #define LINKGRAPH_BASE_H
12 
13 #include "linkgraph.h"
14 #include "linkgraphschedule.h"
15 
16 typedef LinkGraph::Node Node;
17 typedef LinkGraph::Edge Edge;
19 
23 
24 
25 #endif /* LINKGRAPH_BASE_H */
Constant node class.
Definition: linkgraph.h:337
Updatable node class.
Definition: linkgraph.h:372
EdgeWrapper< const BaseEdge > ConstEdge
A constant edge class.
Definition: linkgraph.h:286
Declaration of link graph schedule used for cargo distribution.
An iterator for const edges.
Definition: linkgraph.h:307
An updatable edge class.
Definition: linkgraph.h:291
Wrapper for an edge (const or not) allowing retrieval, but no modification.
Definition: linkgraph.h:75
Declaration of link graph classes used for cargo distribution.
An iterator for non-const edges.
Definition: linkgraph.h:322
Node(LinkGraph *lg, NodeID node)
Constructor.
Definition: linkgraph.h:379