YAPF node class for cargo routing. More...
Public Types | |
typedef CYapfNodeT < CYapfRouteLinkNodeKeyT, CYapfRouteLinkNodeT > | Base |
Public Member Functions | |
FORCEINLINE void | Set (CYapfRouteLinkNodeT *parent, RouteLink *link) |
Initialize this node. | |
FORCEINLINE RouteLink * | GetRouteLink () 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. |
YAPF node class for cargo routing.
Definition at line 47 of file yapf_cargo.cpp.
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().