tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::RegionGraphT< Residency > Class Template Reference

Region graph storage specialized by dense or sparse residency policy. More...

Public Member Functions

void clear () noexcept
auto local_topologies () const noexcept -> std::span< const LocalChunkTopology >
auto portals () const noexcept -> std::span< const RegionPortal >
auto local_topology (ChunkKey chunk) const noexcept -> const LocalChunkTopology *
template<typename Shape>
auto region_of (Coord3 coord) const noexcept -> RegionRef
auto region_count () const noexcept -> std::uint32_t
auto region_index (RegionRef ref) const noexcept -> std::uint32_t
template<typename ClassOrTag>
auto matches_class () const noexcept -> bool
template<typename Provider>
auto matches_provider () const noexcept -> bool
template<typename Provider>
auto matches_provider (const Provider &provider) const noexcept -> bool

Friends

template<typename World, typename ClassOrTag, typename Provider>
auto build_region_graph (const World &world, LocalTopologyScratch &scratch, RegionGraphT< typename World::residency_type > &graph, const Provider &provider={}) -> LocalTopologyResult
 Rebuilds a complete region graph for the world's current resident set.
template<typename World, typename ClassOrTag, typename Provider>
auto update_region_graph (const World &world, LocalTopologyScratch &scratch, RegionGraphT< typename World::residency_type > &graph, std::span< const ChunkKey > dirty_chunks, const Provider &provider={}) -> LocalTopologyResult
 Incrementally updates dirty chunks, rebuilding fully when stamps differ.
template<typename Shape, typename OtherResidency>
auto reachable (const RegionGraphT< OtherResidency > &graph, Coord3 start, Coord3 goal, RegionGraphScratch &scratch) -> ReachabilityResult
template<typename OtherWorld>
auto is_region_graph_fresh (const OtherWorld &world, const RegionGraphT< typename OtherWorld::residency_type > &graph) noexcept -> bool

Detailed Description

template<typename Residency>
class tess::RegionGraphT< Residency >

Region graph storage specialized by dense or sparse residency policy.


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