Debian Codegraph @

Source/Reasoner/Kernel/Cache/Events/CWriteExpandCachedEvent.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_EVENTS_CWRITEEXPANDCACHEDEVENT_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_EVENTS_CWRITEEXPANDCACHEDEVENT_H
23
24 // Libraries includes
25 #include <QEvent>
26 #include <QList>
27
28 // Namespace includes
29
30
31 // Other includes
32 #include "Concurrent/Events/CCustomEvent.h"
33
34 #include "../CacheSettings.h"
35 #include "../CCacheValue.h"
36
37 #include "Utilities/Memory/CMemoryPool.h"
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43 namespace Konclude {
44
45 using namespace Utilities::Memory;
46
47 namespace Reasoner {
48
49 namespace Kernel {
50
51 namespace Cache {
52
53 namespace Events {
54
55
56 /*!
57 *
58 * \class CWriteExpandCachedEvent
59 * \author Andreas Steigmiller
60 * \version 0.1
61 * \brief TODO
62 *
63 */
64 class CWriteExpandCachedEvent : public Concurrent::Events::CCustomEvent {
65 // public methods
66 public:
67 //! Constructor
68 CWriteExpandCachedEvent(cint64 prevSignature, cint64 newSignature, CCACHINGLIST<CCacheValue>* cacheValueList, CCACHINGHASH<cint64,cint64>* depHash, CMemoryPool* memoryPools);
69
70 static const QEvent::Type EVENTTYPE = EVENTWRITEEXPANDCACHEDENTRY;
71
72
73 cint64 getPrevSignature();
74 cint64 getNewSignature();
75 CCACHINGLIST<CCacheValue>* getCacheValueList();
76 CCACHINGHASH<cint64,cint64>* getDepHash();
77 CMemoryPool* getMemoryPools();
78
79
80 // protected methods
81 protected:
82
83 // protected variables
84 protected:
85 cint64 mPrevSignature;
86 cint64 mNewSignature;
87 CCACHINGLIST<CCacheValue>* mCacheValueList;
88 CCACHINGHASH<cint64,cint64>* mDepHash;
89 CMemoryPool* mMemoryPools;
90
91 // private methods
92 private:
93
94 // private variables
95 private:
96
97
98 };
99
100 }; // end namespace Events
101
102 }; // end namespace Cache
103
104 }; // end namespace Kernel
105
106 }; // end namespace Reasoner
107
108 }; // end namespace Konclude
109
110 #endif // KONCLUDE_REASONER_KERNEL_CACHE_EVENTS_CWRITEEXPANDCACHEDEVENT_H