Debian Codegraph @

Source/Reasoner/Kernel/Cache/CBackendRepresentativeMemoryCacheOntologyContext.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_KERNEL_CACHE_CBACKENDREPRESENTATIVEMEMORYCACHEONTOLOGYCONTEXT_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_CBACKENDREPRESENTATIVEMEMORYCACHEONTOLOGYCONTEXT_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CacheSettings.h"
29 #include "CBackendRepresentativeMemoryCacheBaseContext.h"
30 #include "CBackendRepresentativeMemoryCacheContext.h"
31
32
33 // Other includes
34 #include "Context/CContext.h"
35
36 #include "Utilities/Memory/CMemoryPoolProvider.h"
37 #include "Utilities/Memory/CMemoryPoolAllocationManager.h"
38 #include "Utilities/Memory/CNewAllocationMemoryPoolProvider.h"
39 #include "Utilities/Memory/CMemoryPoolContainerAllocationManager.h"
40
41
42 // Logger includes
43 #include "Logger/CLogger.h"
44
45
46 namespace Konclude {
47
48 using namespace Context;
49 using namespace Utilities::Memory;
50
51 namespace Reasoner {
52
53 namespace Kernel {
54
55 namespace Cache {
56
57 /*!
58 *
59 * \class CBackendRepresentativeMemoryCacheOntologyContext
60 * \author Andreas Steigmiller
61 * \version 0.1
62 * \brief TODO
63 *
64 */
65 class CBackendRepresentativeMemoryCacheOntologyContext : public CBackendRepresentativeMemoryCacheContext {
66 // public methods
67 public:
68 //! Constructor
69 CBackendRepresentativeMemoryCacheOntologyContext(CBackendRepresentativeMemoryCacheBaseContext* cacheContext);
70
71 ~CBackendRepresentativeMemoryCacheOntologyContext();
72
73 virtual CMemoryAllocationManager* getMemoryAllocationManager();
74
75 virtual CMemoryPoolProvider* getMemoryPoolProvider();
76
77 CMemoryPoolContainer* getMemoryPoolContainer();
78
79 // protected methods
80 protected:
81
82 // protected variables
83 protected:
84 CBackendRepresentativeMemoryCacheBaseContext* mCacheContext;
85 CMemoryPoolContainerAllocationManager* mMemMan;
86 CMemoryPoolProvider* mMemoryPoolProvider;
87
88 cint64 mAddRelMemory;
89
90 CMemoryPoolContainer mMemPoolContainer;
91
92 // private methods
93 private:
94
95 // private variables
96 private:
97
98 };
99
100 }; // end namespace Cache
101
102 }; // end namespace Kernel
103
104 }; // end namespace Reasoner
105
106 }; // end namespace Konclude
107
108 #endif // KONCLUDE_REASONER_KERNEL_CACHE_CBACKENDREPRESENTATIVEMEMORYCACHEONTOLOGYCONTEXT_H