Represents a display value with constraint values.  
 More...
#include <DisplayValue.hpp>
Represents a display value with constraint values. 
Typically a set of these are contained in SemanticFeatureModel_DisplayData. The display value is valid for the constraints provided as semantic features. 
- See also
- SemanticFeatureConceptBase 
Definition at line 18 of file DisplayValue.hpp.
◆ DisplayValue() [1/3]
      
        
          | inflection::dialog::DisplayValue::DisplayValue | ( | const ::std::u16string & | displayString, | 
        
          |  |  | const ::std::map< SemanticFeature, ::std::u16string > & | constraintMap | 
        
          |  | ) |  |  | 
      
 
Construct a display value with a string and the associated constraints. 
- Parameters
- 
  
    | displayString | A value with no speak information. |  | constraintMap | All constraints that match the displayString. |  
 
 
 
◆ DisplayValue() [2/3]
  
  | 
        
          | inflection::dialog::DisplayValue::DisplayValue | ( | const ::std::u16string & | value | ) |  |  | explicit | 
 
Construct a display value with a string and not constraints. 
- Parameters
- 
  
    | value | A value with no speak information. |  
 
 
 
◆ DisplayValue() [3/3]
◆ ~DisplayValue()
  
  | 
        
          | inflection::dialog::DisplayValue::~DisplayValue | ( |  | ) |  |  | override | 
 
 
◆ getConstraintMap()
Returns all possible constraint values for this display value. 
 
 
◆ getDisplayString()
  
  | 
        
          | virtual const ::std::u16string & inflection::dialog::DisplayValue::getDisplayString | ( |  | ) | const |  | virtual | 
 
Returns the display value. 
 
 
◆ getFeatureValue()
  
  | 
        
          | virtual const ::std::u16string * inflection::dialog::DisplayValue::getFeatureValue | ( | const SemanticFeature & | feature | ) | const |  | virtual | 
 
Given the semantic feature, return the value 
- Parameters
- 
  
    | feature | The semantic feature (constraint) to match. |  
 
- Returns
- null if not found 
 
 
◆ operator()()
  
  | 
        
          | std::size_t inflection::dialog::DisplayValue::operator() | ( | const DisplayValue & | displayValue | ) | const |  | noexcept | 
 
Generates a hash code compatible with std::hash for the displayValue. 
- Parameters
- 
  
    | displayValue | The display value object to generate the hash value. |  
 
- Returns
- the hash code compatible with std::hash for the displayValue. 
 
 
◆ operator==()
      
        
          | bool inflection::dialog::DisplayValue::operator== | ( | const DisplayValue & | o | ) | const | 
      
 
Returns true when both objects refer to the same display string, have the same semantic features, and have the same constraints. 
- Parameters
- 
  
    | o | The display value object to be compared with this. |  
 
- Returns
- True if the two display value are the same, false otherwise. 
 
 
◆ SemanticFeatureModel
The documentation for this class was generated from the following file:
- /home/runner/work/inflection/inflection/inflection/build/inflection_headers/inflection/dialog/DisplayValue.hpp