|
denigma 4.0.0
|
Result returned by smart-shape classification. More...
#include <smartshapes.h>
Public Member Functions | |
| template<typename T > | |
| const T * | as () const noexcept |
| Returns the payload when the shape classified as the requested type, otherwise null. | |
Public Attributes | |
| musx::dom::others::SmartShape::ShapeType | shapeType {} |
| The source shape's type. | |
| SmartShapeValue | value {} |
| What the shape means. (See SmartShapeValue.) | |
Result returned by smart-shape classification.
|
inlinenoexcept |
Returns the payload when the shape classified as the requested type, otherwise null.
| T | One of the alternatives of SmartShapeValue. |
| musx::dom::others::SmartShape::ShapeType denigma::classify::SmartShapeClassification::shapeType {} |
The source shape's type.
Meaningful for any valid shape, including one whose value is std::monostate, but left at its default when the shape itself was null or invalid.