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 913 of file TextureContainer.cpp.

914{
915 static const RegionGroup empty;
916 std::optional<RegionGroup> result;
918 auto it = m_region_groups.find(name);
919 result = (it != m_region_groups.end()) ? it->second : empty;
920 });
921 return result.value_or(empty);
922}
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