Debian Codegraph @

Source/Reasoner/Answerer/Composition/CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData.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_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONBASEBATCHLINKERVECTORDATA_H
22 #define KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONBASEBATCHLINKERVECTORDATA_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CompositionSettings.h"
29
30
31 // Other includes
32
33 #include "Utilities/Memory/CMemoryPoolContainer.h"
34 #include "Utilities/Memory/CMemoryPoolContainerAllocationManager.h"
35 #include "Utilities/Memory/CObjectAllocator.h"
36
37 #include "Context/CMemoryPoolNewAllocationIncreasingContext.h"
38 #include "Context/CMemoryPoolNewAllocationContext.h"
39 #include "Context/CMemoryPoolReallocationIncreasingContext.h"
40
41 // Logger includes
42 #include "Logger/CLogger.h"
43 #include "Logger/CLogIdentifier.h"
44
45
46
47
48
49 namespace Konclude {
50
51 using namespace Context;
52 using namespace Utilities::Memory;
53
54 namespace Reasoner {
55
56 namespace Answerer {
57
58 namespace Composition {
59
60
61 /*!
62 *
63 * \class CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData
64 * \author Andreas Steigmiller
65 * \version 0.1
66 * \brief TODO
67 *
68 */
69 template<class T>
70 class CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData : public CMemoryPoolReallocationIncreasingContext {
71 // public methods
72 public:
73 //! Constructor
74 CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData(CMemoryAllocationManager* reallocationMemMan);
75
76
77 bool hasMoreBatchLinker();
78 CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData<T>* addBatchLinker(T* linker);
79 CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData<T>* mergeBatchLinkers(CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData<T>* vecData);
80 T* takeNextBatchLinker();
81 T* getNextBatchLinker() const;
82
83
84 T* createBatchLinker();
85
86 // protected methods
87 protected:
88
89 // protected variables
90 protected:
91 T* mBatchLinker;
92 T* mLastBatchLinker;
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
112 #include "CQtConcurrentVariableMappingsCompositionBaseBatchLinkerVectorData.cpp"
113
114
115 #endif // KONCLUDE_REASONER_ANSWERER_COMPOSITION_CQTCONCURRENTVARIABLEMAPPINGSCOMPOSITIONBASEBATCHLINKERVECTORDATA_H