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

test the length of the inflected form of the word More...

#include <linguisticProcessing/core/Automaton/basicConstraintFunctions.h>

Inheritance diagram for Lima::LinguisticProcessing::Automaton::LengthInInterval:
Lima::LinguisticProcessing::Automaton::ConstraintFunction

Public Member Functions

 LengthInInterval (MediaId language, const LimaString &complement=LimaString())
 
 ~LengthInInterval ()
 
bool operator() (const LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &v, AnalysisContent &analysis) const override
 unary constraint function : the constraint only applies on one vertices in the graph (the graph is also given as a parameter).
 
- 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() (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)
 
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

test the length of the inflected form of the word

Definition at line 102 of file basicConstraintFunctions.h.

Constructor & Destructor Documentation

◆ LengthInInterval()

Lima::LinguisticProcessing::Automaton::LengthInInterval::LengthInInterval ( MediaId  language,
const LimaString &  complement = LimaString() 
)

Definition at line 251 of file basicConstraintFunctions.cpp.

◆ ~LengthInInterval()

Lima::LinguisticProcessing::Automaton::LengthInInterval::~LengthInInterval ( )
inline

Definition at line 107 of file basicConstraintFunctions.h.

Member Function Documentation

◆ operator()()

bool Lima::LinguisticProcessing::Automaton::LengthInInterval::operator() ( const LinguisticAnalysisStructure::AnalysisGraph &  ,
const LinguisticGraphVertex &  ,
AnalysisContent &   
) const
overridevirtual

unary constraint function : the constraint only applies on one vertices in the graph (the graph is also given as a parameter).

Function is not pure virtual because it can be unary or binary.

Returns
true if the constraint is verified, false otherwise

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

Definition at line 274 of file basicConstraintFunctions.cpp.


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