33 using LocalMap = std::unordered_map<std::string, LocalType>;
36 using NonLocalMap = std::unordered_map<std::string, NonLocalType>;
43 const char *
what() const noexcept
override {
return message.c_str(); }
46 std::string message =
"";
53 const char *
what() const noexcept
override {
return message.c_str(); }
56 std::string message =
"";
68 template <
typename T,
int Adjust = 0,
typename... Args>
70 return py::class_<T>(std::forward<Args>(
args)...).def(py::init<int>()).def(
"get", [](
T &
i) {
81 const std::string &
name()
const {
return name_; }
py::class_< T > bind_local(Args &&...args)
LocalException(const char *m)
PYBIND11_MAKE_OPAQUE(LocalVec)
std::unordered_map< std::string, uint8_t > NonLocalMap2
std::vector< LocalType > LocalVec
std::vector< NonLocal2 > LocalVec2
const std::string & name() const
std::unordered_map< std::string, LocalType > LocalMap
std::vector< NonLocal2 > NonLocalVec2
const char * what() const noexcept override
const char * what() const noexcept override
Eigen::Triplet< double > T
std::vector< NonLocalType > NonLocalVec
Annotation for function names.
Simple class used to test py::local:
std::unordered_map< std::string, NonLocalType > NonLocalMap
LocalSimpleException(const char *m)