6 #ifndef KNOWROB_GRAPH_CONNECTIVE_H
7 #define KNOWROB_GRAPH_CONNECTIVE_H
9 #include "knowrob/semweb/GraphTerm.h"
10 #include "knowrob/semweb/GraphPattern.h"
16 class GraphConnective :
public GraphTerm {
32 void addMember(
const std::shared_ptr<GraphTerm> &member) {
33 if (member)
terms_.push_back(member);
42 std::vector<std::shared_ptr<GraphTerm>>
terms_;
virtual ~GraphConnective()=default
void addMember(const std::shared_ptr< GraphTerm > &member)
GraphConnective(GraphTermType termType, const std::vector< std::shared_ptr< GraphTerm >> &terms)
const auto & terms() const
void addPattern(const TriplePatternPtr &pattern)
std::vector< std::shared_ptr< GraphTerm > > terms_
GraphConnective(GraphTermType termType)
GraphTermRule & pattern()
std::shared_ptr< TriplePattern > TriplePatternPtr