Debian Codegraph @

Source/Reasoner/Answerer/CRedlandRasqalSubQueryBoundNodeResolvingHash.h

raw ◀ ▶
1 Debian patch touch this file
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 #ifdef KONCLUDE_REDLAND_INTEGRATION
21
22 #ifndef KONCLUDE_REASONER_ANSWERER_CREDLANDRASQALSUBQUERYBOUNDNODERESOLVINGHASH_H
23 #define KONCLUDE_REASONER_ANSWERER_CREDLANDRASQALSUBQUERYBOUNDNODERESOLVINGHASH_H
24
25 // Libraries includes
•26 #include <librdf.h>
27
28
29 // Namespace includes
30 #include "AnswererSettings.h"
31 #include "CRedlandRasqalSubQueryBoundNodeResolvingHashData.h"
32 #include "CRedlandRasqalLiteralHasher.h"
33
34
35
36 // Other includes
37 #include "Reasoner/Query/CVariableBindingsAnswersResult.h"
38
39
40 // Logger includes
41 #include "Logger/CLogger.h"
42
43
44 namespace Konclude {
45
46 namespace Reasoner {
47
48 using namespace Query;
49
50 namespace Answerer {
51
52
53 /*!
54 *
55 * \class CRedlandRasqalSubQueryBoundNodeResolvingHash
56 * \author Andreas Steigmiller
57 * \version 0.1
58 * \brief TODO
59 *
60 */
61 class CRedlandRasqalSubQueryBoundNodeResolvingHash : public QHash<CRedlandRasqalLiteralHasher, CRedlandRasqalSubQueryBoundNodeResolvingHashData*> {
62 // public methods
63 public:
64 //! Constructor
65 CRedlandRasqalSubQueryBoundNodeResolvingHash(CVariableBindingsAnswersResult* varIndBindsResult);
66
67 ~CRedlandRasqalSubQueryBoundNodeResolvingHash();
68
69 CVariableBindingsAnswersResult* getResolvingVariableBindingsResult();
70 CRedlandRasqalSubQueryBoundNodeResolvingHashData* getBoundNodeResolvingData(rasqal_literal* node);
71
72 bool isResolved();
73 CRedlandRasqalSubQueryBoundNodeResolvingHash* setResolved(bool resolved);
74
75
76 // protected methods
77 protected:
78
79 // protected variables
80 protected:
81 CVariableBindingsAnswersResult* mVarIndBindsResult;
82 bool mResolved;
83
84 // private methods
85 private:
86
87 // private variables
88 private:
89
90 };
91
92 }; // end namespace Answerer
93
94 }; // end namespace Reasoner
95
96 }; // end namespace Konclude
97
98 #endif // KONCLUDE_REASONER_ANSWERER_CREDLANDRASQALSUBQUERYBOUNDNODERESOLVINGHASH_H
99
100 #endif // KONCLUDE_REDLAND_INTEGRATION