LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
relation.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
21#ifndef LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_RELATION_H
22#define LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_RELATION_H
23
24#include "chaine.h"
25
26#include <string>
27#include <iostream>
28#include <cstdint>
29
30namespace Lima {
31namespace LinguisticProcessing {
32namespace AnalysisDumpers {
33namespace EasyXmlDumper {
34
36{
37
39 srcVertex(0),
40 tgtVertex(0),
41 doFollow(true),
43 {};
44
45 uint64_t srcVertex;
46 uint64_t tgtVertex;
48
54 std::string type;
55 bool operator<(const Relation& r) const
56 {
57 if (srcVertex!=r.srcVertex) return srcVertex<r.srcVertex;
58 if (tgtVertex!=r.tgtVertex) return tgtVertex<r.tgtVertex;
59 return type<r.type;
60 }
61};
62
63
64} // end namespace EasyXmlDumper
65} // end namespace AnalysisDumpers
66} // end namespace LinguisticProcessings
67} // end namespace Lima
68
69#endif // LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_RELATION_H
represents a chain
NAUTITIA.
uint64_t secondaryVertex
to store the third element of a 3-ary relation, currently only the source of the COORD2 relation.
Definition relation.h:52