Debian Codegraph @

Source/Reasoner/Kernel/Process/CRepresentativeVariableBindingPathSetData.h

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 #ifndef KONCLUDE_REASONER_KERNEL_PROCESS_CREPRESENTATIVEVARIABLEBINDINGPATHSETDATA_H
22 #define KONCLUDE_REASONER_KERNEL_PROCESS_CREPRESENTATIVEVARIABLEBINDINGPATHSETDATA_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ProcessSettings.h"
29 #include "CLocalizationTag.h"
30 #include "CRepresentativeVariableBindingPathSetMigrateData.h"
31 #include "CRepresentativeVariableBindingPathSetDataSignature.h"
32 #include "CRepresentativeVariableBindingPathSetJoiningHash.h"
33
34
35 // Other includes
36 #include "Utilities/Container/CLinker.h"
37
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43 namespace Konclude {
44
45 namespace Reasoner {
46
47 namespace Kernel {
48
49 namespace Process {
50
51 /*!
52 *
53 * \class CRepresentativeVariableBindingPathSetData
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CRepresentativeVariableBindingPathSetData : public CLinkerBase<cint64,CRepresentativeVariableBindingPathSetData>, public CLocalizationTag {
60 // public methods
61 public:
62 //! Constructor
63 CRepresentativeVariableBindingPathSetData(CProcessContext* processContext);
64
65 CRepresentativeVariableBindingPathSetData* initRepresentativeVariableBindingPathData(CRepresentativeVariableBindingPathSetData* data);
66
67 cint64 getRepresentativeKey();
68
69 cint64 getRepresentativeID();
70 CRepresentativeVariableBindingPathSetData* setRepresentativeID(cint64 repID);
71
72 cint64 getUseCount();
73 CRepresentativeVariableBindingPathSetData* setUseCount(cint64 useCount);
74 CRepresentativeVariableBindingPathSetData* incUseCount(cint64 incCount = 1);
75
76 cint64 getShareCount();
77 CRepresentativeVariableBindingPathSetData* setShareCount(cint64 shareCount);
78 CRepresentativeVariableBindingPathSetData* incShareCount(cint64 incCount = 1);
79 CRepresentativeVariableBindingPathSetData* decShareCount(cint64 decCount = 1);
80
81 bool isMigratable();
82 CRepresentativeVariableBindingPathSetData* setMigratable(bool migratable);
83
84 bool hasMigrateData();
85 CRepresentativeVariableBindingPathSetMigrateData* getMigrateData(bool localizeOrCreate = true);
86
87 CRepresentativeVariableBindingPathSetMigrateData* takeMigrateDataFrom(CRepresentativeVariableBindingPathSetData* repData);
88 CRepresentativeVariableBindingPathSetMigrateData* copyMigrateDataFrom(CRepresentativeVariableBindingPathSetData* repData);
89
90 CRepresentativeVariableBindingPathSetData* addKeySignatureValue(cint64 keySignatureValue);
91 CRepresentativeVariableBindingPathSetDataSignature* getKeySignature();
92
93 CRepresentativeVariableBindingPathSetJoiningHash* getJoiningHash(bool create);
94 bool hasJoiningData(CConcept* joinConcept);
95
96 cint64 getRepresentatedVariableCount();
97
98 // protected methods
99 protected:
100
101 // protected variables
102 protected:
103 CProcessContext* mProcessContext;
104 bool mMigratable;
105 cint64 mUseCount;
106 cint64 mShareCount;
107
108 CRepresentativeVariableBindingPathSetDataSignature mSigKey;
109
110 CRepresentativeVariableBindingPathSetMigrateData* mLocMigrateData;
111 CRepresentativeVariableBindingPathSetMigrateData* mUseMigrateData;
112
113 CRepresentativeVariableBindingPathSetJoiningHash* mUseJoiningHash;
114 CRepresentativeVariableBindingPathSetJoiningHash* mLocJoiningHash;
115
116
117 // private methods
118 private:
119
120 // private variables
121 private:
122
123
124 };
125
126 }; // end namespace Process
127
128 }; // end namespace Kernel
129
130 }; // end namespace Reasoner
131
132 }; // end namespace Konclude
133
134 #endif // KONCLUDE_REASONER_KERNEL_PROCESS_CREPRESENTATIVEVARIABLEBINDINGPATHSETDATA_H