C++ YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
blackboard_key_info_py.hpp File Reference
#include <pybind11/pybind11.h>
#include <pybind11/stl.h>
#include <cstdint>
#include <stdexcept>
#include <string>
#include <typeinfo>
#include <unordered_map>
#include <vector>
#include "yasmin/blackboard_key_info.hpp"
#include "yasmin/state.hpp"
#include "yasmin/types.hpp"
Include dependency graph for blackboard_key_info_py.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  yasmin::BlackboardKeyInfoPy
 Extension methods for BlackboardKeyInfo. Added via ADL-friendly free functions used by the pybind code. More...

Namespaces

namespace  yasmin
namespace  yasmin::detail

Typedefs

using yasmin::detail::StringVector = std::vector<std::string>
using yasmin::detail::IntVector = std::vector<std::int64_t>
using yasmin::detail::FloatVector = std::vector<double>
using yasmin::detail::BoolVector = std::vector<bool>
using yasmin::detail::StringDict = std::unordered_map<std::string, std::string>
using yasmin::detail::IntDict = std::unordered_map<std::string, std::int64_t>
using yasmin::detail::FloatDict = std::unordered_map<std::string, double>
using yasmin::detail::BoolDict = std::unordered_map<std::string, bool>

Functions

std::vector< uint8_t > yasmin::detail::py_buffer_to_vector (const py::handle &value)
template<typename ByteT>
py::bytes yasmin::detail::byte_vector_to_py_bytes (const std::vector< ByteT > &value)
bool yasmin::detail::is_python_bytes_like (const py::handle &value)
bool yasmin::detail::is_python_int_like (const py::handle &value)
bool yasmin::detail::is_python_float_like (const py::handle &value)
bool yasmin::detail::is_python_number_like (const py::handle &value)
bool yasmin::detail::is_python_sequence_like (const py::handle &value)
template<typename Predicate>
bool yasmin::detail::sequence_matches (const py::sequence &seq, Predicate pred)
template<typename T>
std::vector< T > yasmin::detail::sequence_to_vector (const py::sequence &seq)
bool yasmin::detail::dict_has_only_string_keys (const py::dict &dict)
template<typename Predicate>
bool yasmin::detail::dict_values_match (const py::dict &dict, Predicate pred)
template<typename T>
std::unordered_map< std::string, T > yasmin::detail::dict_to_unordered_map (const py::dict &dict)
template<typename T>
bool yasmin::detail::is_exact_cpp_type (const std::string &type)
BlackboardKeyInfo yasmin::blackboard_key_info_from_pyobject (const std::string &key_name, py::object value)
 Create a BlackboardKeyInfo from a Python object default value.
py::object yasmin::blackboard_key_info_get_py_default (const BlackboardKeyInfo &info)
 Convert a BlackboardKeyInfo default value back to a Python object.