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

◆ resolve_or()

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

The named containment, or the fallback when the name is empty.

A factory derives its own containment from its geometry and lets an input name replace it, so the fallback is that derived value.

Parameters
errorReceives the reason when nullopt is returned.

Definition at line 166 of file Containment.hpp.

168 {
169 if (name.empty())
170 return fallback;
171 return resolve(name, source, error);
172 }
std::optional< Containment > resolve(std::string_view name, const ContainmentSource &source, std::string &error) const
Run the provider of this name on a source.

References resolve().

Here is the call graph for this function: