LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
AbstractDictionaryEntry.cpp
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
12
13namespace Lima
14{
15namespace LinguisticProcessing
16{
17namespace AnalysisDict
18{
19
21 StringsPoolIndex entryId,
22 bool isFinal,
23 bool isEmpty,
24 bool hasLingInfos,
25 bool hasConcatenated,
26 bool hasAccentedForm) :
27 m_entryId(entryId),
28 m_isFinal(isFinal),
29 m_isEmpty(isEmpty),
30 m_hasLingInfos(hasLingInfos),
31 m_hasConcatenated(hasConcatenated),
32 m_hasAccentedForms(hasAccentedForm)
33{}
34
35/*
36AbstractDictionaryEntry(const AbstractDictionaryEntry& de) :
37 m_entryId(de.entryId),
38 m_isFinal(de.isFinal),
39 m_isEmpty(de.isEmpty),
40 m_hasLingInfos(de.hasLingInfos),
41 m_hasConcatenated(de.hasConcatenated),
42 m_hasAccentedForms(de.hasAccentedForm)
43{}
44*/
47
48DictionaryEntry::DictionaryEntry(std::shared_ptr<AbstractDictionaryEntry> delegate) :
49 m_delegate(delegate)
50{}
51
53 m_delegate(dicoEntry.m_delegate)
54{
55 // m_delegate=dicoEntry.m_delegate->clone();
56}
57
59{
60 // delete m_delegate;
61}
62
64{
65 // delete m_delegate;
66 m_delegate = dicoEntry.m_delegate;
67 return *this;
68}
69
70} // AnalysisDict
71} // LinguisticProcessing
72} // Lima
AbstractDictionaryEntry(StringsPoolIndex entryId, bool isFinal, bool isEmpty, bool hasLingInfos, bool hasConcatenated, bool hasAccentedForm)
DictionaryEntry(std::shared_ptr< AbstractDictionaryEntry > delegate)
DictionaryEntry & operator=(const DictionaryEntry &dicoEntry)
NAUTITIA.