Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
object_operators.hpp File Reference
#include <boost/python/detail/prefix.hpp>
#include <boost/python/object_core.hpp>
#include <boost/python/call.hpp>
#include <boost/iterator/detail/enable_if.hpp>
#include <boost/mpl/bool.hpp>
#include <boost/iterator/detail/config_def.hpp>
#include <boost/iterator/detail/config_undef.hpp>
Include dependency graph for object_operators.hpp:
This graph shows which files directly or indirectly include this file:

Classes

struct  boost::python::api::is_object_operators< L, R >
 
struct  boost::python::api::enable_binary< L, R, T >
 

Namespaces

 boost
 Duration formatting facet for input.
 
 boost::python
 
 boost::python::api
 

Macros

#define BOOST_PYTHON_BINARY_RETURN(T)   typename enable_binary<L,R,T>::type
 
#define BOOST_PYTHON_COMPARE_OP(op, opid)
 
#define BOOST_PYTHON_BINARY_OPERATOR(op)
 
#define BOOST_PYTHON_INPLACE_OPERATOR(op)
 

Typedefs

typedef char(& boost::python::api::no_type )[2]
 

Functions

template<class X >
char boost::python::api::is_object_operators_helper (object_operators< X > const *)
 
no_type boost::python::api::is_object_operators_helper (...)
 
template<class X >
X * boost::python::api::make_ptr ()
 
BOOST_PYTHON_DECL object boost::python::api::operator> (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator> (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator>= (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator>= (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator< (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator< (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator<= (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator<= (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator== (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator== (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator!= (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator!= (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator+ (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator+ (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator- (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator- (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator* (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator* (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator/ (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator/ (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator% (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator% (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator<< (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator<< (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator>> (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator>> (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator& (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator& (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator^ (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator^ (L const &l, R const &r)
 
BOOST_PYTHON_DECL object boost::python::api::operator| (object const &l, object const &r)
 
template<class L , class R >
enable_binary< L, R, object >::type boost::python::api::operator| (L const &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator+= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator+= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator-= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator-= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator*= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator*= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator/= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator/= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator%= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator%= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator<<= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator<<= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator>>= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator>>= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator&= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator&= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator^= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator^= (object &l, R const &r)
 
BOOST_PYTHON_DECL object & boost::python::api::operator|= (object &l, object const &r)
 
template<class R >
object & boost::python::api::operator|= (object &l, R const &r)
 

Macro Definition Documentation

#define BOOST_PYTHON_BINARY_OPERATOR (   op)
Value:
BOOST_PYTHON_DECL object operator op(object const& l, object const& r); \
template <class L, class R> \
BOOST_PYTHON_BINARY_RETURN(object) operator op(L const& l, R const& r) \
{ \
return object(l) op object(r); \
}
void const
Definition: is_convertible.hpp:460
Char L(char c)
Definition: generate_static.hpp:68
#define BOOST_PYTHON_BINARY_RETURN(T)
Definition: object_operators.hpp:45
#define BOOST_PYTHON_BINARY_RETURN (   T)    typename enable_binary<L,R,T>::type
#define BOOST_PYTHON_COMPARE_OP (   op,
  opid 
)
Value:
template <class L, class R> \
BOOST_PYTHON_BINARY_RETURN(object) operator op(L const& l, R const& r) \
{ \
return PyObject_RichCompare( \
object(l).ptr(), object(r).ptr(), opid); \
}
void const
Definition: is_convertible.hpp:460
Char L(char c)
Definition: generate_static.hpp:68
pointer_wrapper< T > ptr(T t)
Definition: ptr.hpp:36
#define BOOST_PYTHON_BINARY_RETURN(T)
Definition: object_operators.hpp:45
#define BOOST_PYTHON_INPLACE_OPERATOR (   op)
Value:
BOOST_PYTHON_DECL object& operator op(object& l, object const& r); \
template <class R> \
object& operator op(object& l, R const& r) \
{ \
return l op object(r); \
}