MorphologicalAttributeFilters
Public API documentation
Loading...
Searching...
No Matches
Common.hpp
Go to the documentation of this file.
1#pragma once
2
8namespace mmcfilters {
9
17using NodeId = int; // keep signed to preserve InvalidNode semantics
18
25constexpr NodeId InvalidNode = -1;
26
30inline bool isValidNode(NodeId id) noexcept { return id != InvalidNode; }
31
35inline bool isInvalid(NodeId id) noexcept { return id == InvalidNode; }
36
43constexpr bool PRINT_LOG = false;
44
45} // namespace mmcfilters
bool isValidNode(NodeId id) noexcept
Returns true when id is not the invalid-node sentinel.
Definition Common.hpp:30
bool isInvalid(NodeId id) noexcept
Returns true when id is the invalid-node sentinel.
Definition Common.hpp:35
constexpr NodeId InvalidNode
Sentinel value used to denote an invalid node identifier.
Definition Common.hpp:25
constexpr bool PRINT_LOG
Compile-time switch for optional diagnostic logging.
Definition Common.hpp:43
Owning result for one computed scalar attribute layout and buffer.