MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ resolve()

template<typename T>
std::optional< InteractionFn< T > > MayaFlux::Portal::Forma::InteractionTable< T >::resolve ( std::string_view name,
const InteractionSource & source,
std::string & error ) const
inlinenodiscard

Run the provider of this name on a source.

Definition at line 68 of file Interaction.hpp.

70 {
71 const auto provider = m_providers.find(name);
72 if (provider == m_providers.end()) {
73 error = "no registered interaction " + std::string(name);
74 return std::nullopt;
75 }
76 return std::invoke(provider->second, source, error);
77 }
Memory::FlatMap< std::string, InteractionProvider< T >, std::less<> > m_providers
Interaction providers for one state type, by name.

References m_providers.

Referenced by attach().

Here is the caller graph for this function: