Debian Codegraph @

Source/Reasoner/Kernel/Process/CDatatypeBooleanValueSpaceMap.cpp

raw
1 /*
2 * Copyright (C) 2013-2015, 2019 by the Konclude Developer Team.
3 *
4 * This file is part of the reasoning system Konclude.
5 * For details and support, see <http://konclude.com/>.
6 *
7 * Konclude is free software: you can redistribute it and/or modify
8 * it under the terms of version 3 of the GNU Lesser General Public
9 * License (LGPLv3) as published by the Free Software Foundation.
10 *
11 * Konclude is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU (Lesser) General Public License for more details.
15 *
16 * You should have received a copy of the GNU (Lesser) General Public
17 * License along with Konclude. If not, see <http://www.gnu.org/licenses/>.
18 *
19 */
20
21 #include "CDatatypeBooleanValueSpaceMap.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Kernel {
29
30 namespace Process {
31
32
33 CDatatypeBooleanValueSpaceMap::CDatatypeBooleanValueSpaceMap(CProcessContext* processContext) : CDatatypeCompareValueSpaceMap(processContext) {
34 }
35
36 bool CDatatypeBooleanValueSpaceMap::representsInfinitelyManyValues(CDataLiteralCompareValue* leftValueExcluded, CDataLiteralCompareValue* rightValueExcluded) {
37 return false;
38 }
39
40 bool CDatatypeBooleanValueSpaceMap::representsInfinitelyManyValues(CDataLiteralCompareValue* value) {
41 return false;
42 }
43
44 bool CDatatypeBooleanValueSpaceMap::getValueCopy(CDataLiteralCompareValue* valueCopyInto, CDataLiteralCompareValue* valueCopyFrom) {
45 CDataLiteralBooleanValue* booleanValueCopyInto = dynamic_cast<CDataLiteralBooleanValue*>(valueCopyInto);
46 CDataLiteralBooleanValue* booleanValueCopyFrom = dynamic_cast<CDataLiteralBooleanValue*>(valueCopyFrom);
47 booleanValueCopyInto->initValue(booleanValueCopyFrom);
48 return true;
49 }
50
51 bool CDatatypeBooleanValueSpaceMap::getValueNext(CDataLiteralCompareValue* valueNext, CDataLiteralCompareValue* valueLast) {
52 CDataLiteralBooleanValue* booleanValueNext = dynamic_cast<CDataLiteralBooleanValue*>(valueNext);
53 CDataLiteralBooleanValue* booleanValueLast = dynamic_cast<CDataLiteralBooleanValue*>(valueLast);
54 if (booleanValueLast->getBoolean() == false) {
55 booleanValueNext->initValueFromBoolean(true);
56 return true;
57 }
58 return false;
59 }
60
61
62 cuint64 CDatatypeBooleanValueSpaceMap::getIntervalValueCount(CDataLiteralCompareValue* leftValueExcluded, CDataLiteralCompareValue* rightValueExcluded) {
63 return 0;
64 }
65
66
67
68 }; // end namespace Process
69
70 }; // end namespace Kernel
71
72 }; // end namespace Reasoner
73
74 }; // end namespace Konclude