Home
last modified time | relevance | path

Searched refs:module_local (Results 1 – 19 of 19) sorted by relevance

/external/python/pybind11/tests/
Dpybind11_cross_module_tests.cpp24 bind_local<ExternalType1>(m, "ExternalType1", py::module_local()); in PYBIND11_MODULE()
25 bind_local<ExternalType2>(m, "ExternalType2", py::module_local()); in PYBIND11_MODULE()
36 bind_local<LocalType, 1>(m, "LocalType", py::module_local()) in PYBIND11_MODULE()
67 py::bind_vector<NonLocalVec2>(m, "NonLocalVec2", py::module_local()); in PYBIND11_MODULE()
70 py::bind_map<NonLocalMap2>(m, "NonLocalMap2", py::module_local(false)); in PYBIND11_MODULE()
77 bind_local<MixedGlobalLocal, 200>(m, "MixedGlobalLocal", py::module_local()); in PYBIND11_MODULE()
80 bind_local<MixedLocalGlobal, 2000>(m, "MixedLocalGlobal", py::module_local(false)); in PYBIND11_MODULE()
100 py::class_<pets::Pet>(m, "Pet", py::module_local()) in PYBIND11_MODULE()
107 py::class_<MixGL>(m, "MixGL", py::module_local()).def(py::init<int>()); in PYBIND11_MODULE()
110 py::class_<MixGL2>(m, "MixGL2", py::module_local()).def(py::init<int>()); in PYBIND11_MODULE()
Dtest_local_bindings.cpp24 bind_local<LocalType, -1>(m, "LocalType", py::module_local()) in TEST_SUBMODULE()
46 bind_local<LocalExternal, 7>(m, "LocalExternal", py::module_local()); in TEST_SUBMODULE()
62 py::bind_vector<LocalVec2>(m, "LocalVec2", py::module_local()); in TEST_SUBMODULE()
63 py::bind_map<NonLocalMap2>(m, "NonLocalMap2", py::module_local(false)); in TEST_SUBMODULE()
69 bind_local<MixedGlobalLocal, 100>(m, "MixedGlobalLocal", py::module_local(false)); in TEST_SUBMODULE()
72 bind_local<MixedLocalGlobal, 1000>(m, "MixedLocalGlobal", py::module_local()); in TEST_SUBMODULE()
90 py::class_<pets::Pet>(m, "Pet", py::module_local()) in TEST_SUBMODULE()
Dtest_class.cpp289 bind_local<LocalExternal, 17>(m, "LocalExternal", py::module_local()); in TEST_SUBMODULE()
/external/python/pybind11/include/pybind11/
Dattr.h72 struct module_local { const bool value; constexpr module_local(bool v = true) : value(v) { } }; in value() argument
224 default_holder(true), module_local(false), is_final(false) { }
275 bool module_local : 1;
482 struct process_attribute<module_local> : process_attribute_default<module_local> {
483 static void init(const module_local &l, type_record *r) { r->module_local = l.value; }
Dstl_bind.h449 bool local = !vtype_info || vtype_info->module_local;
451 Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
612 bool local = !tinfo || tinfo->module_local;
615 local = !tinfo || tinfo->module_local;
618 Class_ cl(scope, name.c_str(), pybind11::module_local(local), std::forward<Args>(args)...);
Diostream.h214 return class_<detail::OstreamRedirect>(m, name.c_str(), module_local()) in PYBIND11_NAMESPACE_END()
Dpybind11.h1088 if (rec.module_local ? get_local_type_info(*rec.type) : get_global_type_info(*rec.type)) in PYBIND11_NAMESPACE_BEGIN()
1107 tinfo->module_local = rec.module_local; in PYBIND11_NAMESPACE_BEGIN()
1112 if (rec.module_local) in PYBIND11_NAMESPACE_BEGIN()
1127 if (rec.module_local) { in PYBIND11_NAMESPACE_BEGIN()
1299 …auto &instances = record.module_local ? registered_local_types_cpp() : get_internals().registered_…
1899 class_<state>(handle(), "iterator", pybind11::module_local())
1928 class_<state>(handle(), "iterator", pybind11::module_local())
Dcast.h729 if (typeinfo->module_local) { in load_impl()
/external/python/pybind11/docs/advanced/cast/
Dstl.rst223 (via the :ref:`module_local` feature). If the container element types are
225 ``py::module_local()`` the container binding will have ``py::module_local()``
234 ``py::module_local()`` (to make the binding module-local) or
235 ``py::module_local(false)`` (to make the binding global) into the
240 py::bind_vector<std::vector<int>>(m, "VectorInt", py::module_local(false));
246 See :ref:`module_local` for more details on module-local bindings.
/external/tensorflow/tensorflow/python/profiler/internal/
Dtraceme_wrapper.cc26 py::class_<TraceMeWrapper>(m, "TraceMe", py::module_local()) in PYBIND11_MODULE()
/external/tensorflow/tensorflow/compiler/xla/python/
Dprofiler.cc51 py::module_local()); in BuildProfilerSubmodule()
/external/python/pybind11/docs/
Dupgrade.rst241 * Some new features, like ``py::module_local`` bindings, can work as intended.
285 ``std::vector<int>``. :ref:`module_local` were added to resolve this (see
291 as ``py::module_local`` if their elements are: builtins (``int``, ``float``,
292 etc.), not bound using ``py::class_``, or bound as ``py::module_local``. For
298 accept foreign ``py::module_local`` types in the direction of Python-to-C++.
305 ``py::module_local(false)``.
Dchangelog.rst774 * Fixed a nullptr dereference when loading a ``py::module_local`` type
848 * Support for ``py::module_local`` types which allow multiple modules to
851 now default to ``py::module_local`` if their elements are builtins or
852 local types. See :ref:`module_local` for details.
/external/python/pybind11/docs/advanced/
Dclasses.rst984 localized to the module by passing the ``py::module_local()`` attribute into
990 py::class<pets::Pet>(m, "Pet", py::module_local())
996 py::class<pets::Pet>(m, "Pet", py::module_local())
1010 passing such a ``py::module_local`` type into a C++ function, the module-local
1026 >>> import cats, dogs, frogs # No error because of the added py::module_local()
1033 It is possible to use ``py::module_local()`` registrations in one module even
1042 header) apply ``py::module_local`` by default when the bound type might
1057 that demonstrate how ``py::module_local()`` works.
/external/python/pybind11/tools/
Dpybind11Tools.cmake181 # py::module_local). We force it on everything inside the `pybind11`
Dpybind11NewTools.cmake221 # py::module_local). We force it on everything inside the `pybind11`
/external/python/pybind11/include/pybind11/detail/
Dinternals.h149 bool module_local : 1; member
Dclass.h213 if (tinfo->module_local) in pybind11_meta_dealloc()
/external/tensorflow/tensorflow/python/util/
Dtf_stack.cc329 py::class_<StackTraceWrapper>(m, "StackTraceWrapper", py::module_local(true)) in PYBIND11_MODULE()