Debian Codegraph @

Source/Reasoner/Triples/CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData.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_CREDLANDSTOREDTRIPLESINDEXINGBASEBATCHLINKERVECTORDATA_H
22 #define KONCLUDE_REASONER_ANSWERER_CREDLANDSTOREDTRIPLESINDEXINGBASEBATCHLINKERVECTORDATA_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "TriplesSettings.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 Triples {
57
58
59 /*!
60 *
61 * \class CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 template<class T>
68 class CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData : public CMemoryPoolReallocationIncreasingContext {
69 // public methods
70 public:
71 //! Constructor
72 CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData(CMemoryAllocationManager* reallocationMemMan);
73
74
75 bool hasMoreBatchLinker();
76 CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData<T>* addBatchLinker(T* linker);
77 CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData<T>* mergeBatchLinkers(CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData<T>* vecData);
78 T* takeNextBatchLinker();
79 T* getNextBatchLinker() const;
80
81
82 T* createBatchLinker();
83
84 // protected methods
85 protected:
86
87 // protected variables
88 protected:
89 T* mBatchLinker;
90 T* mLastBatchLinker;
91
92
93 // private methods
94 private:
95
96 // private variables
97 private:
98
99 };
100
101 }; // end namespace Triples
102
103 }; // end namespace Reasoner
104
105 }; // end namespace Konclude
106
107
108 #include "CRedlandStoredTriplesIndexingBaseBatchLinkerVectorData.cpp"
109
110
111 #endif // KONCLUDE_REASONER_ANSWERER_CREDLANDSTOREDTRIPLESINDEXINGBASEBATCHLINKERVECTORDATA_H