Inflection
Morphology Inflection
Loading...
Searching...
No Matches
inflection::dialog::SemanticValue Class Reference

Represents an ontological label with a value. More...

#include <SemanticValue.hpp>

Inheritance diagram for inflection::dialog::SemanticValue:

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
Public Member Functions inherited from inflection::Object
virtual::std::u16string toString () const
virtual ~Object ()

Detailed Description

Represents an ontological label with a value.

Definition at line 14 of file SemanticValue.hpp.

Constructor & Destructor Documentation

◆ SemanticValue()

inflection::dialog::SemanticValue::SemanticValue ( const ::std::u16string & label,
const ::std::u16string & string )

Construct a SemanticValue by a label and a string value.

◆ ~SemanticValue()

inflection::dialog::SemanticValue::~SemanticValue ( )
override

Destructor

Member Function Documentation

◆ getLabel()

const::std::u16string & inflection::dialog::SemanticValue::getLabel ( ) const
inline

The semantic label (e.g. ontology node name)

Definition at line 67 of file SemanticValue.hpp.

◆ getValue()

const::std::u16string & inflection::dialog::SemanticValue::getValue ( ) const
inline

The string value associated with a semantic label

Definition at line 61 of file SemanticValue.hpp.

◆ operator<=>()

std::strong_ordering inflection::dialog::SemanticValue::operator<=> ( const SemanticValue & ) const

String compares the order of the label and value of this pair.

◆ operator==()

bool inflection::dialog::SemanticValue::operator== ( const SemanticValue & other) const

String compares the values of this pair.

◆ toString()

::std::u16string inflection::dialog::SemanticValue::toString ( ) const
override

Returns a string representation of this label-value pair.


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