C++ YASMIN (Yet Another State MachINe)
Loading...
Searching...
No Matches
yasmin::detail Namespace Reference

Typedefs

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

Functions

std::vector< uint8_t > py_buffer_to_vector (const py::handle &value)
template<typename ByteT>
py::bytes byte_vector_to_py_bytes (const std::vector< ByteT > &value)
bool is_python_bytes_like (const py::handle &value)
bool is_python_int_like (const py::handle &value)
bool is_python_float_like (const py::handle &value)
bool is_python_number_like (const py::handle &value)
bool is_python_sequence_like (const py::handle &value)
template<typename Predicate>
bool sequence_matches (const py::sequence &seq, Predicate pred)
template<typename T>
std::vector< T > sequence_to_vector (const py::sequence &seq)
bool dict_has_only_string_keys (const py::dict &dict)
template<typename Predicate>
bool dict_values_match (const py::dict &dict, Predicate pred)
template<typename T>
std::unordered_map< std::string, T > dict_to_unordered_map (const py::dict &dict)
template<typename T>
bool is_exact_cpp_type (const std::string &type)

Typedef Documentation

◆ BoolDict

using yasmin::detail::BoolDict = std::unordered_map<std::string, bool>

◆ BoolVector

using yasmin::detail::BoolVector = std::vector<bool>

◆ FloatDict

using yasmin::detail::FloatDict = std::unordered_map<std::string, double>

◆ FloatVector

using yasmin::detail::FloatVector = std::vector<double>

◆ IntDict

using yasmin::detail::IntDict = std::unordered_map<std::string, std::int64_t>

◆ IntVector

using yasmin::detail::IntVector = std::vector<std::int64_t>

◆ StringDict

using yasmin::detail::StringDict = std::unordered_map<std::string, std::string>

◆ StringVector

using yasmin::detail::StringVector = std::vector<std::string>

Function Documentation

◆ byte_vector_to_py_bytes()

template<typename ByteT>
py::bytes yasmin::detail::byte_vector_to_py_bytes ( const std::vector< ByteT > & value)
inline

◆ dict_has_only_string_keys()

bool yasmin::detail::dict_has_only_string_keys ( const py::dict & dict)
inline

◆ dict_to_unordered_map()

template<typename T>
std::unordered_map< std::string, T > yasmin::detail::dict_to_unordered_map ( const py::dict & dict)
inline

◆ dict_values_match()

template<typename Predicate>
bool yasmin::detail::dict_values_match ( const py::dict & dict,
Predicate pred )
inline

◆ is_exact_cpp_type()

template<typename T>
bool yasmin::detail::is_exact_cpp_type ( const std::string & type)
inline

◆ is_python_bytes_like()

bool yasmin::detail::is_python_bytes_like ( const py::handle & value)
inline

◆ is_python_float_like()

bool yasmin::detail::is_python_float_like ( const py::handle & value)
inline

◆ is_python_int_like()

bool yasmin::detail::is_python_int_like ( const py::handle & value)
inline

◆ is_python_number_like()

bool yasmin::detail::is_python_number_like ( const py::handle & value)
inline

◆ is_python_sequence_like()

bool yasmin::detail::is_python_sequence_like ( const py::handle & value)
inline

◆ py_buffer_to_vector()

std::vector< uint8_t > yasmin::detail::py_buffer_to_vector ( const py::handle & value)
inline

◆ sequence_matches()

template<typename Predicate>
bool yasmin::detail::sequence_matches ( const py::sequence & seq,
Predicate pred )
inline

◆ sequence_to_vector()

template<typename T>
std::vector< T > yasmin::detail::sequence_to_vector ( const py::sequence & seq)
inline