#include <yapf_costcache.hpp>
Public Types | |
enum | { c_hash_bits = 14 } |
typedef CHashTableT< Tsegment, c_hash_bits > | HashTable |
typedef SmallArray< Tsegment > | Heap |
typedef Tsegment::Key | Key |
key to hash table | |
Public Member Functions | |
FORCEINLINE void | Flush () |
flush (clear) the cache | |
FORCEINLINE Tsegment & | Get (Key &key, bool *found) |
Data Fields | |
HashTable | m_map |
Heap | m_heap |
Each rail node contains pointer to the segment that contains cached (or non-cached) segment cost information. Nodes can differ by key type, but they use the same segment type. Segment key should be always the same (TileIndex + DiagDirection) that represent the beginning of the segment (origin tile and exit-dir from this tile). Different CYapfCachedCostT types can share the same type of CSegmentCostCacheT. Look at CYapfRailSegment (yapf_node_rail.hpp) for the segment example
Definition at line 110 of file yapf_costcache.hpp.