Inflection
Morphology Inflection
Loading...
Searching...
No Matches
Public Member Functions | List of all members
inflection::dialog::InflectableStringConcept Class Reference

Provides a way to format a word with additional grammatical category values or semantic features of a word for a given language. More...

#include <InflectableStringConcept.hpp>

+ Inheritance diagram for inflection::dialog::InflectableStringConcept:

Public Member Functions

SpeakableStringgetFeatureValue (const SemanticFeature &feature) const override
 
bool isExists () const override
 
::std::u16string toString () const override
 
SpeakableStringtoSpeakableString () const override
 
InflectableStringConceptclone () const override
 
 InflectableStringConcept (const SemanticFeatureModel *model, const SpeakableString &value)
 
 InflectableStringConcept (const InflectableStringConcept &other)
 
 ~InflectableStringConcept () override
 
- Public Member Functions inherited from inflection::dialog::SemanticFeatureConceptBase
virtual const SemanticFeatureModelgetModel () const
 
virtual const ::std::u16string * getConstraint (const SemanticFeature &feature) const
 
virtual bool hasConstraint (const SemanticFeature &feature) const
 
virtual void putConstraint (const SemanticFeature &feature, ::std::u16string_view featureValue)
 
virtual void putConstraintByName (::std::u16string_view featureName, ::std::u16string_view featureValue)
 
virtual void clearConstraint (const SemanticFeature &feature)
 
virtual void clearConstraintByName (::std::u16string_view featureName)
 
virtual void reset ()
 
virtual SpeakableStringgetFeatureValueByName (::std::u16string_view featureName) const
 
 SemanticFeatureConceptBase (const SemanticFeatureModel *model)
 
 SemanticFeatureConceptBase (const SemanticFeatureConceptBase &other)
 
 ~SemanticFeatureConceptBase () override
 
- Public Member Functions inherited from inflection::dialog::SpeakableConcept
 ~SpeakableConcept () override
 
- Public Member Functions inherited from inflection::Object
virtual ::std::u16string toString () const
 
virtual ~Object ()
 

Additional Inherited Members

- Protected Member Functions inherited from inflection::dialog::SemanticFeatureConceptBase
virtual const SemanticFeaturegetSpeakFeature () const
 
- Protected Attributes inherited from inflection::dialog::SemanticFeatureConceptBase
::std::map< SemanticFeature, ::std::u16string > constraints { }
 

Detailed Description

Provides a way to format a word with additional grammatical category values or semantic features of a word for a given language.

Definition at line 16 of file InflectableStringConcept.hpp.

Constructor & Destructor Documentation

◆ InflectableStringConcept() [1/2]

inflection::dialog::InflectableStringConcept::InflectableStringConcept ( const SemanticFeatureModel model,
const SpeakableString value 
)

Constructs a concept given a semantic feature model and a speakable string

Parameters
model- The semantic feature model required to initialize the concept.
value- The speakable string to convert to a concept

◆ InflectableStringConcept() [2/2]

inflection::dialog::InflectableStringConcept::InflectableStringConcept ( const InflectableStringConcept other)

Copy constructor

◆ ~InflectableStringConcept()

inflection::dialog::InflectableStringConcept::~InflectableStringConcept ( )
override

Destructor

Member Function Documentation

◆ clone()

InflectableStringConcept * inflection::dialog::InflectableStringConcept::clone ( ) const
overridevirtual

Clones the concept

Returns
concept

Implements inflection::dialog::SemanticFeatureConceptBase.

◆ getFeatureValue()

SpeakableString * inflection::dialog::InflectableStringConcept::getFeatureValue ( const SemanticFeature feature) const
overridevirtual

Returns the Speakable String representing the given semantic feature.

Parameters
feature- the semantic feature for which the value is requested.
Returns
Speakable String

Implements inflection::dialog::SemanticFeatureConceptBase.

◆ isExists()

bool inflection::dialog::InflectableStringConcept::isExists ( ) const
overridevirtual
Returns
true when the value is empty.

Implements inflection::dialog::SemanticFeatureConceptBase.

◆ toSpeakableString()

SpeakableString * inflection::dialog::InflectableStringConcept::toSpeakableString ( ) const
overridevirtual

Converts the concept to a Speakable String

Returns
Speakable String

Implements inflection::dialog::SpeakableConcept.

◆ toString()

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

Return a string helpful for debugging purposes.


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