Debian Codegraph @

Source/Reasoner/Kernel/Cache/CBackendRepresentativeMemoryLabelCacheItemIndividualAssociationMapIterator.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_CBACKENDREPRESENTATIVEMEMORYLABELCACHEITEMINDIVIDUALASSOCIATIONMAPITERATOR_H
22 #define KONCLUDE_REASONER_KERNEL_CACHE_CBACKENDREPRESENTATIVEMEMORYLABELCACHEITEMINDIVIDUALASSOCIATIONMAPITERATOR_H
23
24 // Libraries includes
25 #include <QMap>
26
27 // Namespace includes
28 #include "CacheSettings.h"
29
30
31 // Other includes
32 #include "Utilities/Memory/CObjectParameterizingAllocator.h"
33
34 // Logger includes
35 #include "Logger/CLogger.h"
36
37
38 namespace Konclude {
39
40 using namespace Utilities::Memory;
41
42 namespace Reasoner {
43
44 namespace Kernel {
45
46 namespace Cache {
47
48
49
50
51 /*!
52 *
53 * \class CBackendRepresentativeMemoryLabelCacheItemIndividualAssociationMapIterator
54 * \author Andreas Steigmiller
55 * \version 0.1
56 * \brief TODO
57 *
58 */
59 class CBackendRepresentativeMemoryLabelCacheItemIndividualAssociationMapIterator {
60 // public methods
61 public:
62 CBackendRepresentativeMemoryLabelCacheItemIndividualAssociationMapIterator();
63
64 //! Constructor
65 CBackendRepresentativeMemoryLabelCacheItemIndividualAssociationMapIterator(QMap<cint64, DummyValue>::const_iterator baseIndiAssoMapItBegin, QMap<cint64, DummyValue>::const_iterator baseIndiAssoMapItEnd,
66 QMap<cint64, DummyValue>::const_iterator sameIndiMergedAssoMapItBegin, QMap<cint64, DummyValue>::const_iterator sameIndiMergedAssoMapItEnd, bool iterateAscending);
67
68
69 CBackendRepresentativeMemoryLabelCacheItemIndividualAssociationMapIterator* moveNext();
70 bool atEnd();
71
72 cint64 currentAssociatedIndividualId();
73 bool currentAssociatedIndividualSameMerged();
74
75
76 // protected methods
77 protected:
78
79 // protected variables
80 protected:
81 bool mIterateAscending;
82
83 bool mHasCurrentIndiId;
84 bool mCurrentIndiSameMerged;
85 cint64 mCurrentIndiId;
86
87 QMap<cint64, DummyValue>::const_iterator mBaseIndiAssoMapIt;
88 QMap<cint64, DummyValue>::const_iterator mBaseIndiAssoMapItBegin;
89 QMap<cint64, DummyValue>::const_iterator mBaseIndiAssoMapItEnd;
90
91 QMap<cint64, DummyValue>::const_iterator mSameIndiMergedAssoMapIt;
92 QMap<cint64, DummyValue>::const_iterator mSameIndiMergedAssoMapItBegin;
93 QMap<cint64, DummyValue>::const_iterator mSameIndiMergedAssoMapItEnd;
94
95
96 // private methods
97 private:
98
99 // private variables
100 private:
101
102 };
103
104 }; // end namespace Cache
105
106 }; // end namespace Kernel
107
108 }; // end namespace Reasoner
109
110 }; // end namespace Konclude
111
112 #endif // KONCLUDE_REASONER_KERNEL_CACHE_CBACKENDREPRESENTATIVEMEMORYLABELCACHEITEMINDIVIDUALASSOCIATIONMAPITERATOR_H