|
mmcfilters
Public API documentation
|
Non-throwing validation result returned by edit-session checks. More...
#include <MorphologicalTree.hpp>
Public Member Functions | |
| operator bool () const noexcept | |
| Allows validation results to be tested directly in boolean contexts. | |
Public Attributes | |
| bool | ok = false |
| True when the checked tree topology satisfies the validation contract. | |
| std::string | message |
| Human-readable diagnostic, especially useful when ok is false. | |
Non-throwing validation result returned by edit-session checks.
ok carries the success flag and message carries a diagnostic when validation fails. The explicit boolean conversion mirrors ok so callers can write compact checks while still preserving the detailed message.
Definition at line 53 of file MorphologicalTree.hpp.
|
inlineexplicitnoexcept |
Allows validation results to be tested directly in boolean contexts.
Definition at line 63 of file MorphologicalTree.hpp.
| std::string mmcfilters::TreeValidationResult::message |
Human-readable diagnostic, especially useful when ok is false.
Definition at line 58 of file MorphologicalTree.hpp.
| bool mmcfilters::TreeValidationResult::ok = false |
True when the checked tree topology satisfies the validation contract.
Definition at line 55 of file MorphologicalTree.hpp.