LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
poslong.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_POSLONG_H
22#define LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_POSLONG_H
23
24#include <iostream>
25#include <cstdint>
26
27namespace Lima {
28namespace LinguisticProcessing {
29namespace AnalysisDumpers {
30namespace EasyXmlDumper {
31
32struct PosLong
33{
34 uint64_t position;
35 uint64_t longueur;
36 bool operator<(const PosLong& f) const
37 {
38 if (position==f.position) return longueur<f.longueur;
39 return position<f.position;
40 }
41};
42
43} // end namespace EasyXmlDumper
44} // end namespace AnalysisDumpers
45} // end namespace LinguisticProcessings
46} // end namespace Lima
47
48#endif // LIMA_LINGUISTICPROCESSINGS_ANALYSISDUMPERS_EASYXMLDUMPER_POSLONG_H
NAUTITIA.