Debian Codegraph @

Source/Reasoner/Query/CVariableBindingsAnswerResultMapOrdering.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_QUERY_CVARIABLEBINDINGSANSWERRESULTMAPORDERING_H
22 #define KONCLUDE_REASONER_QUERY_CVARIABLEBINDINGSANSWERRESULTMAPORDERING_H
23
24 // Libraries includes
25 #include "CVariableBindingsAnswerResult.h"
26
27 // Namespace includes
28
29 // Other includes
30
31 // Logger includes
32 #include "Logger/CLogger.h"
33
34
35 namespace Konclude {
36
37 namespace Reasoner {
38
39 namespace Query {
40
41 /*!
42 *
43 * \class CVariableBindingsAnswerResultMapOrdering
44 * \author Andreas Steigmiller
45 * \version 0.1
46 * \brief TODO
47 *
48 */
49 class CVariableBindingsAnswerResultMapOrdering {
50 // public methods
51 public:
52 //! Constructor
53 CVariableBindingsAnswerResultMapOrdering(cint64 orderingVarCount);
54 ~CVariableBindingsAnswerResultMapOrdering();
55
56 cint64 getVariableIndex(cint64 varNumber);
57 CVariableBindingsAnswerResultMapOrdering* setVariableIndex(cint64 varNumber, cint64 index);
58
59 cint64 getVariableCount();
60
61 bool isDistinct();
62 CVariableBindingsAnswerResultMapOrdering* setDistinct(bool distinct);
63
64 bool isAscending(cint64 varNumber);
65 CVariableBindingsAnswerResultMapOrdering* setAscending(cint64 varNumber, bool ascending);
66
67 // protected methods
68 protected:
69
70 // protected variables
71 protected:
72 cint64 mOrderingVarCount;
73 cint64* mVarIdxArray;
74 bool mDistinct;
75 bool* mAscendingArray;
76
77 // private methods
78 private:
79
80 // private variables
81 private:
82
83 };
84
85
86
87 }; // end namespace Query
88
89 }; // end namespace Reasoner
90
91 }; // end namespace Konclude
92
93 #endif // KONCLUDE_REASONER_QUERY_CVARIABLEBINDINGSANSWERRESULTMAPORDERING_H