LIMA
Libre Multilingual Analyzer — C++ API
Loading...
Searching...
No Matches
constraintCheckList.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*
8* File : constraintCheckList.cpp
9* Author : Besancon Romaric (besanconr@zoe.cea.fr)
10* Created on : Thu Sep 4 2003
11* Copyright : (c) 2003 by CEA
12* Version : $Id$
13*
14************************************************************************/
15
16#include "constraintCheckList.h"
17
18namespace Lima {
19namespace LinguisticProcessing {
20namespace Automaton {
21
22const uint64_t ConstraintCheckListElement::novalue=UINT_MAX;
23
24//***********************************************************************
25// constructors
26//***********************************************************************
28m_stored(ConstraintCheckListElement::novalue),
29m_stack()
30{
31 // push a default value
33}
34
37m_stored(ConstraintCheckListElement::novalue),
38m_stack()
39{
40 // push a default value
42}
43
46m_stored(e.m_stored),
47m_stack(e.m_stack)
48{
49}
50
51//***********************************************************************
52// destructor
53//***********************************************************************
56
57//***********************************************************************
58// assignment operator
59//***********************************************************************
62 m_stored=e.m_stored;
63 m_stack=e.m_stack;
64 return *this;
65}
66
67// comparison operators
71 return (m_stored==e.m_stored);
72 }
73 return (m_stack == e.m_stack);
74}
75
79 return (m_stored<e.m_stored);
80 }
81 return (m_stack<e.m_stack);
82}
83
84//***********************************************************************
85// output
86//***********************************************************************
87std::ostream& operator << (std::ostream& os,
89 os << "stored=" << e.getValueStored()
90 << "/" << "top=" << e.getValueStack();
91 return os;
92}
93
94std::ostream& operator << (std::ostream& os, const ConstraintCheckList& l) {
95 ConstraintCheckList::const_iterator
96 it=l.begin(),
97 it_end=l.end();
98 os << "(";
99 uint64_t i=0;
100 for (; it!=it_end;it++) {
101 os << std::endl << i << " " << *it;
102 }
103 os << ")";
104 return os;
105}
106
107} // end namespace
108} // end namespace
109} // end namespace
ConstraintCheckListElement & operator=(const ConstraintCheckListElement &)
An AnalysisData containing a LinguisticGraph with a language and an id.
std::ostream & operator<<(std::ostream &os, const DFFSPos &x)
std::vector< ConstraintCheckListElement > ConstraintCheckList
NAUTITIA.