Debian Codegraph @

Source/Reasoner/Kernel/Process/CBackendNeighbourExpansionControllingData.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_CBACKENDNEIGHBOUREXPANSIONCONTROLLINGDATA_H
22 #define KONCLUDE_REASONER_KERNEL_PROCESS_CBACKENDNEIGHBOUREXPANSIONCONTROLLINGDATA_H
23
24 // Libraries includes
25
26
27 // Namespace includes
28 #include "ProcessSettings.h"
29 #include "CProcessContext.h"
30
31
32 // Other includes
33 #include "Reasoner/Kernel/Process/Dependency/CREUSEBACKENDEXPANSIONMODESDependencyNode.h"
34
35 #include "Utilities/Container/CLinker.h"
36
37
38 // Logger includes
39 #include "Logger/CLogger.h"
40
41
42
43 namespace Konclude {
44
45 namespace Reasoner {
46
47 namespace Kernel {
48
49 namespace Process {
50
51 using namespace Dependency;
52
53 /*!
54 *
55 * \class CBackendNeighbourExpansionControllingData
56 * \author Andreas Steigmiller
57 * \version 0.1
58 * \brief TODO
59 *
60 */
61 class CBackendNeighbourExpansionControllingData {
62 // public methods
63 public:
64 //! Constructor
65 CBackendNeighbourExpansionControllingData(CProcessContext* processContext);
66
67 CBackendNeighbourExpansionControllingData* initExpansionControllingData(CBackendNeighbourExpansionControllingData* contData);
68
69 cint64 getExpandedNeighbourLinkCount();
70 CBackendNeighbourExpansionControllingData* incExpandedNeighbourLinkCount(cint64 count = 1);
71
72
73 CREUSEBACKENDEXPANSIONMODESDependencyNode* getReuseModesDependencyNode();
74 CBackendNeighbourExpansionControllingData* setReuseModesDependencyNode(CREUSEBACKENDEXPANSIONMODESDependencyNode* depNode);
75
76 bool hasExpansionReusingMode();
77
78 bool isFixedReuseExpansionMode();
79 CBackendNeighbourExpansionControllingData* setFixedReuseExpansionMode(bool active);
80
81 bool isPrioritizedReuseExpansionMode();
82 CBackendNeighbourExpansionControllingData* setPrioritizedReuseExpansionMode(bool active);
83
84 CDependencyTrackPoint* getReuseContinuingDependencyTrackPoint();
85 CBackendNeighbourExpansionControllingData* setReuseContinuingDependencyTrackPoint(CDependencyTrackPoint* depTrackPoint);
86
87 CXLinker<CIndividualProcessNode*>* getLastBackendExpandedEnsuringExistingIndividualLinksLinker();
88 CBackendNeighbourExpansionControllingData* setLastBackendExpandedEnsuringExistingIndividualLinksLinker(CXLinker<CIndividualProcessNode*>* indiLinker);
89
90
91 CXLinker<CIndividualProcessNode*>* getCutBackendNeighbourExpansionIndividualLinker();
92 CBackendNeighbourExpansionControllingData* addCutBackendNeighbourExpansionIndividualLinker(CXLinker<CIndividualProcessNode*>* indiLinker);
93
94 CXLinker<CIndividualProcessNode*>* getLastCutBackendNeighbourExpansionEnsuringExistingIndividualLinksLinker();
95 CBackendNeighbourExpansionControllingData* setLastCutBackendNeighbourExpansionEnsuringExistingIndividualLinksLinker(CXLinker<CIndividualProcessNode*>* indiLinker);
96
97 // protected methods
98 protected:
99
100 // protected variables
101 protected:
102 cint64 mExpandedNeighbourLinkCount;
103 CREUSEBACKENDEXPANSIONMODESDependencyNode* mReuseModesDepNode;
104 bool mFixedReuseExpansionMode;
105 bool mPrioritizedReuseExpansionMode;
106 CDependencyTrackPoint* mReuseContinuingDependencyTrackPoint;
107
108 CXLinker<CIndividualProcessNode*>* mLastBackendExpandedEnsuringExistingIndividualLinksLinker;
109 CXLinker<CIndividualProcessNode*>* mCutBackendNeighbourExpansionIndividualLinker;
110 CXLinker<CIndividualProcessNode*>* mLastCutBackendNeighbourExpansionEnsuringExistingIndividualLinksLinker;
111
112 // private methods
113 private:
114
115 // private variables
116 private:
117
118 };
119
120 }; // end namespace Process
121
122 }; // end namespace Kernel
123
124 }; // end namespace Reasoner
125
126 }; // end namespace Konclude
127
128 #endif // KONCLUDE_REASONER_KERNEL_PROCESS_CBACKENDNEIGHBOUREXPANSIONCONTROLLINGDATA_H