Searched refs:module_local (Results 1 - 9 of 9) sorted by relevance
/gem5/ext/pybind11/tests/ |
H A D | test_local_bindings.cpp | 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(fals [all...] |
H A D | pybind11_cross_module_tests.cpp | 24 bind_local<ExternalType1>(m, "ExternalType1", py::module_local()); 25 bind_local<ExternalType2>(m, "ExternalType2", py::module_local()); 36 bind_local<LocalType, 1>(m, "LocalType", py::module_local()) 51 // stl_bind.h binders defaults to py::module_local if the types are local or converting: 64 // The default can, however, be overridden to global using `py::module_local()` or 65 // `py::module_local(false)`. 67 py::bind_vector<NonLocalVec2>(m, "NonLocalVec2", py::module_local()); 70 py::bind_map<NonLocalMap2>(m, "NonLocalMap2", py::module_local(false)); 77 bind_local<MixedGlobalLocal, 200>(m, "MixedGlobalLocal", py::module_local()); 80 bind_local<MixedLocalGlobal, 2000>(m, "MixedLocalGlobal", py::module_local(fals [all...] |
H A D | test_class.cpp | 253 bind_local<LocalExternal, 17>(m, "LocalExternal", py::module_local());
|
/gem5/ext/pybind11/include/pybind11/ |
H A D | attr.h | 68 struct module_local { const bool value; constexpr module_local(bool v = true) : value(v) { } }; function in struct:module_local 204 default_holder(true), module_local(false) { } 255 bool module_local : 1; member in struct:type_record 430 struct process_attribute<module_local> : process_attribute_default<module_local> { 431 static void init(const module_local &l, type_record *r) { r->module_local = l.value; }
|
H A D | iostream.h | 203 return class_<detail::OstreamRedirect>(m, name.c_str(), module_local())
|
H A D | stl_bind.h | 422 bool local = !vtype_info || vtype_info->module_local; 424 Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...); 585 bool local = !tinfo || tinfo->module_local; 588 local = !tinfo || tinfo->module_local; 591 Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
|
H A D | pybind11.h | 897 if (rec.module_local ? get_local_type_info(*rec.type) : get_global_type_info(*rec.type)) 916 tinfo->module_local = rec.module_local; 921 if (rec.module_local) 936 if (rec.module_local) { 1094 auto &instances = record.module_local ? registered_local_types_cpp() : get_internals().registered_types_cpp; 1677 class_<state>(handle(), "iterator", pybind11::module_local()) 1706 class_<state>(handle(), "iterator", pybind11::module_local())
|
H A D | cast.h | 708 if (typeinfo->module_local) { 715 // Global typeinfo has precedence over foreign module_local
|
/gem5/ext/pybind11/include/pybind11/detail/ |
H A D | internals.h | 136 /* true if this is a type registered with py::module_local */ 137 bool module_local : 1; member in struct:type_info
|
Completed in 32 milliseconds