Template Class OpAttrMap#
Defined in File op.h
Class Documentation#
-
template<typename ValueType>
class OpAttrMap# Typed live view of an Op attribute column.
Copies share the retained mutable column and observe later registrations, replacements, resets, and growth. Values are returned by value, never as references into a backing array. Registration is not synchronized with readers.
- Template Parameters:
ValueType – The attribute value type.
Public Functions
-
inline int count(const Op &op) const#
Check whether an operator has a value in this column.
- Parameters:
op – The operator.
- Returns:
1 if present, 0 otherwise.
-
inline ValueType operator[](const Op &op) const#
Look up an operator’s attribute, raising InternalError if absent.
- Parameters:
op – The operator.
- Returns:
The value converted to ValueType.