Home
last modified time | relevance | path

Searched refs:borrowed (Results 1 – 25 of 89) sorted by relevance

1234

/third_party/boost/boost/python/detail/
Dborrowed_ptr.hpp16 template<class T> class borrowed class
29 struct is_borrowed_ptr<borrowed<T>*>
35 struct is_borrowed_ptr<borrowed<T> const*>
41 struct is_borrowed_ptr<borrowed<T> volatile*>
47 struct is_borrowed_ptr<borrowed<T> const volatile*>
58 struct is_borrowed<borrowed<T> >
73 inline T* get_managed_object(detail::borrowed<T> const volatile* p, tag_t) in get_managed_object()
/third_party/boost/libs/python/test/
Dborrowed.cpp25 assert_borrowed_ptr(borrowed((PyObject*)0)); in main()
26 assert_borrowed_ptr(borrowed((PyTypeObject*)0)); in main()
27 assert_borrowed_ptr((detail::borrowed<PyObject> const*)0); in main()
28 assert_borrowed_ptr((detail::borrowed<PyObject> volatile*)0); in main()
29 assert_borrowed_ptr((detail::borrowed<PyObject> const volatile*)0); in main()
Dcallbacks.cpp90 return call<char const*>(f, borrowed(s)); in apply_cstring_pyobject()
107 return call<handle<> >(x.get(), type_handle(borrowed(x->ob_type))); in apply_to_own_type()
Dbuiltin_converters.cpp47 using boost::python::borrowed;
52 return handle<PyTypeObject>(borrowed(x->ob_type)); in get_type()
Dtest_overload_resolution.cpp28 using boost::python::borrowed;
/third_party/boost/boost/python/
Dobject_slices.hpp44 return object_slice(x, api::slice_key(borrowed(start.ptr()), borrowed(finish.ptr()))); in slice()
52 return const_object_slice(x, api::slice_key(borrowed(start.ptr()), borrowed(finish.ptr()))); in slice()
60 return object_slice(x, api::slice_key(allow_null((PyObject*)0), borrowed(finish.ptr()))); in slice()
68 return const_object_slice(x, api::slice_key(allow_null((PyObject*)0), borrowed(finish.ptr()))); in slice()
92 return object_slice(x, api::slice_key(borrowed(start.ptr()), allow_null((PyObject*)0))); in slice()
100 return const_object_slice(x, api::slice_key(borrowed(start.ptr()), allow_null((PyObject*)0))); in slice()
Dborrowed.hpp14 inline python::detail::borrowed<T>* borrowed(T* p) in borrowed() function
16 return (detail::borrowed<T>*)p; in borrowed()
Dhandle.hpp31 inline T* manage_ptr(detail::borrowed<null_ok<T> >* p, int) in manage_ptr()
37 inline T* manage_ptr(null_ok<detail::borrowed<T> >* p, int) in manage_ptr()
43 inline T* manage_ptr(detail::borrowed<T>* p, long) in manage_ptr()
Dargs.hpp72 elements[0].default_value = handle<>(python::borrowed(object(value).ptr())); in operator =()
/third_party/boost/libs/python/doc/reference/
Dhandle.qbk25 explicit handle(detail::borrowed<null_ok<Y> >* p);
28 explicit handle(null_ok<detail::borrowed<Y> >* p);
31 explicit handle(detail::borrowed<Y>* p);
64 namespace detail { template <class T> struct borrowed; }
73 explicit handle(detail::borrowed<null_ok<Y> >* p);
83 explicit handle(null_ok<detail::borrowed<Y> >* p);``
92 explicit handle(detail::borrowed<Y>* p);``
172 [section Function `borrowed`]
175 detail::borrowed<T>* borrowed(T* p)
177 return (detail::borrowed<T>*)p;
Dlvalue_from_pytype.qbk76 #include <boost/python/borrowed.hpp>
94 cache = handle<noddy_NoddyObject>(borrowed(x));
Dhas_back_reference.qbk41 handle<> self() { return handle<>(borrowed(m_self)); }
/third_party/boost/libs/python/src/object/
Denum.cpp166 type_handle metatype(borrowed(&PyType_Type)); in new_enum_type()
167 type_handle base(borrowed(&enum_type_object)); in new_enum_type()
244 object type((type_handle(borrowed(type_)))); in to_python()
Dfunction.cpp142 handle<>inner_args(allow_null(borrowed(args))); in call()
406 return handle<function>(borrowed(downcast<function>(keeper.ptr()))); in not_implemented_function()
436 dict = handle<>(borrowed(((PyClassObject*)ns)->cl_dict)); in add_to_namespace()
440 dict = handle<>(borrowed(((PyTypeObject*)ns)->tp_dict)); in add_to_namespace()
457 borrowed( in add_to_namespace()
Dclass.cpp324 return type_handle(borrowed(&class_metatype_object)); in class_metatype()
479 return type_handle(borrowed(&class_type_object)); in class_type()
517 python::borrowed( in query_class()
712 dict d((handle<>(borrowed(self->tp_dict)))); in make_method_static()
/third_party/python/Doc/c-api/
Dweakref.rst61 This function returns a :term:`borrowed reference` to the referenced object.
63 except when it cannot be destroyed before the last usage of the borrowed
Dfunction.rst64 Return a :term:`borrowed reference` to the *__module__* attribute of the
/third_party/boost/boost/python/converter/
Dshared_ptr_from_python.hpp53 (void*)0, shared_ptr_deleter(handle<>(borrowed(source))) ); in construct()
/third_party/boost/libs/mpl/doc/src/refmanual/
DAlgorithms.rst5 of many of the STL algorithms, iteration algorithms borrowed from
/third_party/boost/libs/xpressive/doc/
Dacknowledgements.qbk17 various ideas borrowed liberally from his regex implementation. I'd also like
/third_party/boost/boost/python/suite/indexing/detail/
Dindexing_suite_detail.hpp534 handle<> h(python::borrowed(shared)); in base_get_item_()
653 handle<> l_(python::borrowed(v)); in base_set_slice()
/third_party/python/Doc/extending/
Dextending.rst648 *borrowed* references; do not decrement their reference count!
938 not hold on to the object longer than the owner from which it was borrowed.
939 Using a borrowed reference after the owner has disposed of it risks using freed
944 --- in other words, with a borrowed reference you don't run the risk of leaking
946 that there are some subtle situations where in seemingly correct code a borrowed
947 reference can be used after the owner from which it was borrowed has in fact
950 A borrowed reference can be changed into an owned reference by calling
952 reference was borrowed --- it creates a new owned reference, and gives full
981 The function :c:func:`PyImport_AddModule` also returns a borrowed reference, even
994 from the caller. The caller owns a reference to the object, so the borrowed
[all …]
/third_party/boost/libs/python/example/numpy/
Dgaussian.cpp254 bp::object obj(bp::handle<>(bp::borrowed(p))); in convertible()
/third_party/boost/libs/outcome/doc/src/themes/boostdoc/
DLICENSE26 Parts of the navigation implementation were borrowed from the docdock theme,
/third_party/node/deps/npm/node_modules/har-validator/node_modules/fast-deep-equal/
DREADME.md44 comparing the elements - borrowed from [react-fast-compare](https://github.com/FormidableLabs/react…

1234