Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:50:39

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 FUNCTION_OBJECT_DWA2002725_HPP
0006 # define FUNCTION_OBJECT_DWA2002725_HPP
0007 # include <boost/python/detail/prefix.hpp>
0008 # include <boost/function/function2.hpp>
0009 # include <boost/python/object_core.hpp>
0010 # include <boost/python/args_fwd.hpp>
0011 # include <boost/python/object/py_function.hpp>
0012 
0013 namespace boost { namespace python {
0014 
0015 namespace objects
0016 { 
0017   BOOST_PYTHON_DECL api::object function_object(
0018       py_function const& f
0019       , python::detail::keyword_range const&);
0020 
0021   BOOST_PYTHON_DECL api::object function_object(
0022       py_function const& f
0023       , python::detail::keyword_range const&);
0024 
0025   BOOST_PYTHON_DECL api::object function_object(py_function const& f);
0026 
0027   // Add an attribute to the name_space with the given name. If it is
0028   // a Boost.Python function object
0029   // (boost/python/object/function.hpp), and an existing function is
0030   // already there, add it as an overload.
0031   BOOST_PYTHON_DECL void add_to_namespace(
0032       object const& name_space, char const* name, object const& attribute);
0033 
0034   BOOST_PYTHON_DECL void add_to_namespace(
0035       object const& name_space, char const* name, object const& attribute, char const* doc);
0036 }
0037 
0038 }} // namespace boost::python::objects
0039 
0040 #endif // FUNCTION_OBJECT_DWA2002725_HPP