Debian Codegraph @

Source/Utilities/Container/CNegLinker.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_UTILITIES_CONTAINER_CNEGLINKER_H
22 #define KONCLUDE_UTILITIES_CONTAINER_CNEGLINKER_H
23
24 // Namespace includes
25 #include "ContainerSettings.h"
26 #include "CLinker.h"
27 #include "CNegator.h"
28
29 // Library includes
30
31 // Other includes
32
33 // Logger includes
34 #include "Logger/CLogger.h"
35
36
37 namespace Konclude {
38
39 namespace Utilities {
40
41 namespace Container {
42
43
44 /*!
45 *
46 * \class CNegLinkerBase
47 * \author Andreas Steigmiller
48 * \version 0.1
49 * \brief TODO
50 *
51 */
52 template<class T, class S>
53 class CNegLinkerBase : public CLinkerBase<T,S>, public CNegator {
54 // public methods
55 public:
56 // Constructor
57 inline CNegLinkerBase();
58 inline CNegLinkerBase(const T& dataElement, bool negation = false, CNegLinkerBase<T,S>* nextLink = nullptr);
59
60 //! Destructor
61 inline ~CNegLinkerBase();
62
63 inline S* initNegLinker(const T& dataElement, bool negation = false, CNegLinkerBase<T,S>* nextLink = nullptr);
64
65 // protected methods
66 protected:
67
68 // protected variables
69 protected:
70
71 // private methods
72 private:
73
74 // private variables
75 private:
76 };
77
78
79 /*!
80 *
81 * \class CNegLinker
82 * \author Andreas Steigmiller
83 * \version 0.1
84 * \brief TODO
85 *
86 */
87 template<class T>
88 class CXNegLinker : public CNegLinkerBase<T,CXNegLinker<T> > {
89 // public methods
90 public:
91 // Constructor
92 inline CXNegLinker() : CNegLinkerBase<T,CXNegLinker<T> >() {}
93 inline CXNegLinker(const T& dataElement, bool negation = false, CXNegLinker<T>* nextLink = nullptr) : CNegLinkerBase<T,CXNegLinker<T> >(dataElement,negation,nextLink) {}
94
95 //! Destructor
96 inline ~CXNegLinker() {}
97 };
98
99
100 }; // end namespace Container
101
102 }; // end namespace Utilities
103
104 }; // end namespace Konclude
105
106 #include "CNegLinker.cpp"
107
108 #endif // KONCLUDE_UTILITIES_CONTAINER_CNEGLINKER_H