CombinedStateToIdMapPair.ixx File
Combined policy mapping two state types to IDs using 2D indexing. More...
Included Headers
#include <vector>
#include <span>
#include <helios/helios_config.h>
#include <cassert>
#include <bit>
#include <algorithm>
#include <iterator>
#include <helios.core.types>
#include <helios.engine.mechanics.match.types>
#include <helios.engine.state.types>
#include <helios.engine.common.types.ViewportId>
#include <helios.engine.state.StateToIdMap>
Namespaces Index
| namespace | helios |
| namespace | engine |
|
Main engine module aggregating core infrastructure and game systems. More... | |
| namespace | state |
|
Generic, template-based state management system. More... | |
Classes Index
| class | CombinedStateToIdMapPair<LState, RState, TId> |
|
Maps combined state pairs directly to ID lists. More... | |
Description
Combined policy mapping two state types to IDs using 2D indexing.
File Listing
The file content with the documentation metadata removed is:
26using namespace helios::engine::common::types;
27using namespace helios::engine::state::types;
28using namespace helios::engine::mechanics::match::types;
30export namespace helios::engine::state {
51 class CombinedStateToIdMapPair {
79 assert((std::to_underlying(stateLft) & (std::to_underlying(stateLft) -1)) == 0 && "LState must be a power of 2");
97 assert((std::to_underlying(stateRgt) & (std::to_underlying(stateRgt) -1)) == 0 && "RState must be a power of 2");
117 CombinedStateToIdMapPair& add(const LState stateLft, const RState stateRgt, const TId id) noexcept {
157 finalize();
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.15.0.