Classes and types for entities having cargo destinations. More...
#include "cargodest_type.h"
#include "cargo_type.h"
#include "town_type.h"
#include "core/smallvec_type.hpp"
#include "core/pool_type.hpp"
#include "order_type.h"
#include "station_type.h"
#include "company_type.h"
#include "vehicle_type.h"
Go to the source code of this file.
Data Structures | |
struct | CargoLink |
Information about a demand link for cargo. More... | |
struct | CargoSourceSink |
An entity producing or accepting cargo with a destination. More... | |
struct | RouteLink |
Holds information about a route service between two stations. More... | |
Defines | |
#define | FOR_ALL_ROUTELINKS_FROM(var, start) FOR_ALL_ITEMS_FROM(RouteLink, routelink_index, var, start) |
Iterate over all valid route links from a given start. | |
#define | FOR_ALL_ROUTELINKS(var) FOR_ALL_ROUTELINKS_FROM(var, 0) |
Iterate over all valid route links. | |
Typedefs | |
typedef Pool< RouteLink, RouteLinkID, 512, 262144 > | RouteLinkPool |
Pool of route links. | |
Variables | |
RouteLinkPool | _routelink_pool |
Classes and types for entities having cargo destinations.
Definition in file cargodest_base.h.
#define FOR_ALL_ROUTELINKS | ( | var | ) | FOR_ALL_ROUTELINKS_FROM(var, 0) |
Iterate over all valid route links.
var | The variable to use as the "iterator". |
Definition at line 179 of file cargodest_base.h.
Referenced by Ptrs_RTLN(), and Save_RTLN().
#define FOR_ALL_ROUTELINKS_FROM | ( | var, | |||
start | ) | FOR_ALL_ITEMS_FROM(RouteLink, routelink_index, var, start) |
Iterate over all valid route links from a given start.
var | The variable to use as the "iterator". | |
start | The RouteLinkID to start the iteration from. |
Definition at line 173 of file cargodest_base.h.
typedef Pool<RouteLink, RouteLinkID, 512, 262144> RouteLinkPool |
Pool of route links.
Definition at line 97 of file cargodest_base.h.