Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
builtin_converters.hpp File Reference
#include <boost/python/detail/prefix.hpp>
#include <boost/python/detail/none.hpp>
#include <boost/python/handle.hpp>
#include <boost/python/ssize_t.hpp>
#include <boost/implicit_cast.hpp>
#include <string>
#include <complex>
#include <boost/limits.hpp>
Include dependency graph for builtin_converters.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::python::converter::arg_to_python< T >
 
struct  boost::python::to_python_value< T >
 
struct  boost::python::detail::builtin_to_python
 
struct  boost::python::to_python_value< bool & >
 
struct  boost::python::to_python_value< boolconst & >
 
struct  boost::python::converter::arg_to_python< bool >
 
struct  boost::python::to_python_value< signedchar & >
 
struct  boost::python::to_python_value< signedcharconst & >
 
struct  boost::python::converter::arg_to_python< signedchar >
 
struct  boost::python::to_python_value< unsignedchar & >
 
struct  boost::python::to_python_value< unsignedcharconst & >
 
struct  boost::python::converter::arg_to_python< unsignedchar >
 
struct  boost::python::to_python_value< signedshort & >
 
struct  boost::python::to_python_value< signedshortconst & >
 
struct  boost::python::converter::arg_to_python< signedshort >
 
struct  boost::python::to_python_value< unsignedshort & >
 
struct  boost::python::to_python_value< unsignedshortconst & >
 
struct  boost::python::converter::arg_to_python< unsignedshort >
 
struct  boost::python::to_python_value< signedint & >
 
struct  boost::python::to_python_value< signedintconst & >
 
struct  boost::python::converter::arg_to_python< signedint >
 
struct  boost::python::to_python_value< unsignedint & >
 
struct  boost::python::to_python_value< unsignedintconst & >
 
struct  boost::python::converter::arg_to_python< unsignedint >
 
struct  boost::python::to_python_value< signedlong & >
 
struct  boost::python::to_python_value< signedlongconst & >
 
struct  boost::python::converter::arg_to_python< signedlong >
 
struct  boost::python::to_python_value< unsignedlong & >
 
struct  boost::python::to_python_value< unsignedlongconst & >
 
struct  boost::python::converter::arg_to_python< unsignedlong >
 
struct  boost::python::to_python_value< char & >
 
struct  boost::python::to_python_value< charconst & >
 
struct  boost::python::converter::arg_to_python< char >
 
struct  boost::python::to_python_value< char const *& >
 
struct  boost::python::to_python_value< char const *const & >
 
struct  boost::python::converter::arg_to_python< char const * >
 
struct  boost::python::to_python_value< std::string & >
 
struct  boost::python::to_python_value< std::stringconst & >
 
struct  boost::python::converter::arg_to_python< std::string >
 
struct  boost::python::to_python_value< float & >
 
struct  boost::python::to_python_value< floatconst & >
 
struct  boost::python::converter::arg_to_python< float >
 
struct  boost::python::to_python_value< double & >
 
struct  boost::python::to_python_value< doubleconst & >
 
struct  boost::python::converter::arg_to_python< double >
 
struct  boost::python::to_python_value< long double & >
 
struct  boost::python::to_python_value< long doubleconst & >
 
struct  boost::python::converter::arg_to_python< long double >
 
struct  boost::python::to_python_value< PyObject *& >
 
struct  boost::python::to_python_value< PyObject *const & >
 
struct  boost::python::to_python_value< std::complex< float > & >
 
struct  boost::python::to_python_value< std::complex< float >const & >
 
struct  boost::python::converter::arg_to_python< std::complex< float > >
 
struct  boost::python::to_python_value< std::complex< double > & >
 
struct  boost::python::to_python_value< std::complex< double >const & >
 
struct  boost::python::converter::arg_to_python< std::complex< double > >
 
struct  boost::python::to_python_value< std::complex< long double > & >
 
struct  boost::python::to_python_value< std::complex< long double >const & >
 
struct  boost::python::converter::arg_to_python< std::complex< long double > >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::python
 
 boost::python::converter
 
 boost::python::detail
 

Macros

#define BOOST_PYTHON_RETURN_TO_PYTHON_BY_VALUE(T, expr, pytype)
 
#define BOOST_PYTHON_ARG_TO_PYTHON_BY_VALUE(T, expr)
 
