OpenTTD Source 20241224-master-gee860a5c8e
|
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. | |
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.
typedef CSegmentCostCacheT<CachedData> CYapfSegmentCostCacheGlobalT< Types >::Cache |
Definition at line 112 of file yapf_costcache.hpp.
typedef Node::CachedData CYapfSegmentCostCacheGlobalT< Types >::CachedData |
Definition at line 110 of file yapf_costcache.hpp.
typedef CachedData::Key CYapfSegmentCostCacheGlobalT< Types >::CacheKey |
Definition at line 111 of file yapf_costcache.hpp.
typedef Node::Key CYapfSegmentCostCacheGlobalT< Types >::Key |
key to hash tables
Definition at line 109 of file yapf_costcache.hpp.
using CYapfSegmentCostCacheGlobalT< Types >::LocalCache = std::deque<CachedData> |
Definition at line 113 of file yapf_costcache.hpp.
typedef Types::NodeList::Item CYapfSegmentCostCacheGlobalT< Types >::Node |
this will be our node type
Definition at line 108 of file yapf_costcache.hpp.
typedef Types::Tpf CYapfSegmentCostCacheGlobalT< Types >::Tpf |
the pathfinder class (derived from THIS class)
Definition at line 107 of file yapf_costcache.hpp.
|
inlineprotected |
Definition at line 119 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().
|
inlinestaticprotected |
Definition at line 127 of file yapf_costcache.hpp.
|
inlineprotected |
to access inherited path finder
Definition at line 122 of file yapf_costcache.hpp.
Referenced by CYapfSegmentCostCacheGlobalT< Types >::PfNodeCacheFetch().
|
protected |
Definition at line 116 of file yapf_costcache.hpp.
|
protected |
Definition at line 117 of file yapf_costcache.hpp.