Debian Codegraph @

Source/Reasoner/Answerer/COptimizedComplexConceptInstanziatedIndividualItemHash.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_COPTIMIZEDCOMPLEXCONCEPTINSTANZIATEDINDIVIDUALITEMHASH_H
22 #define KONCLUDE_REASONER_ANSWERER_COPTIMIZEDCOMPLEXCONCEPTINSTANZIATEDINDIVIDUALITEMHASH_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "AnswererSettings.h"
29 #include "COptimizedComplexConceptInstanziatedIndividualItemHasher.h"
30 #include "COptimizedComplexConceptInstanziatedIndividualItemLinker.h"
31
32
33 // Other includes
34 #include "Utilities/UtilitiesSettings.h"
35 #include "Utilities/Container/CLinker.h"
36
37 #include "Context/CMemoryPoolNewAllocationIncreasingContext.h"
38
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42
43
44 namespace Konclude {
45
46 using namespace Utilities;
47 using namespace Container;
48 using namespace Context;
49
50 namespace Reasoner {
51
52 namespace Answerer {
53
54
55 /*!
56 *
57 * \class COptimizedComplexVariableCompositionItemVariableExpressionBinding
58 * \author Andreas Steigmiller
59 * \version 0.1
60 * \brief TODO
61 *
62 */
63 class COptimizedComplexConceptInstanziatedIndividualItemHash {
64 // public methods
65 public:
66 //! Constructor
67 COptimizedComplexConceptInstanziatedIndividualItemHash();
68 ~COptimizedComplexConceptInstanziatedIndividualItemHash();
69
70 COptimizedComplexConceptInstanziatedIndividualItemHash* addRealizationIndividualInstanceItemReference(const CRealizationIndividualInstanceItemReference& itemRef);
71 COptimizedComplexConceptInstanziatedIndividualItemLinker* getAddedRealizationIndividualInstanceItemReferenceLinker();
72 COptimizedComplexConceptInstanziatedIndividualItemHash* remove(COptimizedComplexConceptInstanziatedIndividualItemLinker* linker);
73
74 CMemoryAllocationManager* getInstancesMemoryAllocationManager();
75 cint64 getMemoryConsumption();
76 cint64 size();
77 bool isEmpty();
78
79 CQtManagedRestrictedModificationHash<COptimizedComplexConceptInstanziatedIndividualItemHasher, COptimizedComplexConceptInstanziatedIndividualItemLinker*>* getIndividualInstanceItemReferenceLinkerHash();
80
81
82 // protected methods
83 protected:
84
85 // protected variables
86 protected:
87 COptimizedComplexConceptInstanziatedIndividualItemLinker* mAddedLinker;
88 COptimizedComplexConceptInstanziatedIndividualItemLinker* mTmpLinker;
89
90 CQtManagedRestrictedModificationHash<COptimizedComplexConceptInstanziatedIndividualItemHasher, COptimizedComplexConceptInstanziatedIndividualItemLinker*>* mIndiRefLinkerHash;
91
92 CMemoryPoolNewAllocationIncreasingContext* mMemManContext;
93
94 // private methods
95 private:
96
97 // private variables
98 private:
99
100 };
101
102
103 }; // end namespace Answerer
104
105 }; // end namespace Reasoner
106
107 }; // end namespace Konclude
108
109 #endif // KONCLUDE_REASONER_ANSWERER_COPTIMIZEDCOMPLEXCONCEPTINSTANZIATEDINDIVIDUALITEMHASH_H