LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
epsilonTransition.h
Go to the documentation of this file.
1// Copyright 2002-2013 CEA LIST
2// SPDX-FileCopyrightText: 2022 CEA LIST <gael.de-chalendar@cea.fr>
3//
4// SPDX-License-Identifier: MIT
5
6/************************************************************************
7 *
8 * @file epsilonTransition.h
9 * @author besancon (besanconr@zoe.cea.fr)
10 * @date Tue Oct 15 2002
11 * copyright Copyright (C) 2002 by CEA LIST
12 * Project Automaton
13 *
14 * @brief representation of epsilon-transitions in the automaton
15 *
16 *
17 ***********************************************************************/
18
19#ifndef EPSILONTRANSITION_H
20#define EPSILONTRANSITION_H
21
22#include "AutomatonExport.h"
23#include "transitionUnit.h"
25
26namespace Lima {
27namespace LinguisticProcessing {
28namespace Automaton {
29
31{
32 public:
35 virtual ~EpsilonTransition();
36 EpsilonTransition& operator = (const EpsilonTransition&);
37
38 EpsilonTransition* clone() const override;
39 EpsilonTransition* create() const override;
40
41 std::string printValue() const override;
42 bool operator== (const TransitionUnit&) const override;
43
44 bool compare(const LinguisticAnalysisStructure::AnalysisGraph& graph,
45 const LinguisticGraphVertex& vertex,
46 AnalysisContent& analysis,
48 const LinguisticAnalysisStructure::MorphoSyntacticData* data) const override;
49
50 bool isEpsilonTransition() const override { return true; }
51 TypeTransition type() const override;
52
53 private:
54
55};
56
57/***********************************************************************/
58// inline functions
59/***********************************************************************/
61 return new EpsilonTransition(*this); }
64
66
67
68inline std::string EpsilonTransition::printValue() const {
69 return "epsilonT";
70}
71
72
73} // namespace end
74} // namespace end
75} // namespace end
76
77#endif
#define LIMA_AUTOMATON_EXPORT
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.