LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
starTransition.cpp
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.cpp
9* Author : Besancon Romaric (besanconr@zoe.cea.fr)
10* Created on : Mon Nov 18 2002
11* Copyright : (c) 2002 by CEA
12* Version : $Id$
13*
14*************************************************************************/
15
16#include "starTransition.h"
18#include <iostream>
19#include <fstream>
20
21using namespace std;
23
24namespace Lima {
25namespace LinguisticProcessing {
26namespace Automaton {
27
28/***********************************************************************/
29// constructors
30/***********************************************************************/
41
42/***********************************************************************/
43// destructor
44/***********************************************************************/
46
47/***********************************************************************/
48// assignment operator
49/***********************************************************************/
51 if (this != &t) {
53 }
54 return *this;
55}
56
57/***********************************************************************/
58// comparison tests
59/***********************************************************************/
61 if ( type() == t.type() ) {
62 return compareProperties(t);
63 }
64 else { return false; }
65}
66
69 const LinguisticGraphVertex& /*vertex*/,
70 AnalysisContent& /*analysis*/,
73{
74 return true;
75}
76
77std::string StarTransition::printValue() const {
78 return "starT";
79}
80
81} // namespace end
82} // namespace end
83} // namespace end
LinguisticGraph::vertex_descriptor LinguisticGraphVertex
Holds all data that pass through the ProcessUnits Analysis data are shared pointers,...
StarTransition & operator=(const StarTransition &)
bool operator==(const TransitionUnit &) const override
bool compare(const LinguisticAnalysisStructure::AnalysisGraph &graph, const LinguisticGraphVertex &vertex, AnalysisContent &analysis, const LinguisticAnalysisStructure::Token *token, const LinguisticAnalysisStructure::MorphoSyntacticData *data) const override
comparison of the transition with a token : can use the graph and vertex info, associated with genera...
bool compareProperties(const TransitionUnit &t) const
An AnalysisData containing a LinguisticGraph with a language and an id.
NAUTITIA.
STL namespace.