Debian Codegraph @

Source/Reasoner/Kernel/Process/CRepresentativeVariableBindingPathMapData.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 "CRepresentativeVariableBindingPathMapData.h"
22 #include "CRepresentativeVariableBindingPathSetData.h"
23
24
25 namespace Konclude {
26
27 namespace Reasoner {
28
29 namespace Kernel {
30
31 namespace Process {
32
33
34 CRepresentativeVariableBindingPathMapData::CRepresentativeVariableBindingPathMapData(CVariableBindingPath* varBindPath, CVariableBindingPath* resolveVarBindPath, CRepresentativeVariableBindingPathSetData* resRevRepVarBindPath) {
35 mVarBindPath = varBindPath;
36 mResolveVarBindPath = resolveVarBindPath;
37 mResolveRepVarBindPathSetData = resRevRepVarBindPath;
38 mResolveRepvarBindPathSetDataID = mResolveRepVarBindPathSetData->getRepresentativeID();
39 }
40
41
42 CRepresentativeVariableBindingPathMapData::CRepresentativeVariableBindingPathMapData(CVariableBindingPath* varBindPath, CRepresentativeVariableBindingPathSetData* resRevRepVarBindPath) {
43 mVarBindPath = varBindPath;
44 mResolveVarBindPath = varBindPath;
45 mResolveRepVarBindPathSetData = resRevRepVarBindPath;
46 mResolveRepvarBindPathSetDataID = mResolveRepVarBindPathSetData->getRepresentativeID();
47 }
48
49
50 CVariableBindingPath* CRepresentativeVariableBindingPathMapData::getVariableBindingPath() const {
51 return mVarBindPath;
52 }
53
54 bool CRepresentativeVariableBindingPathMapData::hasVariableBindingPath() const {
55 return mVarBindPath != nullptr;
56 }
57
58 CRepresentativeVariableBindingPathMapData* CRepresentativeVariableBindingPathMapData::setVariableBindingPath(CVariableBindingPath* varBindPath) {
59 mVarBindPath = varBindPath;
60 return this;
61 }
62
63 CRepresentativeVariableBindingPathSetData* CRepresentativeVariableBindingPathMapData::getResolveRepresentativeVariableBindingPathSetData() const {
64 return mResolveRepVarBindPathSetData;
65 }
66
67 bool CRepresentativeVariableBindingPathMapData::hasResolveRepresentativeVariableBindingPathSetData() const {
68 return mResolveRepVarBindPathSetData != nullptr;
69 }
70
71 CRepresentativeVariableBindingPathMapData* CRepresentativeVariableBindingPathMapData::setResolveRepresentativeVariableBindingPathSetData(CRepresentativeVariableBindingPathSetData* resRevRepVarBindPath) {
72 mResolveRepVarBindPathSetData = resRevRepVarBindPath;
73 mResolveRepvarBindPathSetDataID = mResolveRepVarBindPathSetData->getRepresentativeID();
74 return this;
75 }
76
77 cint64 CRepresentativeVariableBindingPathMapData::getResolveRepresentativeVariableBindingPathSetDataID() const {
78 return mResolveRepvarBindPathSetDataID;
79 }
80
81
82 CVariableBindingPath* CRepresentativeVariableBindingPathMapData::getResolveVariableBindingPath() const {
83 return mResolveVarBindPath;
84 }
85
86 bool CRepresentativeVariableBindingPathMapData::hasResolveVariableBindingPath() const {
87 return mResolveVarBindPath != nullptr;
88 }
89
90 CRepresentativeVariableBindingPathMapData* CRepresentativeVariableBindingPathMapData::setResolveVariableBindingPath(CVariableBindingPath* varBindPath) {
91 mResolveVarBindPath = varBindPath;
92 return this;
93 }
94
95
96
97 }; // end namespace Process
98
99 }; // end namespace Kernel
100
101 }; // end namespace Reasoner
102
103 }; // end namespace Konclude