#include <linguisticProcessing/core/Automaton/constraint.h>
|
| | Constraint () |
| |
| | Constraint (const uint64_t i, const std::string &functionName, const ConstraintAction a, MediaId language, const LimaString &complement=LimaString(), const bool negative=false) |
| |
| | Constraint (const Constraint &) |
| |
| | ~Constraint () |
| |
| Constraint & | operator= (const Constraint &) |
| |
| void | reinit () |
| |
| uint64_t | index () const |
| |
| ConstraintFunction * | functionAddr () const |
| |
| std::string | functionName () const |
| |
| ConstraintAction | action () const |
| |
| LimaString | str () const |
| |
| void | setIndex (const uint64_t) |
| |
| void | setFunctionAddr (ConstraintFunction *f) |
| |
| void | setAction (const ConstraintAction) |
| |
| bool | checkConstraint (const LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &vertex, AnalysisContent &analysis, ConstraintCheckList &constraintCheckList) const |
| | check a constraint
|
| |
| bool | apply (const LinguisticAnalysisStructure::AnalysisGraph &graph, AnalysisContent &analysis, ConstraintCheckList &constraintCheckList, const bool success, RecognizerMatch *result) const |
| | apply an action (only for EXECUTE type of action)
|
| |
|
| static const uint64_t | noindex =UINT_MAX |
| |
Definition at line 37 of file constraint.h.
◆ Constraint() [1/3]
| Lima::LinguisticProcessing::Automaton::Constraint::Constraint |
( |
| ) |
|
◆ Constraint() [2/3]
| Lima::LinguisticProcessing::Automaton::Constraint::Constraint |
( |
const uint64_t |
i, |
|
|
const std::string & |
functionName, |
|
|
const ConstraintAction |
a, |
|
|
MediaId |
language, |
|
|
const LimaString & |
complement = LimaString(), |
|
|
const bool |
negative = false |
|
) |
| |
◆ Constraint() [3/3]
| Lima::LinguisticProcessing::Automaton::Constraint::Constraint |
( |
const Constraint & |
c | ) |
|
◆ ~Constraint()
| Lima::LinguisticProcessing::Automaton::Constraint::~Constraint |
( |
| ) |
|
◆ action()
| ConstraintAction Lima::LinguisticProcessing::Automaton::Constraint::action |
( |
| ) |
const |
|
inline |
◆ apply()
apply an action (only for EXECUTE type of action)
- Parameters
-
| graph | the graph |
| analysis | the current result of the analysis (may be modified) |
| constraintCheckList | the current constraint checklist |
| success | a boolean indicating if the rule succeeded or not (action is conditionned by that) |
| result | the expression recognized by the rule, if found (actions are applied after end of rule) |
- Returns
Definition at line 212 of file constraint.cpp.
◆ checkConstraint()
check a constraint
- Parameters
-
| graph | the graph of the analysis |
| vertex | the current vertex |
| analysis | the current result of the analysis (may be modified) |
| constraintCheckList | the constraint checklist |
- Returns
Definition at line 119 of file constraint.cpp.
◆ functionAddr()
| ConstraintFunction * Lima::LinguisticProcessing::Automaton::Constraint::functionAddr |
( |
| ) |
const |
|
inline |
◆ functionName()
| std::string Lima::LinguisticProcessing::Automaton::Constraint::functionName |
( |
| ) |
const |
◆ index()
| uint64_t Lima::LinguisticProcessing::Automaton::Constraint::index |
( |
| ) |
const |
|
inline |
◆ operator=()
◆ reinit()
| void Lima::LinguisticProcessing::Automaton::Constraint::reinit |
( |
| ) |
|
◆ setAction()
| void Lima::LinguisticProcessing::Automaton::Constraint::setAction |
( |
const ConstraintAction |
a | ) |
|
|
inline |
◆ setFunctionAddr()
| void Lima::LinguisticProcessing::Automaton::Constraint::setFunctionAddr |
( |
ConstraintFunction * |
f | ) |
|
|
inline |
◆ setIndex()
| void Lima::LinguisticProcessing::Automaton::Constraint::setIndex |
( |
const uint64_t |
i | ) |
|
|
inline |
◆ str()
| LimaString Lima::LinguisticProcessing::Automaton::Constraint::str |
( |
| ) |
const |
◆ AutomatonReader
◆ AutomatonWriter
◆ operator<< [1/2]
◆ operator<< [2/2]
◆ operator==
◆ noindex
| const uint64_t Lima::LinguisticProcessing::Automaton::Constraint::noindex =UINT_MAX |
|
static |
The documentation for this class was generated from the following files:
- lima_linguisticprocessing/src/linguisticProcessing/core/Automaton/constraint.h
- lima_linguisticprocessing/src/linguisticProcessing/core/Automaton/constraint.cpp