Debian Codegraph @

Source/Reasoner/Kernel/Cache/CBackendRepresentativeMemoryCachingFlags.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_CBACKENDREPRESENTATIVEMEMORYCACHINGFLAGS_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_CBACKENDREPRESENTATIVEMEMORYCACHINGFLAGS_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "CacheSettings.h"
29
30 // Other includes
31
32 // Logger includes
33 #include "Logger/CLogger.h"
34
35
36 namespace Konclude {
37
38 namespace Reasoner {
39
40 namespace Kernel {
41
42 namespace Cache {
43
44 /*!
45 *
46 * \class CBackendRepresentativeMemoryCachingFlags
47 * \author Andreas Steigmiller
48 * \version 0.1
49 * \brief TODO
50 *
51 */
52 class CBackendRepresentativeMemoryCachingFlags {
53 // public methods
54 public:
55
56 //! Constructor
57 CBackendRepresentativeMemoryCachingFlags();
58
59
60 CBackendRepresentativeMemoryCachingFlags* initCachingStatusFlags(cint64 flags = 0);
61
62
63 bool isCompletelyHandled();
64 CBackendRepresentativeMemoryCachingFlags* setCompletelyHandled(bool completelyHandled);
65
66 bool isCompletelySaturated();
67 CBackendRepresentativeMemoryCachingFlags* setCompletelySaturated(bool completelySaturated);
68
69 bool isCompletelyPropagated();
70 CBackendRepresentativeMemoryCachingFlags* setCompletelyPropagated(bool completelyPropagated);
71
72 bool hasNondeterministicElements();
73 CBackendRepresentativeMemoryCachingFlags* setNondeterministicElements(bool nondeterministicElements);
74
75
76 static const cint64 FLAG_COMPLETELY_HANDLED = 0x0001;
77 static const cint64 FLAG_COMPLETELY_SATURATED = 0x0002;
78 static const cint64 FLAG_COMPLETELY_PROPAGATED = 0x0004;
79 static const cint64 FLAG_NONDETERMINISTIC_ELEMENTS = 0x0008;
80
81
82 bool hasStatusFlags(cint64 flags);
83 bool hasStatusFlagsPartially(cint64 flags);
84 CBackendRepresentativeMemoryCachingFlags* setStatusFlags(cint64 flags);
85 CBackendRepresentativeMemoryCachingFlags* addStatusFlags(cint64 flags);
86 CBackendRepresentativeMemoryCachingFlags* clearStatusFlags(cint64 flags);
87 cint64 getStatusFlags();
88
89
90
91 // protected methods
92 protected:
93
94 // protected variables
95 protected:
96 cint64 mStatusFlags;
97
98
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_CBACKENDREPRESENTATIVEMEMORYCACHINGFLAGS_H