Debian Codegraph @

Source/Reasoner/Kernel/Cache/CSaturationNodeAssociatedExpansionCacheContext.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_CSATURATIONNODEASSOCIATEDEXPANSIONCACHECONTEXT_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_CSATURATIONNODEASSOCIATEDEXPANSIONCACHECONTEXT_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CacheSettings.h"
29
30
31 // Other includes
32 #include "Context/CContext.h"
33
34 #include "Utilities/Memory/CMemoryPoolProvider.h"
35 #include "Utilities/Memory/CMemoryPoolAllocationManager.h"
36 #include "Utilities/Memory/CNewAllocationMemoryPoolProvider.h"
37 #include "Utilities/Memory/CLimitedReserveMemoryPoolAllocationManager.h"
38
39 #include "Reasoner/Kernel/Process/CIndividualSaturationProcessNodeStatusUpdateLinker.h"
40 #include "Reasoner/Kernel/Process/CIndividualSaturationProcessNode.h"
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 using namespace Process;
56
57 namespace Cache {
58
59 /*!
60 *
61 * \class CSaturationNodeAssociatedExpansionCacheContext
62 * \author Andreas Steigmiller
63 * \version 0.1
64 * \brief TODO
65 *
66 */
67 class CSaturationNodeAssociatedExpansionCacheContext : public CContext {
68 // public methods
69 public:
70 //! Constructor
71 CSaturationNodeAssociatedExpansionCacheContext();
72
73 ~CSaturationNodeAssociatedExpansionCacheContext();
74
75 virtual CMemoryAllocationManager* getMemoryAllocationManager();
76 virtual CMemoryPoolAllocationManager* getMemoryPoolAllocationManager();
77
78 virtual CMemoryPoolProvider* getMemoryPoolProvider();
79
80 cint64 getMemoryConsumption();
81 CSaturationNodeAssociatedExpansionCacheContext* releaseTemporaryMemoryPools(CMemoryPool* memoryPools);
82
83
84
85 CIndividualSaturationProcessNodeStatusUpdateLinker* getIndividualSaturationUpdateLinker(bool create = true);
86 CSaturationNodeAssociatedExpansionCacheContext* addIndividualSaturationUpdateLinker(CIndividualSaturationProcessNodeStatusUpdateLinker* linker);
87
88 // protected methods
89 protected:
90
91 // protected variables
92 protected:
93 CMemoryPoolAllocationManager* mMemMan;
94 CNewAllocationMemoryPoolProvider* mMemoryPoolProvider;
95
96 CIndividualSaturationProcessNodeStatusUpdateLinker* mConSatUpdateLinker;
97
98 cint64 mAddRelMemory;
99
100 // private methods
101 private:
102
103 // private variables
104 private:
105
106 };
107
108 }; // end namespace Cache
109
110 }; // end namespace Kernel
111
112 }; // end namespace Reasoner
113
114 }; // end namespace Konclude
115
116 #endif // KONCLUDE_REASONER_KERNEL_CACHE_CSATURATIONNODEASSOCIATEDEXPANSIONCACHECONTEXT_H