|
tess 0.4.0
Performance-first tile and path simulation substrate
|
Bounded scratch cache for exact and same-goal suffix unit routes. More...
#include <tess/path/route_cache.h>
Public Member Functions | |
| void | set_caps (std::size_t max_entries, std::size_t max_path_nodes) noexcept |
| void | reserve_routes (std::size_t route_count) |
| void | reserve_path_nodes (std::size_t node_count) |
| void | clear () noexcept |
| void | bind_class (std::uintptr_t identity) noexcept |
| void | invalidate () noexcept |
| void | reset_stats () noexcept |
| template<typename World> | |
| void | capture_world_versions (const World &world) noexcept |
| template<typename World> | |
| auto | invalidate_if_world_changed (const World &world) noexcept -> bool |
| auto | stats () const noexcept -> RouteCacheStats |
Static Public Attributes | |
| static constexpr std::size_t | default_max_entries = 512 |
| static constexpr std::size_t | default_max_path_nodes = std::size_t{1} << 20u |
Friends | |
| template<typename World, typename Tag> | |
| auto | cached_astar_path (const World &world, PathRequest request, PathScratch &scratch, RouteCacheScratch &cache) -> PathResult |
| Runs unit A* with exact and same-goal suffix reuse from caller-owned cache. | |
Bounded scratch cache for exact and same-goal suffix unit routes.