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

◆ resolve()

std::optional< Containment > MayaFlux::Portal::Forma::ContainmentTable::resolve ( std::string_view name,
const ContainmentSource & source,
std::string & error ) const
inlinenodiscard

Run the provider of this name on a source.

Definition at line 147 of file Containment.hpp.

149 {
150 const auto provider = m_providers.find(name);
151 if (provider == m_providers.end()) {
152 error = "no registered hit region " + std::string(name);
153 return std::nullopt;
154 }
155 return std::invoke(provider->second, source, error);
156 }
Memory::FlatMap< std::string, ContainmentProvider, std::less<> > m_providers
void error(Component component, Context context, std::source_location location, std::string_view message)
Log an error message and optionally throw an exception.

References m_providers.

Referenced by resolve_or().

Here is the caller graph for this function: