denigma 4.0.0
Loading...
Searching...
No Matches
denigma::classify::expression::RunClassification Struct Reference

Classification of one logical run within an expression. More...

#include <expressions.h>

Public Member Functions

template<typename T >
const T * as () const noexcept
 Returns the payload as T when it contains that type.
 

Public Attributes

musx::util::EnigmaTextChunk chunk
 Parsed Finale text chunk represented by this run.
 
ClassificationBasis basis { ClassificationBasis::FallbackToGenericText }
 Evidence used to select value.
 
RunValue value {}
 Semantic payload for this run.
 

Detailed Description

Classification of one logical run within an expression.

Member Function Documentation

◆ as()

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

Returns the payload as T when it contains that type.

Template Parameters
TRequested payload type.
Returns
A pointer to the payload, or nullptr when the active alternative differs.

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