7 #include "knowrob/queries/Token.h"
8 #include "knowrob/knowrob.h"
9 #include "knowrob/integration/python/utils.h"
10 #include "knowrob/queries/EndOfEvaluation.h"
11 #include "knowrob/queries/Answer.h"
33 return "EndOfEvaluation";
35 return ((
const Answer *)
this)->stringFormOfAnswer();
37 return "UnknownToken";
44 enum_<TokenType>(
"TokenType")
48 class_<Token, std::shared_ptr<Token>, boost::noncopyable>
54 class_<EndOfEvaluation, bases<Token>, std::shared_ptr<EndOfEvaluation>>
55 (
"EndOfEvaluation", no_init)
59 register_ptr_to_python<std::shared_ptr<const Token> >();
60 implicitly_convertible<std::shared_ptr<Token>, std::shared_ptr<const Token> >();
TokenType tokenType() const
bool indicatesEndOfEvaluation() const
std::string stringForm() const
void createType< Token >()
void createType< Answer >()
void hashCombine(std::size_t &seed, const std::size_t &v)