StateToIdMapPair.ixx File
Combined policy mapping two state types to IDs. More...
Included Headers
#include <vector>
#include <span>
#include <helios-engine-config.h>
#include <cassert>
#include <bit>
#include <algorithm>
#include <iterator>
#include <helios.engine.core.types>
#include <helios.engine.state.types>
#include <helios.engine.state.StateToIdMap>
Namespaces Index
| namespace | helios |
| namespace | engine |
| namespace | state |
Classes Index
| class | StateToIdMapPair<LState, RState, TId> |
|
Combines two StateToIdMap instances for dual-state lookups. More... | |
Description
Combined policy mapping two state types to IDs.
File Listing
The file content with the documentation metadata removed is:
9#include <helios-engine-config.h>
23using namespace helios::engine::state::types;
25export namespace helios::engine::state {
39 class StateToIdMapPair {
44 StateToIdMap<LState, TId> lft_;
49 StateToIdMap<RState, TId> rgt_;
63 void mergeInto(std::vector<TId>& out, std::span<const TId> lft, std::span<const TId> rgt) const {
65 out.clear();
82 StateToIdMapPair& add(LState state, TId id) {
83 lft_.add(state, id);
95 StateToIdMapPair& add(RState state, TId id) {
96 rgt_.add(state, id);
128 lft_.freeze();
129 rgt_.freeze();
Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.