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

◆ get_region_group()

RegionGroup MayaFlux::Kakshya::TextureContainer::get_region_group ( const std::string &  name) const
overridevirtual

Get a region group by name.

Parameters
nameName of the region group
Returns
Reference to the RegionGroup

Implements MayaFlux::Kakshya::NDDataContainer.

Definition at line 758 of file TextureContainer.cpp.

759{
760 static const RegionGroup empty;
761 std::optional<RegionGroup> result;
763 auto it = m_region_groups.find(name);
764 result = (it != m_region_groups.end()) ? it->second : empty;
765 });
766 return result.value_or(empty);
767}
std::string name
Definition VKDevice.cpp:143
std::unordered_map< std::string, RegionGroup > m_region_groups
bool seqlock_read_void(const Seqlock &lock, uint32_t max_attempts, Fn &&fn)
Invoke a void read functor under a Seqlock with a bounded retry count.
Definition SeqLock.hpp:222

References name.