LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AnalysisDictionaryIterators.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_ANALYSISDICO_ANALYSISDICOITERATORS_H
12#define LIMA_LINGUISTICPROCESSING_ANALYSISDICO_ANALYSISDICOITERATORS_H
13
14#include "AnalysisDictExport.h"
16
18
19namespace Lima
20{
21namespace LinguisticProcessing
22{
23namespace AnalysisDict
24{
25
30{
31public:
32
39 virtual const std::pair<uint64_t, DictionaryEntry> operator*() const = 0;
40
42 virtual bool operator==(const AbstractDictionarySubWordIterator& it) const = 0;
43 virtual bool operator!=(const AbstractDictionarySubWordIterator& it) const = 0;
44
47};
48
68
70{
71public:
76
77 inline const std::pair<uint64_t,DictionaryEntry> operator*() const;
78 inline AbstractDictionarySubWordIterator& operator++(int i);
79 inline bool operator==(const DictionarySubWordIterator& it) const;
80 inline bool operator!=(const DictionarySubWordIterator& it) const;
81private:
83};
84
85inline const std::pair<uint64_t,DictionaryEntry>
87{
88 return m_delegate->operator*();
89}
90
92{
93 return m_delegate->operator++(i);
94}
95
97{
98 return m_delegate->operator==(*(abit.m_delegate));
99}
100
102{
103 return m_delegate->operator!=(*(abit.m_delegate));
104}
105
107{
108public:
113
114 inline const LimaString operator*() const;
115 inline AbstractDictionarySuperWordIterator &operator++(int);
116 inline bool operator==(const DictionarySuperWordIterator& it) const;
117 inline bool operator!=(const DictionarySuperWordIterator& it) const;
118private:
120};
121
123{
124 return m_delegate->operator*();
125}
126
128{
129 return m_delegate->operator++(i);
130}
131
133{
134 return m_delegate->operator==(*(abit.m_delegate));
135}
136
138{
139 return m_delegate->operator==(*(abit.m_delegate));
140}
141
142} // namespace AnalysisDict
143} // namespace LinguisticProcessing
144} // namespace Lima
145
146#endif
#define LIMA_ANALYSISDICT_EXPORT
virtual AbstractDictionarySubWordIterator & operator++(int i)=0
virtual bool operator==(const AbstractDictionarySubWordIterator &it) const =0
virtual bool operator!=(const AbstractDictionarySubWordIterator &it) const =0
virtual AbstractDictionarySubWordIterator * clone() const =0
virtual const std::pair< uint64_t, DictionaryEntry > operator*() const =0
return subword data SubWord data are the ending offset of the subword, \ and the corresponding dictio...
virtual AbstractDictionarySuperWordIterator & operator++(int)=0
virtual bool operator!=(const AbstractDictionarySuperWordIterator &it) const =0
virtual const LimaString operator*() const =0
return superword
virtual bool operator==(const AbstractDictionarySuperWordIterator &it) const =0
virtual AbstractDictionarySuperWordIterator * clone() const =0
NAUTITIA.
QString LimaString
Definition LimaString.h:33