Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/boost/python/object/find_instance.hpp was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright David Abrahams 2002.
0002 // Distributed under the Boost Software License, Version 1.0. (See
0003 // accompanying file LICENSE_1_0.txt or copy at
0004 // http://www.boost.org/LICENSE_1_0.txt)
0005 #ifndef FIND_INSTANCE_DWA2002312_HPP
0006 # define FIND_INSTANCE_DWA2002312_HPP
0007 
0008 # include <boost/python/type_id.hpp>
0009 
0010 namespace boost { namespace python { namespace objects { 
0011 
0012 // Given a type_id, find the instance data which corresponds to it, or
0013 // return 0 in case no such type is held.  If null_shared_ptr_only is
0014 // true and the type being sought is a shared_ptr, only find an
0015 // instance if it turns out to be NULL.  Needed for shared_ptr rvalue
0016 // from_python support.
0017 BOOST_PYTHON_DECL void* find_instance_impl(PyObject*, type_info, bool null_shared_ptr_only = false);
0018 
0019 }}} // namespace boost::python::objects
0020 
0021 #endif // FIND_INSTANCE_DWA2002312_HPP