knowrob
2.1.0
A Knowledge Base System for Cognition-enabled Robots
|
Classes | |
struct | DictToMapConverter |
struct | dict_map_converter |
struct | list_to_pylist |
struct | python_optional |
struct | PairToTupleConverter |
struct | string_view_to_python_str |
struct | python_str_to_string_view |
struct | custom_vector_from_seq |
struct | no_gil |
class | gil_lock |
class | PyObj_wrap |
class | guarded_function |
struct | mpl_signature |
struct | mpl_signature< boost::function< Signature > > |
Functions | |
boost::any | python_to_boost_any (const boost::python::object &obj) |
std::unordered_map< std::string, boost::any > | dict_to_map (const boost::python::dict &py_dict) |
void | register_dict_to_map_converter () |
void | register_list_converter () |
void | register_pair_converter () |
void | register_string_view_converter () |
template<typename R , typename... Args> | |
R | call_method (PyObject *self, const char *method, Args... args) |
template<typename R > | |
R | call (const std::function< R()> &goal) |
template<typename R > | |
R | call_with_gil (const std::function< R()> &goal) |
std::string | resolveModulePath (std::string_view modulePath) |
std::string | addToSysPath (const std::filesystem::path &modulePath) |
template<typename T > | |
void | createType () |
template<typename Guard , typename Fn , typename Policy > | |
boost::python::object | with_aux (Fn fn, const Policy &policy) |
template<typename Guard , typename Fn , typename Policy > | |
boost::python::object | with (const Fn &fn, const Policy &policy) |
template<typename Guard , typename Fn > | |
boost::python::object | with (const Fn &fn) |
Create a callable object with guards. More... | |
void | staticKnowRobModuleInit () |
template<> | |
void | createType< DataSource > () |
template<> | |
void | createType< DataSourceHandler > () |
template<> | |
void | createType< Bottom > () |
template<> | |
void | createType< CompoundFormula > () |
template<> | |
void | createType< Conjunction > () |
template<> | |
void | createType< Disjunction > () |
template<> | |
void | createType< FirstOrderLiteral > () |
template<> | |
void | createType< Formula > () |
template<> | |
void | createType< Implication > () |
template<> | |
void | createType< ModalFormula > () |
template<> | |
void | createType< ModalOperator > () |
template<> | |
void | createType< Negation > () |
template<> | |
void | createType< Predicate > () |
template<> | |
void | createType< PredicateIndicator > () |
template<> | |
void | createType< SimpleConjunction > () |
template<> | |
void | createType< Top > () |
template<> | |
void | createType< InterfaceUtils > () |
template<> | |
void | createType< KnowledgeBase > () |
template<> | |
void | createType< Logger > () |
template<> | |
void | createType< PropertyTree > () |
template<> | |
void | createType< Answer > () |
template<> | |
void | createType< AnswerDontKnow > () |
template<> | |
void | createType< AnswerNo > () |
template<> | |
void | createType< AnswerYes > () |
template<> | |
void | createType< ConjunctiveQuery > () |
template<> | |
void | createType< QueryContext > () |
template<> | |
void | createType< QueryParser > () |
template<> | |
void | createType< Token > () |
template<> | |
void | createType< TokenBroadcaster > () |
template<> | |
void | createType< TokenBuffer > () |
template<> | |
void | createType< TokenQueue > () |
template<> | |
void | createType< TokenStream > () |
template<> | |
void | createType< DataDrivenReasoner > () |
template<> | |
void | createType< Goal > () |
template<> | |
void | createType< GoalDrivenReasoner > () |
template<> | |
void | createType< RDFGoal > () |
template<> | |
void | createType< RDFGoalReasoner > () |
template<> | |
void | createType< Reasoner > () |
template<> | |
void | createType< reasoner::Event > () |
template<> | |
void | createType< semweb::Class > () |
template<> | |
void | createType< GraphBuiltin > () |
template<> | |
void | createType< GraphQuery > () |
template<> | |
void | createType< GraphSelector > () |
template<> | |
void | createType< GraphSequence > () |
std::shared_ptr< GraphTerm > | applyBindings_graph (const std::shared_ptr< GraphTerm > &term, const Bindings &bindings) |
template<> | |
void | createType< GraphTerm > () |
template<> | |
void | createType< GraphUnion > () |
template<> | |
void | createType< ImportHierarchy > () |
template<> | |
void | createType< Perspective > () |
template<> | |
void | createType< semweb::Property > () |
template<> | |
void | createType< semweb::Resource > () |
template<> | |
void | createType< Triple > () |
template<> | |
void | createType< TripleContainer > () |
template<> | |
void | createType< TriplePattern > () |
template<> | |
void | createType< Vocabulary > () |
template<> | |
void | createType< Observer > () |
template<> | |
void | createType< QueryableStorage > () |
template<> | |
void | createType< Storage > () |
template<> | |
void | createType< Atom > () |
template<> | |
void | createType< Atomic > () |
TermPtr | applyBindings_t (const TermPtr &t, const Bindings &bindings) |
FormulaPtr | applyBindings_phi (const FormulaPtr &phi, const Bindings &bindings) |
template<> | |
void | createType< Bindings > () |
template<> | |
void | createType< Blank > () |
template<> | |
void | createType< Function > () |
template<> | |
void | createType< IRIAtom > () |
template<> | |
void | createType< ListTerm > () |
template<> | |
void | createType< Numeric > () |
template<> | |
void | createType< RDFNode > () |
template<> | |
void | createType< String > () |
template<> | |
void | createType< Term > () |
template<> | |
void | createType< Variable > () |
template<> | |
void | createType< XSDAtomic > () |
std::string knowrob::py::addToSysPath | ( | const std::filesystem::path & | modulePath | ) |
std::shared_ptr<GraphTerm> knowrob::py::applyBindings_graph | ( | const std::shared_ptr< GraphTerm > & | term, |
const Bindings & | bindings | ||
) |
Definition at line 85 of file GraphTerm.cpp.
FormulaPtr knowrob::py::applyBindings_phi | ( | const FormulaPtr & | phi, |
const Bindings & | bindings | ||
) |
Definition at line 290 of file Bindings.cpp.
Definition at line 286 of file Bindings.cpp.
R knowrob::py::call | ( | const std::function< R()> & | goal | ) |
Call a function and translate boost::python::error_already_set exceptions into PythonError.
goal | the function to call. |
R knowrob::py::call_method | ( | PyObject * | self, |
const char * | method, | ||
Args... | args | ||
) |
R knowrob::py::call_with_gil | ( | const std::function< R()> & | goal | ) |
void knowrob::py::createType | ( | ) |
A template function to create a new type in Python.
T | The C++ type to map into Python. |
void knowrob::py::createType< Answer > | ( | ) |
Definition at line 163 of file Answer.cpp.
void knowrob::py::createType< AnswerDontKnow > | ( | ) |
Definition at line 42 of file AnswerDontKnow.cpp.
void knowrob::py::createType< AnswerNo > | ( | ) |
Definition at line 101 of file AnswerNo.cpp.
void knowrob::py::createType< AnswerYes > | ( | ) |
Definition at line 193 of file AnswerYes.cpp.
void knowrob::py::createType< Atom > | ( | ) |
void knowrob::py::createType< Atomic > | ( | ) |
Definition at line 68 of file Atomic.cpp.
void knowrob::py::createType< Bindings > | ( | ) |
Definition at line 295 of file Bindings.cpp.
void knowrob::py::createType< Blank > | ( | ) |
void knowrob::py::createType< Bottom > | ( | ) |
Definition at line 31 of file Bottom.cpp.
void knowrob::py::createType< CompoundFormula > | ( | ) |
Definition at line 42 of file CompoundFormula.cpp.
void knowrob::py::createType< Conjunction > | ( | ) |
Definition at line 61 of file Conjunction.cpp.
void knowrob::py::createType< ConjunctiveQuery > | ( | ) |
Definition at line 29 of file ConjunctiveQuery.cpp.
void knowrob::py::createType< DataDrivenReasoner > | ( | ) |
Definition at line 229 of file DataDrivenReasoner.cpp.
void knowrob::py::createType< DataSource > | ( | ) |
Definition at line 144 of file DataSource.cpp.
void knowrob::py::createType< DataSourceHandler > | ( | ) |
Definition at line 30 of file DataSourceHandler.cpp.
void knowrob::py::createType< Disjunction > | ( | ) |
Definition at line 82 of file Disjunction.cpp.
void knowrob::py::createType< FirstOrderLiteral > | ( | ) |
Definition at line 43 of file FirstOrderLiteral.cpp.
void knowrob::py::createType< Formula > | ( | ) |
Definition at line 48 of file Formula.cpp.
void knowrob::py::createType< Function > | ( | ) |
Definition at line 69 of file Function.cpp.
void knowrob::py::createType< Goal > | ( | ) |
void knowrob::py::createType< GoalDrivenReasoner > | ( | ) |
Definition at line 98 of file GoalDrivenReasoner.cpp.
void knowrob::py::createType< GraphBuiltin > | ( | ) |
Definition at line 97 of file GraphBuiltin.cpp.
void knowrob::py::createType< GraphQuery > | ( | ) |
Definition at line 96 of file GraphQuery.cpp.
void knowrob::py::createType< GraphSelector > | ( | ) |
Definition at line 151 of file GraphSelector.cpp.
void knowrob::py::createType< GraphSequence > | ( | ) |
Definition at line 24 of file GraphSequence.cpp.
void knowrob::py::createType< GraphTerm > | ( | ) |
Definition at line 90 of file GraphTerm.cpp.
void knowrob::py::createType< GraphUnion > | ( | ) |
Definition at line 24 of file GraphUnion.cpp.
void knowrob::py::createType< Implication > | ( | ) |
Definition at line 23 of file Implication.cpp.
void knowrob::py::createType< ImportHierarchy > | ( | ) |
Definition at line 131 of file ImportHierarchy.cpp.
void knowrob::py::createType< InterfaceUtils > | ( | ) |
Definition at line 175 of file InterfaceUtils.cpp.
void knowrob::py::createType< IRIAtom > | ( | ) |
Definition at line 76 of file IRIAtom.cpp.
void knowrob::py::createType< KnowledgeBase > | ( | ) |
Definition at line 666 of file KnowledgeBase.cpp.
void knowrob::py::createType< ListTerm > | ( | ) |
Definition at line 45 of file ListTerm.cpp.
void knowrob::py::createType< Logger > | ( | ) |
Definition at line 164 of file Logger.cpp.
void knowrob::py::createType< ModalFormula > | ( | ) |
Definition at line 114 of file ModalFormula.cpp.
void knowrob::py::createType< ModalOperator > | ( | ) |
Definition at line 179 of file ModalOperator.cpp.
void knowrob::py::createType< Negation > | ( | ) |
Definition at line 39 of file Negation.cpp.
void knowrob::py::createType< Numeric > | ( | ) |
Definition at line 27 of file Numeric.cpp.
void knowrob::py::createType< Observer > | ( | ) |
Definition at line 30 of file Observer.cpp.
void knowrob::py::createType< Perspective > | ( | ) |
Definition at line 44 of file Perspective.cpp.
void knowrob::py::createType< Predicate > | ( | ) |
Definition at line 95 of file Predicate.cpp.
void knowrob::py::createType< PredicateIndicator > | ( | ) |
Definition at line 37 of file PredicateIndicator.cpp.
void knowrob::py::createType< PropertyTree > | ( | ) |
Definition at line 160 of file PropertyTree.cpp.
void knowrob::py::createType< QueryableStorage > | ( | ) |
Definition at line 462 of file QueryableStorage.cpp.
void knowrob::py::createType< QueryContext > | ( | ) |
Definition at line 14 of file QueryContext.cpp.
void knowrob::py::createType< QueryParser > | ( | ) |
Definition at line 62 of file QueryParser.cpp.
void knowrob::py::createType< RDFGoal > | ( | ) |
Definition at line 36 of file RDFGoal.cpp.
void knowrob::py::createType< RDFGoalReasoner > | ( | ) |
Definition at line 44 of file RDFGoalReasoner.cpp.
void knowrob::py::createType< RDFNode > | ( | ) |
Definition at line 25 of file RDFNode.cpp.
void knowrob::py::createType< Reasoner > | ( | ) |
Definition at line 65 of file Reasoner.cpp.
void knowrob::py::createType< reasoner::Event > | ( | ) |
Definition at line 31 of file ReasonerEvent.cpp.
void knowrob::py::createType< semweb::Class > | ( | ) |
void knowrob::py::createType< semweb::Property > | ( | ) |
Definition at line 196 of file Property.cpp.
void knowrob::py::createType< semweb::Resource > | ( | ) |
Definition at line 88 of file Resource.cpp.
void knowrob::py::createType< SimpleConjunction > | ( | ) |
Definition at line 34 of file SimpleConjunction.cpp.
void knowrob::py::createType< Storage > | ( | ) |
Definition at line 49 of file Storage.cpp.
void knowrob::py::createType< String > | ( | ) |
Definition at line 21 of file String.cpp.
void knowrob::py::createType< Term > | ( | ) |
void knowrob::py::createType< Token > | ( | ) |
void knowrob::py::createType< TokenBroadcaster > | ( | ) |
Definition at line 59 of file TokenBroadcaster.cpp.
void knowrob::py::createType< TokenBuffer > | ( | ) |
Definition at line 59 of file TokenBuffer.cpp.
void knowrob::py::createType< TokenQueue > | ( | ) |
Definition at line 51 of file TokenQueue.cpp.
void knowrob::py::createType< TokenStream > | ( | ) |
Definition at line 142 of file TokenStream.cpp.
void knowrob::py::createType< Top > | ( | ) |
void knowrob::py::createType< Triple > | ( | ) |
Definition at line 395 of file Triple.cpp.
void knowrob::py::createType< TripleContainer > | ( | ) |
Definition at line 75 of file TripleContainer.cpp.
void knowrob::py::createType< TriplePattern > | ( | ) |
Definition at line 498 of file TriplePattern.cpp.
void knowrob::py::createType< Variable > | ( | ) |
Definition at line 37 of file Variable.cpp.
void knowrob::py::createType< Vocabulary > | ( | ) |
Definition at line 271 of file Vocabulary.cpp.
void knowrob::py::createType< XSDAtomic > | ( | ) |
Definition at line 97 of file XSDAtomic.cpp.
std::unordered_map< std::string, boost::any > knowrob::py::dict_to_map | ( | const boost::python::dict & | py_dict | ) |
boost::any knowrob::py::python_to_boost_any | ( | const boost::python::object & | obj | ) |
void knowrob::py::register_dict_to_map_converter | ( | ) |
void knowrob::py::register_list_converter | ( | ) |
void knowrob::py::register_pair_converter | ( | ) |
void knowrob::py::register_string_view_converter | ( | ) |
Definition at line 33 of file string_view.h.
std::string knowrob::py::resolveModulePath | ( | std::string_view | modulePath | ) |
void knowrob::py::staticKnowRobModuleInit | ( | ) |
Initialize the Python module.
Definition at line 134 of file knowrob.cpp.
boost::python::object knowrob::py::with | ( | const Fn & | fn | ) |
boost::python::object knowrob::py::with | ( | const Fn & | fn, |
const Policy & | policy | ||
) |