Inflection
Morphology Inflection
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Friends | List of all members
inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures Class Reference

A named feature with a possible set of feature values. More...

#include <LanguageGrammarFeatures_GrammarFeatures.hpp>

+ Inheritance diagram for inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures:

Public Member Functions

std::u16string getName () const
 
std::vector<::inflection::lang::features::LanguageGrammarFeatures_FeaturegetValues () const
 
std::weak_ordering operator<=> (const LanguageGrammarFeatures_GrammarFeatures &other) const
 
 ~LanguageGrammarFeatures_GrammarFeatures () override
 
- Public Member Functions inherited from inflection::Object
virtual ::std::u16string toString () const
 
virtual ~Object ()
 

Protected Member Functions

 LanguageGrammarFeatures_GrammarFeatures (const std::u16string &name, const std::vector<::inflection::lang::features::LanguageGrammarFeatures_Feature > &values)
 

Friends

class LanguageGrammarFeatures
 

Detailed Description

A named feature with a possible set of feature values.

Grammatical features are usually a set of possible words that need to be in grammatical agreement with semantic concepts. Frequently they are articles, prepositions and measure words. These values are typically based (constrained) on the grammatical category values of the nouns.

Definition at line 19 of file LanguageGrammarFeatures_GrammarFeatures.hpp.

Constructor & Destructor Documentation

◆ LanguageGrammarFeatures_GrammarFeatures()

inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::LanguageGrammarFeatures_GrammarFeatures ( const std::u16string &  name,
const std::vector<::inflection::lang::features::LanguageGrammarFeatures_Feature > &  values 
)
protected

Construct a grammar features with name, and values.

Parameters
nameThe name of the grammar features.
valuesThe list of features.

◆ ~LanguageGrammarFeatures_GrammarFeatures()

inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::~LanguageGrammarFeatures_GrammarFeatures ( )
override

Destructor

Member Function Documentation

◆ getName()

std::u16string inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::getName ( ) const

The name of the grammatical feature.

◆ getValues()

std::vector<::inflection::lang::features::LanguageGrammarFeatures_Feature > inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::getValues ( ) const

If this feature is bounded, these are the valid values.

◆ operator<=>()

std::weak_ordering inflection::lang::features::LanguageGrammarFeatures_GrammarFeatures::operator<=> ( const LanguageGrammarFeatures_GrammarFeatures other) const

String compares the order of the name.

Parameters
otherThe object to be compared with this.

Friends And Related Symbol Documentation

◆ LanguageGrammarFeatures

friend class LanguageGrammarFeatures
friend

Definition at line 60 of file LanguageGrammarFeatures_GrammarFeatures.hpp.


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