knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
FramedPredicate.h
Go to the documentation of this file.
1 /*
2  * This file is part of KnowRob, please consult
3  * https://github.com/knowrob/knowrob for license details.
4  */
5 
6 #ifndef KNOWROB_FRAMED_PREDICATE_H
7 #define KNOWROB_FRAMED_PREDICATE_H
8 
9 #include "Predicate.h"
10 
11 #include <utility>
12 #include "knowrob/semweb/GraphSelector.h"
13 
14 namespace knowrob {
18  class FramedPredicate {
19  public:
27  : predicate_(std::move(predicate)),
28  graphSelector_(std::move(graphSelector)),
29  reasonerTerm_(std::move(reasonerTerm)) {}
30 
34  auto &predicate() const { return predicate_; }
35 
39  auto &graphSelector() const { return graphSelector_; }
40 
44  auto &reasonerTerm() const { return reasonerTerm_; }
45 
46  protected:
50  };
51 }
52 
53 #endif //KNOWROB_FRAMED_PREDICATE_H
auto & graphSelector() const
auto & reasonerTerm() const
FramedPredicate(PredicatePtr predicate, GraphSelectorPtr graphSelector, AtomPtr reasonerTerm)
GraphSelectorPtr graphSelector_
std::shared_ptr< Predicate > PredicatePtr
Definition: Predicate.h:77
std::shared_ptr< Atom > AtomPtr
Definition: Atom.h:69
std::shared_ptr< const GraphSelector > GraphSelectorPtr
Definition: GraphSelector.h:76