Debian Codegraph @

Source/Reasoner/Kernel/Process/CBranchingTag.cpp

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 #include "CBranchingTag.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Kernel {
29
30 namespace Process {
31
32
33 CBranchingTag::CBranchingTag(cint64 branchingTag) : CProcessTag(branchingTag) {
34 }
35
36
37 cint64 CBranchingTag::getBranchingTag() {
38 return CProcessTag::getProcessTag();
39 }
40
41 CBranchingTag* CBranchingTag::setBranchingTag(cint64 branchingTag) {
42 CProcessTag::setProcessTag(branchingTag);
43 return this;
44 }
45
46 CBranchingTag* CBranchingTag::initBranchingTag(cint64 branchingTag) {
47 CProcessTag::initProcessTag(branchingTag);
48 return this;
49 }
50
51 bool CBranchingTag::isBranchingTagUpdated(cint64 branchingTag) {
52 return CProcessTag::isProcessTagUpdated(branchingTag);
53 }
54
55 bool CBranchingTag::isBranchingTagUpToDate(cint64 branchingTag) {
56 return CProcessTag::isProcessTagUpToDate(branchingTag);
57 }
58
59 bool CBranchingTag::updateBranchingTag(cint64 branchingTag) {
60 return CProcessTag::updateProcessTag(branchingTag);
61 }
62
63
64 bool CBranchingTag::addMaximumBranchingTagCandidate(cint64 branchingTag) {
65 if (branchingTag > mProcessTag || branchingTag < 0) {
66 mProcessTag = branchingTag;
67 return true;
68 }
69 return false;
70 }
71
72
73 CBranchingTag* CBranchingTag::incBranchingTag(cint64 incCount) {
74 ++mProcessTag;
75 return this;
76 }
77
78
79 CBranchingTag* CBranchingTag::setBranchingTag(CProcessTagger* processTagger) {
80 return setBranchingTag(processTagger->getCurrentBranchingTag());
81 }
82
83 CBranchingTag* CBranchingTag::initBranchingTag(CProcessTagger* processTagger) {
84 return initBranchingTag(processTagger->getCurrentBranchingTag());
85 }
86
87 bool CBranchingTag::isBranchingTagUpdated(CProcessTagger* processTagger) {
88 return isProcessTagUpdated(processTagger->getCurrentBranchingTag());
89 }
90
91 bool CBranchingTag::isBranchingTagUpToDate(CProcessTagger* processTagger) {
92 return isProcessTagUpToDate(processTagger->getCurrentBranchingTag());
93 }
94
95 bool CBranchingTag::updateBranchingTag(CProcessTagger* processTagger) {
96 return updateBranchingTag(processTagger->getCurrentBranchingTag());
97 }
98
99 }; // end namespace Process
100
101 }; // end namespace Kernel
102
103 }; // end namespace Reasoner
104
105 }; // end namespace Konclude