Lines Matching refs:PickleableWithDict
77 class PickleableWithDict {
79 PickleableWithDict(const std::string &value) : value(value) { }
85 class PickleableWithDictNew : public PickleableWithDict {
87 using PickleableWithDict::PickleableWithDict;
90 py::class_<PickleableWithDict>(m, "PickleableWithDict", py::dynamic_attr())
92 .def_readwrite("value", &PickleableWithDict::value)
93 .def_readwrite("extra", &PickleableWithDict::extra)
102 auto& p = self.cast<PickleableWithDict&>();
103 new (&p) PickleableWithDict(t[0].cast<std::string>());
112 py::class_<PickleableWithDictNew, PickleableWithDict>(m, "PickleableWithDictNew")