Inflection
Morphology Inflection
|
Represents an ontological label with a value. More...
#include <SemanticValue.hpp>
Public Member Functions | |
const ::std::u16string & | getValue () const |
const ::std::u16string & | getLabel () const |
::std::u16string | toString () const override |
bool | operator== (const SemanticValue &other) const |
std::strong_ordering | operator<=> (const SemanticValue &) const |
SemanticValue (const ::std::u16string &label, const ::std::u16string &string) | |
~SemanticValue () override | |
![]() | |
virtual ::std::u16string | toString () const |
virtual | ~Object () |
Represents an ontological label with a value.
Definition at line 14 of file SemanticValue.hpp.
inflection::dialog::SemanticValue::SemanticValue | ( | const ::std::u16string & | label, |
const ::std::u16string & | string | ||
) |
Construct a SemanticValue by a label and a string value.
|
override |
Destructor
|
inline |
The semantic label (e.g. ontology node name)
Definition at line 67 of file SemanticValue.hpp.
|
inline |
The string value associated with a semantic label
Definition at line 61 of file SemanticValue.hpp.
std::strong_ordering inflection::dialog::SemanticValue::operator<=> | ( | const SemanticValue & | ) | const |
String compares the order of the label and value of this pair.
bool inflection::dialog::SemanticValue::operator== | ( | const SemanticValue & | other | ) | const |
String compares the values of this pair.
|
override |
Returns a string representation of this label-value pair.