annotate DEPENDENCIES/generic/include/boost/python/object/function_doc_signature.hpp @ 125:34e428693f5d vext

Vext -> Repoint
author Chris Cannam
date Thu, 14 Jun 2018 11:15:39 +0100
parents 2665513ce2d3
children
rev   line source
Chris@16 1 // Copyright Nikolay Mladenov 2007.
Chris@16 2 // Distributed under the Boost Software License, Version 1.0. (See
Chris@16 3 // accompanying file LICENSE_1_0.txt or copy at
Chris@16 4 // http://www.boost.org/LICENSE_1_0.txt)
Chris@16 5 #ifndef FUNCTION_SIGNATURE_20070531_HPP
Chris@16 6 # define FUNCTION_SIGNATURE_20070531_HPP
Chris@16 7
Chris@16 8 #include <boost/python/object/function.hpp>
Chris@16 9 #include <boost/python/converter/registrations.hpp>
Chris@16 10 #include <boost/python/str.hpp>
Chris@16 11 #include <boost/python/tuple.hpp>
Chris@16 12
Chris@16 13 #include <boost/python/detail/signature.hpp>
Chris@16 14
Chris@16 15
Chris@16 16 #include <vector>
Chris@16 17
Chris@16 18 namespace boost { namespace python { namespace objects {
Chris@16 19
Chris@16 20 class function_doc_signature_generator{
Chris@16 21 static const char * py_type_str(const python::detail::signature_element &s);
Chris@16 22 static bool arity_cmp( function const *f1, function const *f2 );
Chris@16 23 static bool are_seq_overloads( function const *f1, function const *f2 , bool check_docs);
Chris@16 24 static std::vector<function const*> flatten(function const *f);
Chris@16 25 static std::vector<function const*> split_seq_overloads( const std::vector<function const *> &funcs, bool split_on_doc_change);
Chris@16 26 static str raw_function_pretty_signature(function const *f, size_t n_overloads, bool cpp_types = false);
Chris@16 27 static str parameter_string(py_function const &f, size_t n, object arg_names, bool cpp_types);
Chris@16 28 static str pretty_signature(function const *f, size_t n_overloads, bool cpp_types = false);
Chris@16 29
Chris@16 30 public:
Chris@16 31 static list function_doc_signatures( function const * f);
Chris@16 32 };
Chris@16 33
Chris@16 34 }}}//end of namespace boost::python::objects
Chris@16 35
Chris@16 36 #endif //FUNCTION_SIGNATURE_20070531_HPP