OpenTTD Source: CYapfSegmentCostCacheNoneT< Types > Class Template Reference

OpenTTD Source 15.3

Public Types | Public Member Functions
CYapfSegmentCostCacheNoneT< Types > Class Template Reference

CYapfSegmentCostCacheNoneT - the formal only yapf cost cache provider that implements PfNodeCacheFetch(). 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

## Public Member Functions
bool | PfNodeCacheFetch (Node &)
| Called by YAPF to attach cached or local segment cost data to the given node.

## Detailed Description

template<class Types>
class CYapfSegmentCostCacheNoneT< Types >

CYapfSegmentCostCacheNoneT - the formal only yapf cost cache provider that implements PfNodeCacheFetch().

Used when nodes don't have CachedData defined (they don't count with any segment cost caching).

Definition at line 23 of file yapf_costcache.hpp.

## Member Typedef Documentation

## ◆ Node

template<class Types >

typedef Types::NodeList::Item CYapfSegmentCostCacheNoneT< Types >::Node

this will be our node type

Definition at line 26 of file yapf_costcache.hpp.

## ◆ Tpf

template<class Types >

typedef Types::Tpf CYapfSegmentCostCacheNoneT< Types >::Tpf

the pathfinder class (derived from THIS class)

Definition at line 25 of file yapf_costcache.hpp.

## Member Function Documentation

## ◆ PfNodeCacheFetch()

template<class Types >

bool CYapfSegmentCostCacheNoneT< Types >::PfNodeCacheFetch | ( | Node & |  | ) |
| inline

Called by YAPF to attach cached or local segment cost data to the given node.

Returns
  true if globally cached data were used or false if local data was used

Definition at line 32 of file yapf_costcache.hpp.

The documentation for this class was generated from the following file:

- src/pathfinder/yapf/yapf_costcache.hpp