CYapfRouteLinkNodeT Struct Reference

YAPF node class for cargo routing. More...

Inheritance diagram for CYapfRouteLinkNodeT:
CYapfNodeT< CYapfRouteLinkNodeKeyT, CYapfRouteLinkNodeT >

Public Types

typedef CYapfNodeT
< CYapfRouteLinkNodeKeyT,
CYapfRouteLinkNodeT
Base

Public Member Functions

FORCEINLINE void Set (CYapfRouteLinkNodeT *parent, RouteLink *link)
 Initialize this node.
FORCEINLINE RouteLinkGetRouteLink () const
 Get the route link of this node.
FORCEINLINE int GetNumberOfTransfers () const
 Get the number of transfers needed to reach this node.

Data Fields

uint m_num_transfers
 Number of transfers to reach this node.

Detailed Description

YAPF node class for cargo routing.

Definition at line 47 of file yapf_cargo.cpp.


Member Function Documentation

FORCEINLINE int CYapfRouteLinkNodeT::GetNumberOfTransfers (  )  const [inline]

Get the number of transfers needed to reach this node.

Definition at line 64 of file yapf_cargo.cpp.

References m_num_transfers.

FORCEINLINE RouteLink* CYapfRouteLinkNodeT::GetRouteLink (  )  const [inline]

Get the route link of this node.

Definition at line 61 of file yapf_cargo.cpp.

FORCEINLINE void CYapfRouteLinkNodeT::Set ( CYapfRouteLinkNodeT parent,
RouteLink link 
) [inline]

Initialize this node.

Definition at line 53 of file yapf_cargo.cpp.

References m_num_transfers, and CYapfRouteLinkNodeKeyT::Set().


The documentation for this struct was generated from the following file:

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