#define BOOST_PYTHON_TO_PYTHON_BY_VALUE(T, expr, pytype)
 
#define BOOST_PYTHON_TO_INT(T)
 

Functions

BOOST_PYTHON_DECL PyObject * boost::python::converter::do_return_to_python (char)
 
BOOST_PYTHON_DECL PyObject * boost::python::converter::do_return_to_python (char const *)
 
BOOST_PYTHON_DECL PyObject * boost::python::converter::do_return_to_python (PyObject *)
 
BOOST_PYTHON_DECL PyObject * boost::python::converter::do_arg_to_python (PyObject *)
 
void boost::python::converter::initialize_builtin_converters ()
 

Macro Definition Documentation

#define BOOST_PYTHON_ARG_TO_PYTHON_BY_VALUE (   T,
  expr 
)
Value:
namespace converter \
{ \
template <> struct arg_to_python< T > \
: handle<> \
{ \
arg_to_python(T const& x) \
: python::handle<>(expr) {} \
}; \
}
T
Definition: mem_fn_cc.hpp:25
Traits const flyweight< T, Arg_1, Arg_2, Arg_3, Arg_4, Arg_5 > &x return out<< x.get();}template< BOOST_TEMPLATED_STREAM_COMMA typename T, typename Arg_1, typename Arg_2, typename Arg_3, typename Arg_4, typename Arg_5 > Traits flyweight< T, Arg_1, Arg_2, Arg_3, Arg_4, Arg_5 > & x
Definition: flyweight.hpp:423
#define BOOST_PYTHON_RETURN_TO_PYTHON_BY_VALUE (   T,
  expr,
  pytype 
)
Value:
template <> struct to_python_value<T&> \
: detail::builtin_to_python \
{ \
inline PyObject* operator()(T const& x) const \
{ \
return (expr); \
} \
inline PyTypeObject const* get_pytype() const \
{ \
return (pytype); \
} \
}; \
template <> struct to_python_value<T const&> \
: detail::builtin_to_python \
{ \
inline PyObject* operator()(T const& x) const \
{ \
return (expr); \
} \
inline PyTypeObject const* get_pytype() const \
{ \
return (pytype); \
} \
};
void const
Definition: is_convertible.hpp:460
T
Definition: mem_fn_cc.hpp:25
Traits const flyweight< T, Arg_1, Arg_2, Arg_3, Arg_4, Arg_5 > &x return out<< x.get();}template< BOOST_TEMPLATED_STREAM_COMMA typename T, typename Arg_1, typename Arg_2, typename Arg_3, typename Arg_4, typename Arg_5 > Traits flyweight< T, Arg_1, Arg_2, Arg_3, Arg_4, Arg_5 > & x
Definition: flyweight.hpp:423
result_type operator()()
Definition: bind_template.hpp:17
#define BOOST_PYTHON_TO_INT (   T)
Value:
BOOST_PYTHON_TO_PYTHON_BY_VALUE(signed T, ::PyInt_FromLong(x), &PyInt_Type) \
unsigned T \
, static_cast<unsigned long>(x) > static_cast<unsigned long>( \
? ::PyLong_FromUnsignedLong(x) \
: ::PyInt_FromLong(x), &PyInt_Type)
#define BOOST_PYTHON_TO_PYTHON_BY_VALUE(T, expr, pytype)
Definition: builtin_converters.hpp:88
T
Definition: mem_fn_cc.hpp:25
Traits const flyweight< T, Arg_1, Arg_2, Arg_3, Arg_4, Arg_5 > &x return out<< x.get();}template< BOOST_TEMPLATED_STREAM_COMMA typename T, typename Arg_1, typename Arg_2, typename Arg_3, typename Arg_4, typename Arg_5 > Traits flyweight< T, Arg_1, Arg_2, Arg_3, Arg_4, Arg_5 > & x
Definition: flyweight.hpp:423
extractor< tag::max > const max
Definition: max.hpp:76
#define BOOST_PYTHON_TO_PYTHON_BY_VALUE (   T,
  expr,
  pytype 
)
Value:
#define BOOST_PYTHON_ARG_TO_PYTHON_BY_VALUE(T, expr)
Definition: builtin_converters.hpp:76
T
Definition: mem_fn_cc.hpp:25
#define BOOST_PYTHON_RETURN_TO_PYTHON_BY_VALUE(T, expr, pytype)
Definition: builtin_converters.hpp:50