LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
Lima::LinguisticProcessing::SemanticAnalysis::SaveSemanticRelation Class Reference

#include <linguisticProcessing/core/SemanticAnalysis/ConstraintFunction.h>

Inheritance diagram for Lima::LinguisticProcessing::SemanticAnalysis::SaveSemanticRelation:
Lima::LinguisticProcessing::Automaton::ConstraintFunction

Public Member Functions

 SaveSemanticRelation (MediaId language, const LimaString &complement=LimaString())
 ~SaveSemanticRelation ()
bool operator() (AnalysisContent &analysis) const override
 zero-ary constraint function : applies the function without a vertex indication (used for actions, not constraints -> applied only at end, when a match is found)
Public Member Functions inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
virtual ~ConstraintFunction ()
virtual bool operator() (const LinguisticAnalysisStructure::AnalysisGraph &, const LinguisticGraphVertex &, const LinguisticGraphVertex &, AnalysisContent &) const
 binary constraint function : the constraint only applies on two vertices in the graph (the graph is also given as a parameter).
virtual bool operator() (const LinguisticAnalysisStructure::AnalysisGraph &, const LinguisticGraphVertex &, AnalysisContent &) const
 unary constraint function : the constraint only applies on one vertices in the graph (the graph is also given as a parameter).
virtual bool operator() (RecognizerMatch &, AnalysisContent &) const
 zero-ary constraint function : applies the function without a vertex indication (used for actions, not constraints -> applied only at end, when a match is found: uses the result of the match
virtual bool actionNeedsRecognizedExpression ()
const LimaString & getComplementString ()
unsigned char getLanguage ()

Additional Inherited Members

Protected Member Functions inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
 ConstraintFunction (MediaId language, const LimaString &complement=LimaString())
Protected Attributes inherited from Lima::LinguisticProcessing::Automaton::ConstraintFunction
MediaId m_language_id
LimaString m_complement

Detailed Description

Definition at line 55 of file ConstraintFunction.h.

Constructor & Destructor Documentation

◆ SaveSemanticRelation()

Lima::LinguisticProcessing::SemanticAnalysis::SaveSemanticRelation::SaveSemanticRelation ( MediaId language,
const LimaString & complement = LimaString() )

Definition at line 74 of file ConstraintFunction.cpp.

◆ ~SaveSemanticRelation()

Lima::LinguisticProcessing::SemanticAnalysis::SaveSemanticRelation::~SaveSemanticRelation ( )
inline

Definition at line 60 of file ConstraintFunction.h.

Member Function Documentation

◆ operator()()

bool Lima::LinguisticProcessing::SemanticAnalysis::SaveSemanticRelation::operator() ( AnalysisContent & ) const
overridevirtual

zero-ary constraint function : applies the function without a vertex indication (used for actions, not constraints -> applied only at end, when a match is found)

Returns
true if the action of the function succeeded, false otherwise

Reimplemented from Lima::LinguisticProcessing::Automaton::ConstraintFunction.

Definition at line 80 of file ConstraintFunction.cpp.


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