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

◆ get() [3/4]

template<typename T>
const T * MayaFlux::Facets::get ( const Facet< T > & key) const
inlinenodiscard

The value under key, or nullptr when absent.

Definition at line 157 of file Facets.hpp.

158 {
159 const auto it = m_entries.find(key.id());
160 if (it == m_entries.end()) {
161 return nullptr;
162 }
163 return &static_cast<const Entry<T>*>(it->second.get())->value;
164 }
Memory::FlatMap< const void *, std::shared_ptr< const EntryBase > > m_entries
Definition Facets.hpp:258

References MayaFlux::Facet< T >::id(), m_entries, and MayaFlux::Facets::Entry< T >::value.

Referenced by MayaFlux::Yantra::ComputationGrammar::Rule::accepts(), MayaFlux::Yantra::VisionAnalyzer::analyze_implementation(), and MayaFlux::Yantra::VisionExtractor::extract_implementation().

Here is the call graph for this function:
Here is the caller graph for this function: