|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
Interaction providers for one state type, by name. More...
#include <Interaction.hpp>
Public Member Functions | |
| bool | attach (Geometry::Form< T > &form, std::string_view name, std::optional< Kinesis::AABB2D > placement, std::string &error) const |
| Resolve a name onto a Form's interaction. | |
| bool | contains (std::string_view name) const |
| void | expose (std::string name, InteractionProvider< T > provider) |
| Register a provider, replacing any of the same name. | |
| bool | merge (const InteractionTable &other, std::string_view prefix, std::string &error, bool replace=false) |
| Add another table under a prefix, as FlatMap::merge_prefixed. | |
| std::vector< std::string > | names () const |
| Registered names in sorted order. | |
| std::optional< InteractionFn< T > > | resolve (std::string_view name, const InteractionSource &source, std::string &error) const |
| Run the provider of this name on a source. | |
Private Attributes | |
| Memory::FlatMap< std::string, InteractionProvider< T >, std::less<> > | m_providers |
Interaction providers for one state type, by name.
A plain value, with nothing registered until its builder adds it. An factory that lets a document choose its interaction declares a name among its described inputs and resolves it here, so interaction is selected by the document and implemented in C++.
| T | State type the handlers write. |
Definition at line 38 of file Interaction.hpp.