LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
MorphoSyntacticDataUtils.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
* Copyright (C) 2004-2012 by CEA LIST *
8
* *
9
***************************************************************************/
10
11
#ifndef LIMA_LINGUISTICPROCESSING_LINGUISTICANALYSISSTRUCTUREMORPHOSYNTACTICDATAUTILS_H
12
#define LIMA_LINGUISTICPROCESSING_LINGUISTICANALYSISSTRUCTUREMORPHOSYNTACTICDATAUTILS_H
13
14
#include "
LinguisticAnalysisStructureExport.h
"
15
#include "
common/LimaCommon.h
"
16
#include "
linguisticProcessing/common/PropertyCode/PropertyAccessor.h
"
17
#include "
MorphoSyntacticData.h
"
18
19
namespace
Lima
{
20
21
namespace
LinguisticProcessing {
22
23
namespace
LinguisticAnalysisStructure {
24
25
class
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
ltString
26
{
27
public
:
28
bool
operator()(
const
LinguisticElement
& elem1,
const
LinguisticElement
& elem2)
const
;
29
};
30
31
class
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
ltProperty
32
{
33
public
:
34
ltProperty
(
const
Common::PropertyCode::PropertyAccessor
& prop);
35
bool
operator()(
const
LinguisticElement
& elem1,
36
const
LinguisticElement
& elem2)
const
;
37
private
:
38
Common::PropertyCode::PropertyAccessor
m_prop;
39
};
40
41
class
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
ltNormProperty
42
{
43
public
:
44
ltNormProperty
(
const
Common::PropertyCode::PropertyAccessor
& prop);
45
bool
operator()(
const
LinguisticElement
& elem1,
46
const
LinguisticElement
& elem2)
const
;
47
private
:
48
Common::PropertyCode::PropertyAccessor
m_prop;
49
};
50
51
class
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
CheckEqualPropertyPredicate
52
{
53
public
:
54
CheckEqualPropertyPredicate
(
const
Common::PropertyCode::PropertyAccessor
& prop,
55
LinguisticCode
value);
56
bool
operator()(
const
LinguisticElement
& elem)
const
;
57
private
:
58
const
Common::PropertyCode::PropertyAccessor
m_property;
59
LinguisticCode
m_value;
60
};
61
62
class
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
CheckDifferentPropertyPredicate
63
{
64
public
:
65
CheckDifferentPropertyPredicate
(
const
Common::PropertyCode::PropertyAccessor
& prop,
66
LinguisticCode
value);
67
bool
operator()(
const
LinguisticElement
& elem)
const
;
68
private
:
69
Common::PropertyCode::PropertyAccessor
m_property;
70
LinguisticCode
m_value;
71
};
72
73
class
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
IncludePropertyPredicate
74
{
75
public
:
76
IncludePropertyPredicate
(
const
Common::PropertyCode::PropertyAccessor
& prop,
77
const
std::set<LinguisticCode>& value);
78
bool
operator()(
const
LinguisticElement
& elem)
const
;
79
private
:
80
IncludePropertyPredicate
& operator=(
const
IncludePropertyPredicate
&) {
return
*
this
;}
81
Common::PropertyCode::PropertyAccessor
m_property;
82
const
std::set<LinguisticCode>& m_values;
83
};
84
85
class
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
ExcludePropertyPredicate
86
{
87
public
:
88
ExcludePropertyPredicate
(
const
Common::PropertyCode::PropertyAccessor
& prop,
89
const
std::set<LinguisticCode>& value);
90
ExcludePropertyPredicate
(
const
ExcludePropertyPredicate
& epp);
91
92
bool
operator()(
const
LinguisticElement
& elem)
const
;
93
94
private
:
95
ExcludePropertyPredicate
& operator=(
const
ExcludePropertyPredicate
&) {
return
*
this
;}
96
Common::PropertyCode::PropertyAccessor
m_property;
97
const
std::set<LinguisticCode>& m_values;
98
};
99
100
101
}
// LinguisticAnalysisStructure
102
103
}
// LinguisticProcessing
104
105
}
// Lima
106
107
#endif
LimaCommon.h
LinguisticAnalysisStructureExport.h
LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
#define LIMA_LINGUISTICANALYSISSTRUCTURE_EXPORT
Definition
LinguisticAnalysisStructureExport.h:27
MorphoSyntacticData.h
PropertyAccessor.h
Lima::Common::PropertyCode::PropertyAccessor
Provide function to read write and check a property.
Definition
PropertyAccessor.h:31
Lima::LinguisticCode
Definition
StdBitset.h:23
Lima::LinguisticProcessing::LinguisticAnalysisStructure::CheckDifferentPropertyPredicate
Definition
MorphoSyntacticDataUtils.h:63
Lima::LinguisticProcessing::LinguisticAnalysisStructure::CheckEqualPropertyPredicate
Definition
MorphoSyntacticDataUtils.h:52
Lima::LinguisticProcessing::LinguisticAnalysisStructure::ExcludePropertyPredicate
Definition
MorphoSyntacticDataUtils.h:86
Lima::LinguisticProcessing::LinguisticAnalysisStructure::IncludePropertyPredicate
Definition
MorphoSyntacticDataUtils.h:74
Lima::LinguisticProcessing::LinguisticAnalysisStructure::ltNormProperty
Definition
MorphoSyntacticDataUtils.h:42
Lima::LinguisticProcessing::LinguisticAnalysisStructure::ltProperty
Definition
MorphoSyntacticDataUtils.h:32
Lima::LinguisticProcessing::LinguisticAnalysisStructure::ltString
Definition
MorphoSyntacticDataUtils.h:26
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
Lima::LinguisticProcessing::LinguisticAnalysisStructure::LinguisticElement
Definition
MorphoSyntacticData.h:46
lima_linguisticprocessing
src
linguisticProcessing
core
LinguisticAnalysisStructure
MorphoSyntacticDataUtils.h
Generated by
1.9.8