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

◆ get() [1/4]

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

Returns the struct stored under its type, or nullptr.

Definition at line 179 of file Facets.hpp.

180 {
181 const auto it = m_struct_entries.find(std::type_index(typeid(T)));
182 if (it == m_struct_entries.end()) {
183 return nullptr;
184 }
185 return &static_cast<const Entry<T>*>(it->second.get())->value;
186 }
std::unordered_map< std::type_index, std::shared_ptr< const EntryBase > > m_struct_entries
Definition Facets.hpp:259

References m_struct_entries, and MayaFlux::Facets::Entry< T >::value.