cargodest_base.h File Reference

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

Detailed Description

Classes and types for entities having cargo destinations.

Definition in file cargodest_base.h.


Define Documentation

#define FOR_ALL_ROUTELINKS ( var   )     FOR_ALL_ROUTELINKS_FROM(var, 0)

Iterate over all valid route links.

Parameters:
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.

Parameters:
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 Documentation

typedef Pool<RouteLink, RouteLinkID, 512, 262144> RouteLinkPool

Pool of route links.

Definition at line 97 of file cargodest_base.h.


Generated on Mon May 9 05:19:05 2011 for OpenTTD by  doxygen 1.6.1