OpenTTD Source 20241224-master-gee860a5c8e
CYapfRailSegmentKey Struct Reference

key for cached segment cost for rail YAPF More...

#include <yapf_node_rail.hpp>

Public Member Functions

 CYapfRailSegmentKey (const CYapfNodeKeyTrackDir &node_key)
 
void Set (const CYapfRailSegmentKey &src)
 
void Set (const CYapfNodeKeyTrackDir &node_key)
 
int32_t CalcHash () const
 
TileIndex GetTile () const
 
Trackdir GetTrackdir () const
 
bool operator== (const CYapfRailSegmentKey &other) const
 
void Dump (DumpTarget &dmp) const
 

Data Fields

uint32_t value
 

Detailed Description

key for cached segment cost for rail YAPF

Definition at line 20 of file yapf_node_rail.hpp.

Constructor & Destructor Documentation

◆ CYapfRailSegmentKey()

CYapfRailSegmentKey::CYapfRailSegmentKey ( const CYapfNodeKeyTrackDir node_key)
inline

Definition at line 24 of file yapf_node_rail.hpp.

Member Function Documentation

◆ CalcHash()

int32_t CYapfRailSegmentKey::CalcHash ( ) const
inline

Definition at line 39 of file yapf_node_rail.hpp.

◆ Dump()

void CYapfRailSegmentKey::Dump ( DumpTarget dmp) const
inline

Definition at line 59 of file yapf_node_rail.hpp.

◆ GetTile()

TileIndex CYapfRailSegmentKey::GetTile ( ) const
inline

Definition at line 44 of file yapf_node_rail.hpp.

◆ GetTrackdir()

Trackdir CYapfRailSegmentKey::GetTrackdir ( ) const
inline

Definition at line 49 of file yapf_node_rail.hpp.

◆ operator==()

bool CYapfRailSegmentKey::operator== ( const CYapfRailSegmentKey other) const
inline

Definition at line 54 of file yapf_node_rail.hpp.

◆ Set() [1/2]

void CYapfRailSegmentKey::Set ( const CYapfNodeKeyTrackDir node_key)
inline

Definition at line 34 of file yapf_node_rail.hpp.

◆ Set() [2/2]

void CYapfRailSegmentKey::Set ( const CYapfRailSegmentKey src)
inline

Definition at line 29 of file yapf_node_rail.hpp.

Field Documentation

◆ value

uint32_t CYapfRailSegmentKey::value

Definition at line 22 of file yapf_node_rail.hpp.


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