Debian Codegraph @

Source/Reasoner/Answerer/Composition/CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector.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_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONBASEBATCHLINKERVECTOR_H
22 #define KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONBASEBATCHLINKERVECTOR_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CompositionSettings.h"
29 #include "CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData.h"
30
31
32 // Other includes
33
34 #include "Utilities/Memory/CMemoryPoolContainer.h"
35 #include "Utilities/Memory/CMemoryPoolContainerAllocationManager.h"
36 #include "Utilities/Memory/CNewAllocationMemoryPoolProvider.h"
37 #include "Utilities/Memory/CObjectAllocator.h"
38
39 #include "Utilities/UtilitiesSettings.h"
40
41 #include "Context/CMemoryPoolNewAllocationIncreasingContext.h"
42 #include "Context/CMemoryPoolNewAllocationContext.h"
43
44 // Logger includes
45 #include "Logger/CLogger.h"
46 #include "Logger/CLogIdentifier.h"
47
48
49
50
51
52 namespace Konclude {
53
54 using namespace Context;
55 using namespace Utilities;
56 using namespace Utilities::Memory;
57
58 namespace Reasoner {
59
60 namespace Answerer {
61
62 namespace Composition {
63
64
65 /*!
66 *
67 * \class CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector
68 * \author Andreas Steigmiller
69 * \version 0.1
70 * \brief TODO
71 *
72 */
73 template<class T>
74 class CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector : public QVector<CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData<T>*>, public CMemoryPoolNewAllocationIncreasingContext {
75 // public methods
76 public:
77 //! Constructor
78 CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector(cint64 size);
79 CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector();
80
81
82 CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData<T>* getVectorLinkerData(cint64 index, bool createIfNotExists = true);
83
84
85 CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector* addBatchLinker(cint64 index, T* linker);
86
87
88 T* createBatchLinker();
89
90 cint64 getNextIndex(bool moveNext = true);
91 cint64 getIndexSize();
92
93 // protected methods
94 protected:
95
96 // protected variables
97 protected:
98 cint64 mNextIndex;
99 cint64 mSize;
100
101
102 // private methods
103 private:
104
105 // private variables
106 private:
107
108 };
109
110 }; // end namespace Composition
111
112 }; // end namespace Answerer
113
114 }; // end namespace Reasoner
115
116 }; // end namespace Konclude
117
118 #include "CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVector.cpp"
119
120 #endif // KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONBASEBATCHLINKERVECTOR_H