Debian Codegraph @

Source/Reasoner/Answerer/Composition/CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker.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_CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker_H
22 #define KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker_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 CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 class CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker : public CLinkerBase<COptimizedComplexVariableIndividualBindings*, CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker> {
68 // public methods
69 public:
70 //! Constructor
71 CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker();
72
73 CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker* initMappedKeysBindingsCardinalityData(CRealizationIndividualInstanceItemReference instItemRef, cint64 mappedKeyIndex, COptimizedComplexVariableIndividualBindings* varMapping, COptimizedComplexVariableIndividualBindingsCardinality* newCardinalites, COptimizedComplexVariableIndividualBindingsCardinality* prevCardinalites);
74
75 cint64 getMappedKeyIndex();
76
77 COptimizedComplexVariableIndividualBindings* getVariableMapping();
78 COptimizedComplexVariableIndividualBindingsCardinality* getNewCardinalites();
79 COptimizedComplexVariableIndividualBindingsCardinality* getPreviousCardinalites();
80
81 CRealizationIndividualInstanceItemReference getInstanceItemReference();
82
83 // protected methods
84 protected:
85
86 // protected variables
87 protected:
88 CRealizationIndividualInstanceItemReference mInstItemRef;
89 cint64 mKeyIndex;
90
91 COptimizedComplexVariableIndividualBindingsCardinality* mNewCardinalites;
92 COptimizedComplexVariableIndividualBindingsCardinality* mPrevCardinalites;
93
94
95 // private methods
96 private:
97
98 // private variables
99 private:
100
101 };
102
103 }; // end namespace Composition
104
105 }; // end namespace Answerer
106
107 }; // end namespace Reasoner
108
109 }; // end namespace Konclude
110
111 #endif // KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQtConcurrentVariableMappingsCompositionPropagationMappedKeyBindingsCardinalityLinker_H