#include <yapf_costcache.hpp>
Public Types | |
typedef CYapfSegmentCostCacheLocalT < Types > | Tlocal |
typedef Types::Tpf | Tpf |
the pathfinder class (derived from THIS class) | |
typedef Types::NodeList::Titem | 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 |
Public Member Functions | |
FORCEINLINE bool | PfNodeCacheFetch (Node &n) |
Called by YAPF to attach cached or local segment cost data to the given node. | |
FORCEINLINE void | PfNodeCacheFlush (Node &n) |
Called by YAPF to flush the cached segment cost data back into cache storage. | |
Protected Member Functions | |
FORCEINLINE Tpf & | Yapf () |
to access inherited path finder | |
Static Protected Member Functions | |
static FORCEINLINE Cache & | stGetGlobalCache () |
Protected Attributes | |
Cache & | m_global_cache |
Using this class as base of your will provide the global segment cost caching services for your Nodes.
Definition at line 133 of file yapf_costcache.hpp.
FORCEINLINE bool CYapfSegmentCostCacheGlobalT< Types >::PfNodeCacheFetch | ( | Node & | n | ) | [inline] |
Called by YAPF to attach cached or local segment cost data to the given node.
Reimplemented from CYapfSegmentCostCacheLocalT< Types >.
Definition at line 177 of file yapf_costcache.hpp.
References CSegmentCostCacheT< Tsegment >::Get(), CYapfSegmentCostCacheLocalT< Types >::PfNodeCacheFetch(), and CYapfSegmentCostCacheGlobalT< Types >::Yapf().
FORCEINLINE void CYapfSegmentCostCacheGlobalT< Types >::PfNodeCacheFlush | ( | Node & | n | ) | [inline] |
Called by YAPF to flush the cached segment cost data back into cache storage.
Current cache implementation doesn't use that.
Reimplemented from CYapfSegmentCostCacheLocalT< Types >.
Definition at line 191 of file yapf_costcache.hpp.