Debian Codegraph @

Source/Reasoner/Kernel/Cache/CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker.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 "CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker.h"
22
23
24 namespace Konclude {
25
26 namespace Reasoner {
27
28 namespace Kernel {
29
30 namespace Cache {
31
32 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker() {
33 }
34
35 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker* CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::initLabelWriteData(cint64 signature, cint64 labelType) {
36 initCachingStatusFlags();
37 mLabelType = labelType;
38 mDetValueCount = 0;
39 mSignature = signature;
40 mDetValueLinker = nullptr;
41 mTmpData = nullptr;
42 mStatusFlags = 0;
43 return this;
44 }
45
46
47
48 cint64 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::getSignature() {
49 return mSignature;
50 }
51
52 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker* CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::setSignature(cint64 signature) {
53 mSignature = signature;
54 return this;
55 }
56
57
58 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker* CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::appendCacheValueLinker(CBackendRepresentativeMemoryLabelValueLinker* linker) {
59 CBackendRepresentativeMemoryLabelValueLinker* linkerIt = linker;
60 while (linkerIt) {
61 ++mDetValueCount;
62 linkerIt = linkerIt->getNext();
63 }
64 mDetValueLinker = linker->append(mDetValueLinker);
65 return this;
66 }
67
68
69 CBackendRepresentativeMemoryLabelValueLinker* CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::getCacheValueLinker() {
70 return mDetValueLinker;
71 }
72
73
74 cint64 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::getCacheValueCount() {
75 return mDetValueCount;
76 }
77
78
79 void* CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::getTemporaryData() {
80 return mTmpData;
81 }
82
83 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker* CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::setTemporaryData(void* tmpData) {
84 mTmpData = tmpData;
85 return this;
86 }
87
88 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker* CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::clearTemporaryData() {
89 mTmpData = nullptr;
90 return this;
91 }
92
93 cint64 CBackendRepresentativeMemoryCacheTemporaryLabelWriteDataLinker::getLabelType() {
94 return mLabelType;
95 }
96
97
98 }; // end namespace Cache
99
100 }; // end namespace Kernel
101
102 }; // end namespace Reasoner
103
104 }; // end namespace Konclude