|
MorphologicalAttributeFilters
Public API documentation
|
Dense Boolean decisions where true means prune the node. More...
#include <NodeDecisionMasks.hpp>
Public Member Functions | |
| NodePruningMask ()=default | |
| Creates an empty pruning mask. | |
| NodePruningMask (std::vector< bool > decisions) | |
| Creates a pruning mask from explicit decisions. | |
| NodePruningMask (std::size_t size, bool pruneNode) | |
| Creates a pruning mask whose entries share one decision. | |
| std::size_t | size () const noexcept |
| Returns the number of dense node slots. | |
| bool | empty () const noexcept |
| Tests whether the mask contains no decisions. | |
| bool | operator[] (std::size_t index) const |
| Returns one pruning decision. | |
| const std::vector< bool > & | decisions () const noexcept |
| Returns all pruning decisions. | |
Dense Boolean decisions where true means prune the node.
The polarity is the Boolean complement of NodePreservationMask, but the two types require an explicit conversion.
Definition at line 59 of file NodeDecisionMasks.hpp.
|
inlineexplicit |
Creates a pruning mask from explicit decisions.
| decisions | Dense decisions where true prunes the corresponding node. |
Definition at line 71 of file NodeDecisionMasks.hpp.
|
inline |
Creates a pruning mask whose entries share one decision.
| size | Number of dense node slots represented by the mask. |
| pruneNode | Decision assigned to every slot. |
Definition at line 78 of file NodeDecisionMasks.hpp.
Returns all pruning decisions.
Definition at line 94 of file NodeDecisionMasks.hpp.
|
inlinenoexcept |
Tests whether the mask contains no decisions.
Definition at line 84 of file NodeDecisionMasks.hpp.
|
inline |
Returns one pruning decision.
| index | Dense node-slot index. |
Definition at line 91 of file NodeDecisionMasks.hpp.
|
inlinenoexcept |
Returns the number of dense node slots.
Definition at line 81 of file NodeDecisionMasks.hpp.