Debian Codegraph @

Source/Utilities/CHashableIntConvertedNTuble.hpp

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_UTILITIES_CNTUBLE_H
22 #define KONCLUDE_UTILITIES_CNTUBLE_H
23
24 // Libraries includes
25 #include <QByteArray>
26
27 // Namespace includes
28
29
30 // Other includes
31
32
33 // Logger includes
34 #include "Logger/CLogger.h"
35
36
37 namespace Konclude {
38
39 namespace Utilities {
40
41 /*!
42 *
43 * \class CNTuble
44 * \author Andreas Steigmiller
45 * \version 0.1
46 * \brief TODO
47 *
48 */
49 template<class T>
50 class CHashableIntConvertedNTuble : public QByteArray {
51
52 // public Functions
53 public:
54 //! Constructor
55 CHashableIntConvertedNTuble();
56 //! Destructor
57 virtual ~CHashableIntConvertedNTuble();
58
59 CHashableIntConvertedNTuble<T>& addValue(T value);
60
61
62 // private Functions
63 private:
64
65 // private Variables
66 private:
67
68 };
69
70
71 template<class T>
72 CHashableIntConvertedNTuble<T>::CHashableIntConvertedNTuble() {
73 }
74
75
76 template<class T>
77 CHashableIntConvertedNTuble<T>::~CHashableIntConvertedNTuble() {
78 }
79
80
81 template<class T>
82 CHashableIntConvertedNTuble<T>& CHashableIntConvertedNTuble<T>::addValue(T value) {
83 //QByteArray newValByteArray;
84 //newValByteArray.append(QString::number((qint64)value));
85 //newValByteArray.append(':');
86 //append(newValByteArray);
87
88 append(QByteArray().setNum((qint64)value));
89 return *this;
90 }
91
92
93
94
95
96
97 }; // end namespace Utilities
98
99 }; // end namespace Konclude
100
101 #endif // KONCLUDE_UTILITIES_CNTUBLE_H