Debian Codegraph @

Source/Reasoner/Kernel/Process/CSignatureBlockingCandidateHash.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_PROCESS_CSIGNATUREBLOCKINGCANDIDATEHASH_H
22 #define KONCLUDE_REASONER_KERNEL_PROCESS_CSIGNATUREBLOCKINGCANDIDATEHASH_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ProcessSettings.h"
29 #include "CIndividualProcessNode.h"
30 #include "CSignatureBlockingCandidateIterator.h"
31 #include "CConceptSetSignature.h"
32 #include "CSignatureIterator.h"
33 #include "CSignatureBlockingCandidateData.h"
34 #include "CProcessContext.h"
35
36
37 // Other includes
38
39 // Logger includes
40 #include "Logger/CLogger.h"
41
42
43 namespace Konclude {
44
45 using namespace Utilities;
46
47 namespace Reasoner {
48
49 using namespace Ontology;
50
51 namespace Kernel {
52
53 namespace Process {
54
55 /*!
56 *
57 * \class CSignatureBlockingCandidateHash
58 * \author Andreas Steigmiller
59 * \version 0.1
60 * \brief TODO
61 *
62 */
63 class CSignatureBlockingCandidateHash {
64 // public methods
65 public:
66 //! Constructor
67 CSignatureBlockingCandidateHash(CProcessContext* context = nullptr);
68
69 CSignatureBlockingCandidateHash* initSignatureBlockingCandidateHash(CSignatureBlockingCandidateHash* prevSigBlockCandHash);
70
71 CSignatureBlockingCandidateHash* insertSignatureBlockingCandidate(cint64 signature, CIndividualProcessNode* individualCandidate);
72 CSignatureBlockingCandidateHash* insertSignatureBlockingCandidate(CConceptSetSignature* signature, CIndividualProcessNode* individualCandidate);
73
74
75 CSignatureBlockingCandidateHash* insertSignatureBlockingCandidates(cint64 signature, CXLinker<cint64>* candidateLinker);
76
77 CSignatureBlockingCandidateIterator getBlockingCandidatesIterator(cint64 signature);
78 CSignatureBlockingCandidateIterator getBlockingCandidatesIterator(CConceptSetSignature* signature);
79
80 cint64 getBlockingCandidatesCount(cint64 signature);
81 cint64 getBlockingCandidatesCount(CConceptSetSignature* signature);
82
83 CSignatureIterator getSignatureIterator();
84
85 // protected methods
86 protected:
87
88 // protected variables
89 protected:
90 CProcessContext* mContext;
91 CMemoryAllocationManager* mMemMan;
92
93 CPROCESSHASH<cint64,CSignatureBlockingCandidateData> mSigBlockCandidateHash;
94
95 // private methods
96 private:
97
98 // private variables
99 private:
100
101
102 };
103
104 }; // end namespace Process
105
106 }; // end namespace Kernel
107
108 }; // end namespace Reasoner
109
110 }; // end namespace Konclude
111
112 #endif // KONCLUDE_REASONER_KERNEL_PROCESS_CSIGNATUREBLOCKINGCANDIDATEHASH_H