LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
lexiconCompoundElement.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) 2006 by CEA *
8
* author Olivier MESNARD olivier.mesnard@cea.fr *
9
* *
10
* lexiconCompoundElement.cpp - description *
11
* common definition to implement lexiconIdGenerator and lexiconIdAccessor *
12
*****************************************************************************/
13
14
#include "
common/FsaAccess/lexiconCompoundElement.h
"
15
16
namespace
Lima
{
17
namespace
Common {
18
namespace
FsaAccess {
19
20
std::ostream&
operator <<
(std::ostream& os,
21
const
DepCompound
& cmp) {
22
cmp.
print
(os);
23
return
os;
24
}
25
26
std::ostream&
operator <<
(std::ostream& os,
27
const
ExtCompound
& ext) {
28
ext.
print
(os);
29
return
os;
30
}
31
32
DepCompound::DepCompound
(
const
DepCompound
& dc) :
33
std
::pair<uint64_t, uint64_t>(dc)
34
{
35
}
36
37
DepCompound
&
DepCompound::operator=
(
const
DepCompound
& dc)
38
{
39
first=dc.first;
40
second=dc.second;
41
return
*
this
;
42
}
43
44
void
DepCompound::print
( std::ostream& os)
const
{
45
os <<
"("
<<
getHead
() <<
","
<<
getExt
() <<
")"
;
46
}
47
48
ExtCompound::ExtCompound
(
const
ExtCompound
& dc) :
49
std
::pair<uint64_t, uint64_t>(dc)
50
{
51
}
52
53
ExtCompound
&
ExtCompound::operator=
(
const
ExtCompound
& dc)
54
{
55
first=dc.first;
56
second=dc.second;
57
return
*
this
;
58
}
59
60
void
ExtCompound::print
( std::ostream& os)
const
{
61
os <<
"("
<<
getFirst
() <<
","
<<
getNext
() <<
")"
;
62
}
63
64
}
// namespace FsaAccess
65
}
// namespace Common
66
}
// namespace Lima
Lima::Common::FsaAccess::DepCompound
Definition
lexiconCompoundElement.h:23
Lima::Common::FsaAccess::DepCompound::print
void print(std::ostream &os) const
Definition
lexiconCompoundElement.cpp:44
Lima::Common::FsaAccess::DepCompound::DepCompound
DepCompound()
Definition
lexiconCompoundElement.h:26
Lima::Common::FsaAccess::DepCompound::getHead
uint64_t getHead() const
Definition
lexiconCompoundElement.h:32
Lima::Common::FsaAccess::DepCompound::operator=
DepCompound & operator=(const DepCompound &dc)
Definition
lexiconCompoundElement.cpp:37
Lima::Common::FsaAccess::DepCompound::getExt
uint64_t getExt() const
Definition
lexiconCompoundElement.h:33
Lima::Common::FsaAccess::ExtCompound
Definition
lexiconCompoundElement.h:51
Lima::Common::FsaAccess::ExtCompound::getFirst
uint64_t getFirst() const
Definition
lexiconCompoundElement.h:60
Lima::Common::FsaAccess::ExtCompound::print
void print(std::ostream &os) const
Definition
lexiconCompoundElement.cpp:60
Lima::Common::FsaAccess::ExtCompound::ExtCompound
ExtCompound()
Definition
lexiconCompoundElement.h:54
Lima::Common::FsaAccess::ExtCompound::getNext
uint64_t getNext() const
Definition
lexiconCompoundElement.h:61
Lima::Common::FsaAccess::ExtCompound::operator=
ExtCompound & operator=(const ExtCompound &dc)
Definition
lexiconCompoundElement.cpp:53
lexiconCompoundElement.h
Lima::Common::FsaAccess::operator<<
std::ostream & operator<<(std::ostream &os, const DepCompound &cmp)
Definition
lexiconCompoundElement.cpp:20
Lima
NAUTITIA.
Definition
AmosePluginsManager.h:15
std
STL namespace.
lima_common
src
common
FsaAccess
lexiconCompoundElement.cpp
Generated by
1.9.8