LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
ConcatenatedEntry.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// NAUTITIA
7//
8// jys 1-OCT-2002
9//
10// ConcatenatedEntry is the way to access dictionary Concatenated words infos datas.
11// ConcatenatedEntry manages recurent calls to lists of linguistic infos.
12// Dictionaries in memory are specified in NA2002.r2128 JYS
13// Dictionaries iterators are specified in NA2002.r2129 JYS
14
15#ifndef ConcatenatedEntry_H
16#define ConcatenatedEntry_H
17
18#include "DictionaryExport.h"
21
22namespace Lima {
23namespace LinguisticProcessing {
24namespace Dictionary {
25
27
28public:
29
30 // Creates ConcatenatedEntry as an empty structure.
34 unsigned char *startAddr,
35 unsigned char *stringStartAddr);
36
37 // Destroys ConcatenatedEntry
38 virtual ~ConcatenatedEntry();
39
40 // Assignment operator. Copies the specified ConcatenatedEntry
41 // into self. Returns a reference to self.
42 // After assignment, internal iteration pointers of self are reset
43 ConcatenatedEntry& operator=(const ConcatenatedEntry&);
44
45 // Reset iteration pointer
46 ConcatenatedEntry& reset();
47
48 // Returns true if self is empty
49 bool isEmpty() const;
50
51 // Gets the next SingleConcatenatedEntry if exists
52 // This call "increments" the internal SingleConcatenatedEntry pointer.
53 // If there is no SingleConcatenated anymore, an empty SingleConcatenatedEntry is returned
54 SingleConcatenatedEntry nextSingleConcatenated();
55
56protected:
57
58private:
59 unsigned char *m_stringStartAddr;
60 unsigned char *m_startAddr;
61 unsigned char *m_endAddr;
62 unsigned char *m_singleConcatenated;
63
64};
65
66} // closing namespace Dictionary
67} // closing namespace LinguisticProcessing
68} // closing namespace Lima
69
70#endif
#define LIMA_DICTIONARY_EXPORT
NAUTITIA.