tess 0.4.0
Performance-first tile and path simulation substrate
Loading...
Searching...
No Matches
tess::WeightedPathBatchScratch Class Reference

#include <tess/path/path.h>

Public Member Functions

void reserve_requests (std::size_t request_count)
void reserve_path_nodes (std::size_t node_count)
void reserve_search_nodes (std::size_t node_count)
void clear () noexcept
auto stats () const noexcept -> WeightedPathBatchStats

Friends

template<typename World, typename Class, std::uint32_t MaxCost>
auto weighted_path_batch (const World &world, std::span< const PathRequest > requests, WeightedPathBatchScratch &scratch) -> std::span< const PathResult >

Detailed Description

Owns all temporary and returned storage for weighted batch pathfinding.

Result spans and their paths remain valid until this object is mutated. Reserve request, path, and search capacity to avoid warm allocations.


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