OpenTTD Source
20241120-master-g6d3adc6169
|
CYapfSegmentCostCacheGlobalT - the yapf cost cache provider that adds the segment cost caching functionality to yapf. More...
#include <yapf_costcache.hpp>
Public Types | |
typedef Types::Tpf | Tpf |
the pathfinder class (derived from THIS class) | |
typedef Types::NodeList::Item | Node |
this will be our node type | |
typedef Node::Key | Key |
key to hash tables | |
typedef Node::CachedData | CachedData |
typedef CachedData::Key | CacheKey |
typedef CSegmentCostCacheT< CachedData > | Cache |
using | LocalCache = std::deque< CachedData > |
Public Member Functions | |
bool | PfNodeCacheFetch (Node &n) |
Called by YAPF to attach cached or local segment cost data to the given node. More... | |
Protected Member Functions | |
Tpf & | Yapf () |
to access inherited path finder | |
Static Protected Member Functions | |
static Cache & | stGetGlobalCache () |
Protected Attributes | |
Cache & | global_cache |
LocalCache | local_cache |
CYapfSegmentCostCacheGlobalT - the yapf cost cache provider that adds the segment cost caching functionality to yapf.
Using this class as base of your will provide the global segment cost caching services for your Nodes.
Definition at line 105 of file yapf_costcache.hpp.
|
inline |
Called by YAPF to attach cached or local segment cost data to the given node.
Definition at line 145 of file yapf_costcache.hpp.
References CYapfSegmentCostCacheGlobalT< Types >::Yapf().