knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
SimpleConjunction.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_SIMPLE_CONJUNCTION_H
7 #define KNOWROB_SIMPLE_CONJUNCTION_H
8 
9 #include "Conjunction.h"
10 #include "FirstOrderLiteral.h"
11 
12 namespace knowrob {
16  class SimpleConjunction : public Conjunction {
17  public:
21  explicit SimpleConjunction(const std::vector<FirstOrderLiteralPtr> &literals);
22 
26  explicit SimpleConjunction(const FirstOrderLiteralPtr &literal);
27 
31  auto &literals() const { return literals_; }
32 
33  protected:
34  std::vector<FirstOrderLiteralPtr> literals_;
35  };
36 
37  using SimpleConjunctionPtr = std::shared_ptr<SimpleConjunction>;
38 
39 } // knowrob
40 
41 #endif //KNOWROB_SIMPLE_CONJUNCTION_H
SimpleConjunction(const FirstOrderLiteralPtr &literal)
SimpleConjunction(const std::vector< FirstOrderLiteralPtr > &literals)
std::vector< FirstOrderLiteralPtr > literals_
std::shared_ptr< SimpleConjunction > SimpleConjunctionPtr
std::shared_ptr< FirstOrderLiteral > FirstOrderLiteralPtr