C++ YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
pybind11_utils.hpp File Reference
#include <memory>
#include <pybind11/pybind11.h>
#include "yasmin/blackboard/blackboard.hpp"
#include "yasmin/blackboard/blackboard_pywrapper.hpp"
Include dependency graph for pybind11_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  yasmin
 
namespace  yasmin::pybind11_utils
 

Functions

std::shared_ptr< yasmin::blackboard::Blackboardyasmin::pybind11_utils::convert_blackboard_from_python (py::object blackboard_obj)
 Convert a Python blackboard object to a C++ Blackboard shared pointer.
 
template<typename Func>
auto yasmin::pybind11_utils::wrap_blackboard_callback (py::function cb)
 Wrap a C++ callback to handle BlackboardPyWrapper conversion (void return).
 
template<typename ReturnType>
auto yasmin::pybind11_utils::wrap_blackboard_callback_with_return (py::function cb)
 Wrap a C++ callback to handle BlackboardPyWrapper conversion with return value.
 
template<typename ClassType, typename StateType>
void yasmin::pybind11_utils::add_call_operator (ClassType &cls)
 Helper to define the standard call method for State classes.