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
15
16namespace Lima {
17namespace Common {
18namespace FsaAccess {
19
20std::ostream& operator << (std::ostream& os,
21 const DepCompound& cmp) {
22 cmp.print(os);
23 return os;
24}
25
26std::ostream& operator << (std::ostream& os,
27 const ExtCompound& ext) {
28 ext.print(os);
29 return os;
30}
31
33 std::pair<uint64_t, uint64_t>(dc)
34{
35}
36
38{
39 first=dc.first;
40 second=dc.second;
41 return *this;
42}
43
44void DepCompound::print ( std::ostream& os) const {
45 os << "(" << getHead() << "," << getExt() << ")";
46}
47
49 std::pair<uint64_t, uint64_t>(dc)
50{
51}
52
54{
55 first=dc.first;
56 second=dc.second;
57 return *this;
58}
59
60void ExtCompound::print ( std::ostream& os) const {
61 os << "(" << getFirst() << "," << getNext() << ")";
62}
63
64} // namespace FsaAccess
65} // namespace Common
66} // namespace Lima
DepCompound & operator=(const DepCompound &dc)
ExtCompound & operator=(const ExtCompound &dc)
std::ostream & operator<<(std::ostream &os, const DepCompound &cmp)
NAUTITIA.
STL namespace.