Debian Codegraph @

Source/Reasoner/Answerer/COptimizedComplexVariableJoiningHashMemoryManaged.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_COPTIMIZEDCOMPLEXVARIABLEJOININGHASHMEMORYMANAGED_H
22 #define KONCLUDE_REASONER_ANSWERER_COPTIMIZEDCOMPLEXVARIABLEJOININGHASHMEMORYMANAGED_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AnswererSettings.h"
29 #include "COptimizedComplexVariableJoiningHasher.h"
30 #include "COptimizedComplexVariableJoiningData.h"
31
32
33 // Other includes
34 #include "Utilities/UtilitiesSettings.h"
35
36 #include "Context/CMemoryPoolNewAllocationIncreasingContext.h"
37 #include "Context/CMemoryPoolNewAllocationContext.h"
38
39 #include "Utilities/Memory/CMemoryPoolContainer.h"
40 #include "Utilities/Memory/CMemoryPoolContainerAllocationManager.h"
41 #include "Utilities/Memory/CNewAllocationMemoryPoolProvider.h"
42 #include "Utilities/Memory/CObjectAllocator.h"
43
44
45 #include "Utilities/Container/CQtManagedRestrictedModificationHash.h"
46
47
48 // Logger includes
49 #include "Logger/CLogger.h"
50
51
52 namespace Konclude {
53
54 using namespace Utilities;
55 using namespace Utilities::Memory;
56 using namespace Utilities::Container;
57
58 namespace Reasoner {
59
60 namespace Answerer {
61
62
63 /*!
64 *
65 * \class COptimizedComplexVariableCompositionItemVariableExpressionBinding
66 * \author Andreas Steigmiller
67 * \version 0.1
68 * \brief TODO
69 *
70 */
71 class COptimizedComplexVariableJoiningHashMemoryManaged : public CMemoryPoolNewAllocationIncreasingContext, public CQtManagedRestrictedModificationHash<COptimizedComplexVariableJoiningHasher, COptimizedComplexVariableJoiningData> {
72 // public methods
73 public:
74 //! Constructor
75 COptimizedComplexVariableJoiningHashMemoryManaged(CXLinker<cint64>* leftKeyBindingLinker, CXLinker<cint64>* rightKeyBindingLinker);
76
77 CXLinker<cint64>* getLeftKeyBindingLinker();
78 CXLinker<cint64>* getRightKeyBindingLinker();
79
80
81 COptimizedComplexVariableJoiningBindingsCardinalitiesDataLinker* createDataLinker();
82
83
84 cint64 mJoinedCount = 0;
85 cint64 mLeftAdded = 0;
86 cint64 mRightAdded = 0;
87
88 cint64 mInsertionCount = 0;
89 cint64 mCheckingCount = 0;
90
91 cint64 mProcessingTime = 0;
92
93 // protected methods
94 protected:
95
96 // protected variables
97 protected:
98 CXLinker<cint64>* mLeftKeyBindingLinker;
99 CXLinker<cint64>* mRightKeyBindingLinker;
100
101
102
103 // private methods
104 private:
105
106 // private variables
107 private:
108
109 };
110
111
112 }; // end namespace Answerer
113
114 }; // end namespace Reasoner
115
116 }; // end namespace Konclude
117
118 #endif // KONCLUDE_REASONER_ANSWERER_COPTIMIZEDCOMPLEXVARIABLEJOININGHASHMEMORYMANAGED_H