| 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_CACHESETTINGS_H |
| 22 |
#define KONCLUDE_REASONER_KERNEL_CACHE_CACHESETTINGS_H |
| 23 |
|
| 24 |
// Libraries includes |
| 25 |
#include <QEvent> |
| 26 |
|
| 27 |
// Namespace includes |
| 28 |
|
| 29 |
|
| 30 |
// Other includes |
| 31 |
#include "Reasoner/Ontology/OntologySettings.h" |
| 32 |
|
| 33 |
#include "Utilities/UtilitiesSettings.h" |
| 34 |
#include "Utilities/Container/CQtManagedRestrictedModificationHash.h" |
| 35 |
#include "Utilities/Container/CQtManagedRestrictedModificationList.h" |
| 36 |
#include "Utilities/Container/CQtManagedRestrictedModificationMap.h" |
| 37 |
#include "Utilities/Container/CQtManagedRestrictedModificationSet.h" |
| 38 |
|
| 39 |
// Logger includes |
| 40 |
|
| 41 |
|
| 42 |
namespace Konclude { |
| 43 |
|
| 44 |
using namespace Utilities; |
| 45 |
using namespace Container; |
| 46 |
|
| 47 |
namespace Reasoner { |
| 48 |
|
| 49 |
using namespace Ontology; |
| 50 |
|
| 51 |
namespace Kernel { |
| 52 |
|
| 53 |
namespace Cache { |
| 54 |
|
| 55 |
|
| 56 |
/*! |
| 57 |
* |
| 58 |
* \file CacheSettings |
| 59 |
* \author Andreas Steigmiller |
| 60 |
* \version 0.1 |
| 61 |
* \brief TODO |
| 62 |
* |
| 63 |
*/ |
| 64 |
|
| 65 |
|
| 66 |
// forward declarations |
| 67 |
|
| 68 |
class COccurrenceUnsatisfiableCacheReader; |
| 69 |
class COccurrenceUnsatisfiableCache; |
| 70 |
class COccurrenceUnsatisfiableCacheUpdateSlotItem; |
| 71 |
class COccurrenceUnsatisfiableCacheEntry; |
| 72 |
class COccurrenceUnsatisfiableCacheEntriesHash; |
| 73 |
class COccurrenceUnsatisfiableCacheWriter; |
| 74 |
|
| 75 |
class CSignatureSatisfiableExpanderCacheWriter; |
| 76 |
class CSignatureSatisfiableExpanderCacheReader; |
| 77 |
class CSignatureSatisfiableExpanderCache; |
| 78 |
class CSignatureSatisfiableExpanderCacheEntry; |
| 79 |
|
| 80 |
class CReuseCompletionGraphCacheEntry; |
| 81 |
class CReuseCompletionGraphCacheWriter; |
| 82 |
class CReuseCompletionGraphCacheReader; |
| 83 |
class CReuseCompletionGraphCache; |
| 84 |
class CReuseCompletionGraphCacheContext; |
| 85 |
|
| 86 |
class CSaturationNodeAssociatedExpansionCacheEntry; |
| 87 |
class CSaturationNodeAssociatedExpansionCacheWriter; |
| 88 |
class CSaturationNodeAssociatedExpansionCacheReader; |
| 89 |
class CSaturationNodeAssociatedExpansionCache; |
| 90 |
class CSaturationNodeCacheUpdater; |
| 91 |
|
| 92 |
class CComputedConsequencesCache; |
| 93 |
class CComputedConsequencesCacheEntry; |
| 94 |
class CComputedConsequencesCacheReader; |
| 95 |
class CComputedConsequencesCacheWriter; |
| 96 |
class CComputedConsequencesCacheContext; |
| 97 |
|
| 98 |
class CBackendRepresentativeMemoryCacheWriter; |
| 99 |
class CBackendRepresentativeMemoryCacheReader; |
| 100 |
class CBackendRepresentativeMemoryCache; |
| 101 |
class CBackendRepresentativeMemoryLabelSignatureResolveCacheItem; |
| 102 |
class CBackendRepresentativeMemoryLabelCacheItem; |
| 103 |
class CBackendRepresentativeMemoryCacheIndividualAssociationData; |
| 104 |
|
| 105 |
class COccurrenceStatisticsCache; |
| 106 |
class COccurrenceStatisticsCacheReader; |
| 107 |
class COccurrenceStatisticsCacheWriter; |
| 108 |
class COccurrenceStatisticsCacheData; |
| 109 |
|
| 110 |
struct DummyValue { |
| 111 |
}; |
| 112 |
|
| 113 |
|
| 114 |
// events |
| 115 |
|
| 116 |
const QEvent::Type EVENTWRITEUNSATISFIABLECACHEENTRY = (QEvent::Type)2000; |
| 117 |
const QEvent::Type EVENTWRITESATISFIABLECACHEENTRY = (QEvent::Type)2001; |
| 118 |
const QEvent::Type EVENTWRITEEXPANDCACHEDENTRY = (QEvent::Type)2002; |
| 119 |
const QEvent::Type EVENTWRITESATISFIABLEBRANCHCACHEDENTRY = (QEvent::Type)2003; |
| 120 |
const QEvent::Type EVENTWRITECACHEDDATAENTRY = (QEvent::Type)2004; |
| 121 |
const QEvent::Type EVENTWRITESATURATIONCACHEDATAENTRY = (QEvent::Type)2005; |
| 122 |
const QEvent::Type EVENTWRITECOMPUTEDCONSEQUENCESCACHEDATAENTRY = (QEvent::Type)2006; |
| 123 |
const QEvent::Type EVENTWRITEBACKENDASSOCIATIONENTRY = (QEvent::Type)2007; |
| 124 |
const QEvent::Type EVENTRETRIEVEINCOMPLETELYASSOCIATIONCACHED = (QEvent::Type)2008; |
| 125 |
const QEvent::Type EVENTINITIALIZEINDIVIDUALSASSOCIATIONSCACHE = (QEvent::Type)2009; |
| 126 |
const QEvent::Type EVENTREPORTMAXIMUMHANDLEDRECOMPUTATIONID = (QEvent::Type)2010; |
| 127 |
|
| 128 |
|
| 129 |
// defines |
| 130 |
|
| 131 |
#define CCACHINGHASH CQtManagedRestrictedModificationHash |
| 132 |
#define CCACHINGLIST CQtManagedRestrictedModificationList |
| 133 |
#define CCACHINGSET CQtManagedRestrictedModificationSet |
| 134 |
#define CCACHINGMAP CQtManagedRestrictedModificationMap |
| 135 |
|
| 136 |
|
| 137 |
#ifndef KONCLUDE_FORCE_ALL_DEBUG_DEACTIVATED |
| 138 |
#define KONCLUDE_CACHE_DEBUGGING_DATA_GENERATION |
| 139 |
#endif |
| 140 |
|
| 141 |
|
| 142 |
}; // end namespace Cache |
| 143 |
|
| 144 |
}; // end namespace Kernel |
| 145 |
|
| 146 |
}; // end namespace Reasoner |
| 147 |
|
| 148 |
}; // end namespace Konclude |
| 149 |
|
| 150 |
|
| 151 |
#endif // end KONCLUDE_REASONER_KERNEL_CACHE_CACHESETTINGS_H |