kDB: Knowledge DataBase
Loading...
Searching...
No Matches
Inverter.h
1#include <kDB/SPARQL/Algebra/NodeVisitorImplementation.h>
2
3namespace kDB::SPARQL::Algebra::Visitors
4{
5
6// TODO remove and reuse the one from NodeVisitorImplementation
7#undef __KDB_SPARQL_ALGEBRA_NODE_VISITOR_OVERLOAD
8#define __KDB_SPARQL_ALGEBRA_NODE_VISITOR_OVERLOAD(_NAME_, _I_) \
9 NodeCSP visit(_NAME_##CSP _node) override;
10
15 {
17 public:
18 Inverter();
19 ~Inverter();
23 static NodeCSP invert(NodeCSP _node);
24 protected:
25 NodeCSP visitDefault(NodeCSP _node) override;
26 KDB_SPARQL_ALGEBRA_NODE_VISITOR_OVERLOAD(InsertData, DeleteData);
27 private:
28 struct Private;
29 Private* const d;
30 };
31} // namespace kDB::SPARQL::Algebra::Visitors
32
33#undef __KDB_SPARQL_ALGEBRA_NODE_VISITOR_OVERLOAD
Definition NodeVisitorImplementation.h:22
static NodeCSP invert(NodeCSP _node)
Definition Inverter.cpp:17