source: NonGTP/Boost/boost/python/object/find_instance.hpp @ 857

Revision 857, 865 bytes checked in by igarcia, 19 years ago (diff)
Line 
1// Copyright David Abrahams 2002.
2// Distributed under the Boost Software License, Version 1.0. (See
3// accompanying file LICENSE_1_0.txt or copy at
4// http://www.boost.org/LICENSE_1_0.txt)
5#ifndef FIND_INSTANCE_DWA2002312_HPP
6# define FIND_INSTANCE_DWA2002312_HPP
7
8# include <boost/python/type_id.hpp>
9
10namespace boost { namespace python { namespace objects {
11
12// Given a type_id, find the instance data which corresponds to it, or
13// return 0 in case no such type is held.  If null_shared_ptr_only is
14// true and the type being sought is a shared_ptr, only find an
15// instance if it turns out to be NULL.  Needed for shared_ptr rvalue
16// from_python support.
17BOOST_PYTHON_DECL void* find_instance_impl(PyObject*, type_info, bool null_shared_ptr_only = false);
18
19}}} // namespace boost::python::objects
20
21#endif // FIND_INSTANCE_DWA2002312_HPP
Note: See TracBrowser for help on using the repository browser.