|
MorphologicalAttributeFilters
Public API documentation
|
Owning result for one computed scalar attribute layout and buffer. More...
#include <AttributeResultTypes.hpp>

Public Member Functions | |
| ComputedAttributeData (AttributeNames attrNames, std::vector< Real > buffer, NodeIdSpace outputSpace=NodeIdSpace::MORPHOLOGICAL_TREE) | |
| Takes ownership of a scalar-attribute layout and its flat buffer. | |
| ComputedAttributeData (const ComputedAttributeData &)=delete | |
| ComputedAttributeData & | operator= (const ComputedAttributeData &)=delete |
| ComputedAttributeData (ComputedAttributeData &&) noexcept=default | |
| Transfers ownership of the layout, buffer, and node-id-space marker. | |
| ComputedAttributeData & | operator= (ComputedAttributeData &&)=delete |
| AttributeNames & | attributeNames () noexcept |
| Returns the mutable attribute layout. | |
| const AttributeNames & | attributeNames () const noexcept |
| Returns the immutable attribute layout. | |
| std::vector< Real > & | values () noexcept |
| Returns the mutable flat attribute buffer. | |
| const std::vector< Real > & | values () const noexcept |
| Returns the immutable flat attribute buffer. | |
Public Attributes | |
| AttributeNames | first |
Layout used to interpret second; kept public for tuple-like access. | |
| std::vector< Real > | second |
Flat per-node attribute buffer indexed through first. | |
| NodeIdSpace | nodeIdSpace = NodeIdSpace::MORPHOLOGICAL_TREE |
Node-id domain used by the rows of second. | |
Owning result for one computed scalar attribute layout and buffer.
A computed attribute result is defined by three pieces of information:
NodeIdSpace in which the buffer indices are expressed.The result is move-only on purpose: the public API treats each computed buffer as having a single owner. Internal dependency reuse is implemented by detail/AttributeDependencyCache.hpp, so ordinary callers do not need to traffic in borrowed cache views.
The public fields remain named first and second so existing direct uses and structured bindings keep working naturally.
Definition at line 33 of file AttributeResultTypes.hpp.
|
inline |
Takes ownership of a scalar-attribute layout and its flat buffer.
| attrNames | Layout that maps attributes to per-node offsets. |
| buffer | Attribute values stored in node-major order. |
| outputSpace | Node-id domain used by the buffer rows. |
Definition at line 50 of file AttributeResultTypes.hpp.
|
inlinenoexcept |
Returns the immutable attribute layout.
Definition at line 65 of file AttributeResultTypes.hpp.
|
inlinenoexcept |
Returns the mutable attribute layout.
Definition at line 62 of file AttributeResultTypes.hpp.
|
inlinenoexcept |
Returns the immutable flat attribute buffer.
Definition at line 71 of file AttributeResultTypes.hpp.
|
inlinenoexcept |
Returns the mutable flat attribute buffer.
Definition at line 68 of file AttributeResultTypes.hpp.
| AttributeNames mmcfilters::ComputedAttributeData< Real >::first |
Layout used to interpret second; kept public for tuple-like access.
Definition at line 35 of file AttributeResultTypes.hpp.
| NodeIdSpace mmcfilters::ComputedAttributeData< Real >::nodeIdSpace = NodeIdSpace::MORPHOLOGICAL_TREE |
Node-id domain used by the rows of second.
Definition at line 41 of file AttributeResultTypes.hpp.
| std::vector<Real> mmcfilters::ComputedAttributeData< Real >::second |
Flat per-node attribute buffer indexed through first.
Definition at line 38 of file AttributeResultTypes.hpp.