Lines Matching refs:module_local
2 tests/test_local_bindings.cpp -- tests the py::module_local class feature which makes a class
23 // Register a class with py::module_local:
24 bind_local<LocalType, -1>(m, "LocalType", py::module_local())
39 // py::module_local declarations should be visible across compilation units that get linked together;
46 bind_local<LocalExternal, 7>(m, "LocalExternal", py::module_local());
52 // stl_bind.h binders defaults to py::module_local if the types are local or converting:
60 // They can, however, be overridden to global using `py::module_local(false)`:
62 py::bind_vector<LocalVec2>(m, "LocalVec2", py::module_local());
63 py::bind_map<NonLocalMap2>(m, "NonLocalMap2", py::module_local(false));
69 bind_local<MixedGlobalLocal, 100>(m, "MixedGlobalLocal", py::module_local(false));
72 bind_local<MixedLocalGlobal, 1000>(m, "MixedLocalGlobal", py::module_local());
90 py::class_<pets::Pet>(m, "Pet", py::module_local())