Debian Codegraph @

Source/Reasoner/Kernel/Cache/CBackendIndividualRetrievalComputationUpdateCoordinationHashData.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_CBACKENDINDIVIDUALRETRIEVALCOMPUTATIONUPDATECOORDINATIONHASHDATA_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_CBACKENDINDIVIDUALRETRIEVALCOMPUTATIONUPDATECOORDINATIONHASHDATA_H
23
24 // Libraries includes
25 #include <QList>
26
27 // Namespace includes
28 #include "CacheSettings.h"
29 #include "CCacheEntryWriteData.h"
30 #include "CCacheValue.h"
31
32 // Other includes
33 #include "Utilities/Memory/CMemoryPool.h"
34
35 #include "Utilities/Container/CLinker.h"
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42 namespace Konclude {
43
44 using namespace Utilities::Memory;
45 using namespace Utilities::Container;
46
47 namespace Reasoner {
48
49 namespace Kernel {
50
51 namespace Cache {
52
53
54 /*!
55 *
56 * \class CBackendIndividualRetrievalComputationUpdateCoordinationHashData
57 * \author Andreas Steigmiller
58 * \version 0.1
59 * \brief TODO
60 *
61 */
62 class CBackendIndividualRetrievalComputationUpdateCoordinationHashData {
63 // public methods
64 public:
65 //! Constructor
66 CBackendIndividualRetrievalComputationUpdateCoordinationHashData();
67
68
69 cint64 getAssociationUpdateId();
70 CBackendIndividualRetrievalComputationUpdateCoordinationHashData* setAssociationUpdateId(cint64 updateId);
71
72 bool isProcessed();
73 CBackendIndividualRetrievalComputationUpdateCoordinationHashData* setProcessed(bool processed);
74
75
76
77 CBackendIndividualRetrievalComputationUpdateCoordinationHashData* setComputationOrdered(bool ordered = true);
78 CBackendIndividualRetrievalComputationUpdateCoordinationHashData* setComputationIntegrated(bool integrated = true);
79 CBackendIndividualRetrievalComputationUpdateCoordinationHashData* setNewlyRetrieved(bool retrieved = true);
80
81 bool isComputationOrdered();
82 bool isComputationIntegrated();
83 bool isNewlyRetrieved();
84
85 CBackendIndividualRetrievalComputationUpdateCoordinationHashData* incUsageCount(cint64 count = 1);
86 CBackendIndividualRetrievalComputationUpdateCoordinationHashData* decUsageCount(cint64 count = 1);
87 cint64 getUsageCount();
88
89
90
91
92
93 // protected methods
94 protected:
95
96 // protected variables
97 protected:
98 cint64 mAssociationUpdateId;
99 bool mProcessed;
100
101 bool mComputationIntegrated = false;
102 bool mComputationOrdered = false;
103 bool mNewlyRetrieved = false;
104 cint64 mUsageCount = 0;
105
106
107 // private methods
108 private:
109
110 // private variables
111 private:
112
113
114 };
115
116 }; // end namespace Cache
117
118 }; // end namespace Kernel
119
120 }; // end namespace Reasoner
121
122 }; // end namespace Konclude
123
124 #endif // KONCLUDE_REASONER_KERNEL_CACHE_CBACKENDINDIVIDUALRETRIEVALCOMPUTATIONUPDATECOORDINATIONHASHDATA_H