28 inline int CalcHash()
const {
return m_exitdir | (m_tile << 2);}
29 inline bool operator == (
const CYapfNodeKeyExitDir& other)
const {
return (m_tile == other.m_tile) && (m_exitdir == other.m_exitdir);}
41 inline int CalcHash()
const {
return m_td | (m_tile << 4);}
42 inline bool operator == (
const CYapfNodeKeyTrackDir& other)
const {
return (m_tile == other.m_tile) && (m_td == other.m_td);}
46 template <
class Tkey_,
class Tnode>
66 inline Node *GetHashNext() {
return m_hash_next;}
67 inline void SetHashNext(Node *pNext) {m_hash_next = pNext;}
68 inline TileIndex GetTile()
const {
return m_key.m_tile;}
69 inline Trackdir GetTrackdir()
const {
return m_key.m_td;}
70 inline const Tkey_& GetKey()
const {
return m_key;}
71 inline int GetCost()
const {
return m_cost;}
72 inline int GetCostEstimate()
const {
return m_estimate;}
73 inline bool operator < (
const Node& other)
const {
return m_estimate < other.m_estimate;}
80 dmp.
WriteLine(
"m_estimate = %d", m_estimate);