Chris@16: // Copyright David Abrahams 2002. Chris@16: // Distributed under the Boost Software License, Version 1.0. (See Chris@16: // accompanying file LICENSE_1_0.txt or copy at Chris@16: // http://www.boost.org/LICENSE_1_0.txt) Chris@16: #ifndef FUNCTION_OBJECT_DWA2002725_HPP Chris@16: # define FUNCTION_OBJECT_DWA2002725_HPP Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: # include Chris@16: Chris@16: namespace boost { namespace python { Chris@16: Chris@16: namespace objects Chris@16: { Chris@16: BOOST_PYTHON_DECL api::object function_object( Chris@16: py_function const& f Chris@16: , python::detail::keyword_range const&); Chris@16: Chris@16: BOOST_PYTHON_DECL api::object function_object( Chris@16: py_function const& f Chris@16: , python::detail::keyword_range const&); Chris@16: Chris@16: BOOST_PYTHON_DECL api::object function_object(py_function const& f); Chris@16: Chris@16: // Add an attribute to the name_space with the given name. If it is Chris@16: // a Boost.Python function object Chris@16: // (boost/python/object/function.hpp), and an existing function is Chris@16: // already there, add it as an overload. Chris@16: BOOST_PYTHON_DECL void add_to_namespace( Chris@16: object const& name_space, char const* name, object const& attribute); Chris@16: Chris@16: BOOST_PYTHON_DECL void add_to_namespace( Chris@16: object const& name_space, char const* name, object const& attribute, char const* doc); Chris@16: } Chris@16: Chris@16: }} // namespace boost::python::objects Chris@16: Chris@16: #endif // FUNCTION_OBJECT_DWA2002725_HPP