Debian Codegraph @

Source/Reasoner/Answerer/Composition/CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker.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_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONJOINMAPPEDKEYSBINDINGSCARDINALITYLINKER_H
22 #define KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONJOINMAPPEDKEYSBINDINGSCARDINALITYLINKER_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CompositionSettings.h"
29
30
31 // Other includes
32 #include "Reasoner/Answerer/COptimizedComplexVariableIndividualBindingsCardinalityLinker.h"
33 #include "Reasoner/Answerer/COptimizedComplexVariableIndividualUpdateCardinalityLinker.h"
34 #include "Reasoner/Answerer/COptimizedComplexVariableJoiningHasher.h"
35
36
37 #include "Utilities/Container/CLinker.h"
38
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42 #include "Logger/CLogIdentifier.h"
43
44
45
46
47
48 namespace Konclude {
49
50 using namespace Utilities::Container;
51
52 namespace Reasoner {
53
54 namespace Answerer {
55
56 namespace Composition {
57
58
59 /*!
60 *
61 * \class CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 class CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker : public CLinkerBase<COptimizedComplexVariableIndividualBindings*, CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker> {
68 // public methods
69 public:
70 //! Constructor
71 CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker();
72
73 CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker* initMappedKeysBindingsCardinalityData(const COptimizedComplexVariableJoiningHasher& bindingHasher, cint64 mappedKeyIndex, COptimizedComplexVariableIndividualBindings* varMapping, COptimizedComplexVariableIndividualBindingsCardinality* newCardinalites, COptimizedComplexVariableIndividualBindingsCardinality* prevCardinalites, bool leftSide, bool inserting);
74
75
76 cint64 getMappedKeyIndex();
77
78 bool isInserting();
79 bool isLeftSide();
80
81 CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker* setInserting(bool inserting);
82 CQtConcurrentVariableMappingsCompositionJoinMappedKeysBindingsCardinalityLinker* setLeftSide(bool leftSide);
83
84
85 COptimizedComplexVariableIndividualBindings* getVariableMapping();
86 COptimizedComplexVariableIndividualBindingsCardinality* getNewCardinalites();
87 COptimizedComplexVariableIndividualBindingsCardinality* getPreviousCardinalites();
88
89 COptimizedComplexVariableJoiningHasher getBindingHasher();
90
91 // protected methods
92 protected:
93
94 // protected variables
95 protected:
96 COptimizedComplexVariableJoiningHasher mBindingHasher;
97 cint64 mKeyIndex;
98
99 COptimizedComplexVariableIndividualBindingsCardinality* mNewCardinalites;
100 COptimizedComplexVariableIndividualBindingsCardinality* mPrevCardinalites;
101
102 bool mInserting;
103 bool mLeftSide;
104
105 // private methods
106 private:
107
108 // private variables
109 private:
110
111 };
112
113 }; // end namespace Composition
114
115 }; // end namespace Answerer
116
117 }; // end namespace Reasoner
118
119 }; // end namespace Konclude
120
121 #endif // KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONJOINMAPPEDKEYSBINDINGSCARDINALITYLINKER_H