morph 0.1.0
Asynchronous bridge between GUI thread and business models
Loading...
Searching...
No Matches
morph::effects::detail::Resolved Struct Reference

The matched and validated registries: what every read is answered from. More...

#include <effects.hpp>

Public Member Functions

std::optional< std::vector< Effect > > effectsOf (std::string_view actionId) const
 See morph::effects::effectsOf.
std::vector< ActionRecord > recordsOf (std::string_view actionId) const
 See morph::effects::recordsOf.
record::RecordInfo const * recordNamed (std::string_view name) const
 See morph::effects::recordNamed.
std::vector< std::string > actionsHolding (std::string_view record) const
 See morph::effects::actionsHolding.

Public Attributes

std::vector< record::RecordInfo > records
 The records, one entry per registered type, in registration order.
std::map< std::string, std::vector< Effect >, std::less<> > effects
 Each action's effects, by action id; actions that declared none are absent.
std::map< std::string, std::vector< ActionRecord >, std::less<> > actionRecords
 Each action's records, by action id; actions whose result holds none are absent.
std::map< std::string, std::vector< std::string >, std::less<> > holding
 The ids of the actions holding each record, by record name, in id order.

Detailed Description

The matched and validated registries: what every read is answered from.

Definition at line 232 of file effects.hpp.

Member Function Documentation

◆ effectsOf()

std::optional< std::vector< Effect > > morph::effects::detail::Resolved::effectsOf ( std::string_view actionId) const
inlinenodiscard

See morph::effects::effectsOf.

Parameters
actionIdThe action's id.
Returns
Its effects, or nullopt when it declared none.

Definition at line 245 of file effects.hpp.

◆ recordsOf()

std::vector< ActionRecord > morph::effects::detail::Resolved::recordsOf ( std::string_view actionId) const
inlinenodiscard

See morph::effects::recordsOf.

Parameters
actionIdThe action's id.
Returns
The records its result holds.

Definition at line 255 of file effects.hpp.

◆ recordNamed()

record::RecordInfo const * morph::effects::detail::Resolved::recordNamed ( std::string_view name) const
inlinenodiscard

See morph::effects::recordNamed.

Parameters
nameA record's wire name.
Returns
The record, or null.

Definition at line 265 of file effects.hpp.

◆ actionsHolding()

std::vector< std::string > morph::effects::detail::Resolved::actionsHolding ( std::string_view record) const
inlinenodiscard

See morph::effects::actionsHolding.

Parameters
recordA record's wire name.
Returns
The ids of the actions whose result holds it.

Definition at line 273 of file effects.hpp.

Member Data Documentation

◆ records

std::vector<record::RecordInfo> morph::effects::detail::Resolved::records

The records, one entry per registered type, in registration order.

Definition at line 234 of file effects.hpp.

◆ effects

std::map<std::string, std::vector<Effect>, std::less<> > morph::effects::detail::Resolved::effects

Each action's effects, by action id; actions that declared none are absent.

Definition at line 236 of file effects.hpp.

◆ actionRecords

std::map<std::string, std::vector<ActionRecord>, std::less<> > morph::effects::detail::Resolved::actionRecords

Each action's records, by action id; actions whose result holds none are absent.

Definition at line 238 of file effects.hpp.

◆ holding

std::map<std::string, std::vector<std::string>, std::less<> > morph::effects::detail::Resolved::holding

The ids of the actions holding each record, by record name, in id order.

Definition at line 240 of file effects.hpp.


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