knowrob  2.1.0
A Knowledge Base System for Cognition-enabled Robots
UnReificationContainer.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_UN_REIFICATION_CONTAINER_H
7 #define KNOWROB_UN_REIFICATION_CONTAINER_H
8 
9 #include <map>
10 #include "knowrob/semweb/TripleContainer.h"
11 
12 namespace knowrob {
16  class UnReificationContainer : public TripleContainer {
17  public:
22  void add(const Triple &triple);
23 
24  // Override TripleContainer
25  ConstGenerator cgenerator() const override;
26 
27  protected:
28  std::map<std::string_view, TriplePtr> triples_;
29 
30  TriplePtr &getUnReifiedTriple(std::string_view subject);
31  };
32 
33 } // knowrob
34 
35 #endif //KNOWROB_UN_REIFICATION_CONTAINER_H
std::function< const TriplePtr *()> ConstGenerator
void add(const Triple &triple)
std::map< std::string_view, TriplePtr > triples_
TriplePtr & getUnReifiedTriple(std::string_view subject)
ConstGenerator cgenerator() const override