LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
starTransition.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 starTransition.h
9 * @author besancon (besanconr@zoe.cea.fr)
10 * @date Mon Nov 18 2002
11 * copyright Copyright (C) 2003 by CEA LIST
12 * Project Automaton
13 *
14 * @brief representation of *-transition in the automaton (matches
15 * any token)
16 *
17 ***********************************************************************/
18
19#ifndef STARTRANSITION_H
20#define STARTRANSITION_H
21
22#include "AutomatonExport.h"
23#include "transitionUnit.h"
24
25namespace Lima {
26namespace LinguisticProcessing {
27namespace Automaton {
28
30{
31 public:
33 StarTransition(const bool keep);
35 StarTransition(const TransitionUnit&); // reduce any transition to star transition
36 virtual ~StarTransition();
37 StarTransition& operator = (const StarTransition&);
38
39 StarTransition* clone() const override;
40 StarTransition* create() const override;
41
42 std::string printValue() const override;
43 bool operator== (const TransitionUnit&) const override;
44
45 bool compare(const LinguisticAnalysisStructure::AnalysisGraph& graph,
46 const LinguisticGraphVertex& vertex,
47 AnalysisContent& analysis,
49 const LinguisticAnalysisStructure::MorphoSyntacticData* data) const override;
50
51 TypeTransition type() const override;
52
53 private:
54
55};
56
57/***********************************************************************/
58// inline functions
59/***********************************************************************/
61 return new StarTransition(*this); }
63 return new StarTransition(); }
64inline TypeTransition StarTransition::type() const { return T_STAR; }
65
66
67} // namespace end
68} // namespace end
69} // namespace end
70
71#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.