Represents a single semantic feature.
More...
#include <SemanticFeature.hpp>
|
enum | Type { NoValue
, BoundedValue
, UnboundedValue
} |
|
Represents a single semantic feature.
Definition at line 14 of file SemanticFeature.hpp.
◆ Type
◆ SemanticFeature() [1/2]
inflection::dialog::SemanticFeature::SemanticFeature |
( |
const ::std::u16string & |
name, |
|
|
Type |
type, |
|
|
const ::std::set<::std::u16string > & |
boundedValues, |
|
|
bool |
aliased |
|
) |
| |
Construct the SemanticFeature from the name, type, bounded values.
- Parameters
-
name | The name of the SemanticFeature. |
type | The type of the SemanticFeature. |
boundedValues | The set of values bounded to the feature. |
aliased | To indicate the feature is an alias. |
◆ SemanticFeature() [2/2]
inflection::dialog::SemanticFeature::SemanticFeature |
( |
const SemanticFeature & |
other | ) |
|
◆ ~SemanticFeature()
inflection::dialog::SemanticFeature::~SemanticFeature |
( |
| ) |
|
|
override |
◆ boundedValue()
static SemanticFeature * inflection::dialog::SemanticFeature::boundedValue |
( |
const ::std::u16string & |
name, |
|
|
const ::std::set<::std::u16string > & |
values |
|
) |
| |
|
static |
Constructs a bounded SemanticFeature that has the provided values.
- Parameters
-
◆ getBoundedValues()
virtual const ::std::set<::std::u16string > & inflection::dialog::SemanticFeature::getBoundedValues |
( |
| ) |
const |
|
virtual |
Returns the possible values of this SemanticFeature. Only bounded SemanticFeatures can have a non-empty set of bounded values.
◆ getName()
virtual const ::std::u16string & inflection::dialog::SemanticFeature::getName |
( |
| ) |
const |
|
virtual |
◆ getType()
virtual Type inflection::dialog::SemanticFeature::getType |
( |
| ) |
const |
|
virtual |
◆ isAliased()
virtual bool inflection::dialog::SemanticFeature::isAliased |
( |
| ) |
const |
|
virtual |
True if this semantic feature can be referenced by the bounded values directly or aliased without specifying the name.
◆ noValue()
static SemanticFeature * inflection::dialog::SemanticFeature::noValue |
( |
const ::std::u16string & |
name | ) |
|
|
static |
◆ operator<=>()
std::weak_ordering inflection::dialog::SemanticFeature::operator<=> |
( |
const SemanticFeature & |
other | ) |
const |
- Parameters
-
other | The semantic feature object to be compared with this. |
◆ operator==()
bool inflection::dialog::SemanticFeature::operator== |
( |
const SemanticFeature & |
other | ) |
const |
Returns true when both objects refer to the same semantic feature, with the same name.
- Parameters
-
other | The semantic feature object to be compared with this. |
- Returns
- True if the two semantic feature are the same, false otherwise.
◆ unboundedValue()
static SemanticFeature * inflection::dialog::SemanticFeature::unboundedValue |
( |
const ::std::u16string & |
name | ) |
|
|
static |
Constructs an unbounded SemanticFeature that has no restrictions on the possible values.
- Parameters
-
The documentation for this class was generated from the following file:
- /home/runner/work/inflection/inflection/inflection/build/inflection_headers/inflection/dialog/SemanticFeature.hpp