denigma 4.0.0
Loading...
Searching...
No Matches
denigma::classify::SmartShapeClassification Struct Reference

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.)
 

Detailed Description

Result returned by smart-shape classification.

Member Function Documentation

◆ as()

template<typename T >
const T * denigma::classify::SmartShapeClassification::as ( ) const
inlinenoexcept

Returns the payload when the shape classified as the requested type, otherwise null.

Template Parameters
TOne of the alternatives of SmartShapeValue.

Member Data Documentation

◆ shapeType

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.


The documentation for this struct was generated from the following file: