MayaFlux
0.2.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
◆
get_attribute()
template<typename T >
std::optional< T > MayaFlux::Kakshya::RegionGroup::get_attribute
(
const std::string &
key
)
const
inline
Get a group-level attribute.
Template Parameters
T
Value type.
Parameters
key
Attribute key.
Returns
Optional value if present and convertible.
Definition at line
279
of file
RegionGroup.hpp
.
280
{
281
auto
it =
attributes
.find(key);
282
if
(it ==
attributes
.end()) {
283
return
std::nullopt;
284
}
285
286
return
safe_any_cast<T>(it->second);
287
}
MayaFlux::Kakshya::RegionGroup::attributes
std::unordered_map< std::string, std::any > attributes
Flexible key-value store for group-specific attributes.
Definition
RegionGroup.hpp:35
MayaFlux
Kakshya
RegionGroup
Generated by
1.9.8