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

Reusable storage for deterministic local move coordination. More...

#include <tess/spatial/local_coordination.h>

Public Member Functions

void reserve (std::size_t request_count, std::size_t option_count)

Friends

template<typename CanEnterFn>
auto resolve_local_moves (std::span< const LocalMoveRequest > requests, std::span< const LocalMoveOption > options, CanEnterFn &&can_enter, LocalCoordinationScratch &scratch) -> LocalCoordinationResult

Detailed Description

Reusable storage for deterministic local move coordination.

◆ resolve_local_moves

template<typename CanEnterFn>
auto resolve_local_moves ( std::span< const LocalMoveRequest > requests,
std::span< const LocalMoveOption > options,
CanEnterFn && can_enter,
LocalCoordinationScratch & scratch ) -> LocalCoordinationResult
friend

Resolves caller-filtered local destinations by priority and stable agent ID.

This resolver is intended for bounded local cohorts. Duplicate options are removed within each request, and ordered claims are inserted into a compact scratch vector; the worst case is quadratic in the largest per-request option count and in the request count.


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