Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::python::detail Namespace Reference

Namespaces

 error
 

Classes

class  args_proxy
 
struct  binary_op
 
struct  binary_op_l
 
struct  binary_op_r
 
struct  builtin_to_python
 
class  call_proxy
 
struct  constructor_policy
 
struct  constructor_result_converter
 
struct  copy_const_reference_expects_a_const_reference_return_type
 
struct  copy_non_const_reference_expects_a_non_const_reference_return_type
 
struct  datum
 
struct  default_datum_getter_policy
 
struct  default_getter_by_ref
 
struct  default_member_getter_policy
 
struct  define_class_init_helper
 
struct  define_class_init_helper< 0 >
 
struct  dict_base
 
class  direct_serialization_table
 INTERNAL ONLY. More...
 
struct  drop1
 
class  final_map_derived_policies
 
class  final_vector_derived_policies
 
struct  get_prev
 
struct  get_prev< 0 >
 
struct  install_holder
 
struct  is_data_member_pointer
 
struct  is_keywords
 
struct  is_keywords< keywords< nkeywords > >
 
struct  is_optional
 
struct  is_optional< optional< BOOST_PP_ENUM_PARAMS_Z(1, BOOST_PYTHON_MAX_ARITY, T) > >
 
class  is_other
 
class  is_other< other< T > >
 
struct  is_reference_to_keywords
 
struct  iterators_impl
 
struct  iterators_impl< true >
 
struct  keyword
 
struct  keywords
 
struct  keywords< 0 >
 
struct  keywords< 1 >
 
struct  keywords_base
 
class  kwds_proxy
 
struct  list_base
 
struct  long_base
 
struct  make_owning_holder
 
struct  make_reference_holder
 
struct  manage_new_object_requires_a_pointer_return_type
 
struct  member
 
class  method_result
 
struct  most_derived
 
struct  normalized_extractor
 
struct  object_manager_get_pytype
 
struct  object_manager_get_pytype< true >
 
struct  object_manager_to_python_value
 
struct  offset_args
 
struct  operator_
 
struct  operator_1
 
struct  operator_1< op_abs >
 
struct  operator_1< op_complex >
 
struct  operator_1< op_float >
 
struct  operator_1< op_int >
 
struct  operator_1< op_invert >
 
struct  operator_1< op_long >
 
struct  operator_1< op_neg >
 
struct  operator_1< op_nonzero >
 
struct  operator_1< op_pos >
 
struct  operator_1< op_repr >
 
struct  operator_1< op_str >
 
struct  operator_1_inner
 
struct  operator_l
 
struct  operator_l< op_add >
 
struct  operator_l< op_and >
 
struct  operator_l< op_div >
 
struct  operator_l< op_eq >
 
struct  operator_l< op_ge >
 
struct  operator_l< op_gt >
 
struct  operator_l< op_iadd >
 
struct  operator_l< op_iand >
 
struct  operator_l< op_idiv >
 
struct  operator_l< op_ilshift >
 
struct  operator_l< op_imod >
 
struct  operator_l< op_imul >
 
struct  operator_l< op_ior >
 
struct  operator_l< op_irshift >
 
struct  operator_l< op_isub >
 
struct  operator_l< op_ixor >
 
struct  operator_l< op_le >
 
struct  operator_l< op_lshift >
 
struct  operator_l< op_lt >
 
struct  operator_l< op_mod >
 
struct  operator_l< op_mul >
 
struct  operator_l< op_ne >
 
struct  operator_l< op_or >
 
struct  operator_l< op_pow >
 
struct  operator_l< op_rshift >
 
struct  operator_l< op_sub >
 
struct  operator_l< op_xor >
 
struct  operator_l_inner
 
struct  operator_r
 
struct  operator_r< op_add >
 
struct  operator_r< op_and >
 
struct  operator_r< op_div >
 
struct  operator_r< op_eq >
 
struct  operator_r< op_ge >
 
struct  operator_r< op_gt >
 
struct  operator_r< op_le >
 
struct  operator_r< op_lshift >
 
struct  operator_r< op_lt >
 
struct  operator_r< op_mod >
 
struct  operator_r< op_mul >
 
struct  operator_r< op_ne >
 
struct  operator_r< op_or >
 
struct  operator_r< op_pow >
 
struct  operator_r< op_rshift >
 
struct  operator_r< op_sub >
 
struct  operator_r< op_xor >
 
struct  operator_r_inner
 
struct  outer_constructor_signature
 
struct  outer_constructor_signature< int >
 
struct  pickle_suite_finalize
 
struct  pickle_suite_registration
 
struct  pointee_impl
 
struct  pointee_impl< false >
 
struct  pure_virtual_visitor
 
struct  raw_dispatcher
 
struct  reference_existing_object_requires_a_pointer_or_reference_return_type
 
struct  registry_to_python_value
 
struct  replace_front2
 
struct  return_arg_pos_argument_must_be_positive
 
struct  return_internal_reference_owner_arg_must_be_greater_than_zero
 
struct  return_none
 
struct  select_bases
 
struct  shared_ptr_to_python_value
 
class  slice_base
 
struct  specifies_bases
 
struct  specifies_bases< bases< BOOST_PP_ENUM_PARAMS_Z(1, BOOST_PYTHON_MAX_BASES, Base) > >
 
struct  specify_a_return_value_policy_to_wrap_functions_returning
 
struct  str_base
 
struct  tuple_base
 
struct  unary_op
 
struct  unspecialized
 
class  unwrap_other
 
class  unwrap_other< other< T > >
 
struct  upcaster
 
struct  upcaster< false >
 
struct  write_type_id
 

Typedefs

typedef std::pair< keyword
const *, keyword const * > 
keyword_range
 

Functions

template<typename IArchiver , typename OArchiver >
direct_serialization_table
< IArchiver, OArchiver > & 
get_direct_serialization_table ()
 Retrieve the direct-serialization table for an IArchiver/OArchiver pair. More...
 
template<typename Archiver >
void save_impl (Archiver &ar, const boost::python::object &obj, const unsigned int, mpl::false_)
 Save a Python object by pickling it. More...
 
template<typename Archiver >
void save_impl (Archiver &ar, const boost::python::object &obj, const unsigned int version, mpl::true_)
 Try to save a Python object by directly serializing it; fall back on pickling if required. More...
 
template<typename Archiver >
void load_impl (Archiver &ar, boost::python::object &obj, const unsigned int, mpl::false_)
 Load a Python object by unpickling it. More...
 
template<typename Archiver >
void load_impl (Archiver &ar, boost::python::object &obj, const unsigned int version, mpl::true_)
 Try to load a Python object by directly deserializing it; fall back on unpickling if required. More...
 
template<>
BOOST_MPI_PYTHON_DECL
direct_serialization_table
< ::boost::mpi::packed_iarchive,::boost::mpi::packed_oarchive > & 
get_direct_serialization_table< ::boost::mpi::packed_iarchive,::boost::mpi::packed_oarchive > ()
 
template<class Source , class Target >
Target * upcast_impl (Source *, Target *)
 
template<class Source , class Target >
Target * upcast (Source *p, yes_convertible, no_convertible, Target *)
 
template<class Source , class Target >
Target * upcast (Source *p, no_convertible, no_convertible, Target *)
 
template<class Target , class Source >
Target * downcast (Source *p, yes_convertible)
 
template<class Target , class Source >
Target * downcast (Source *p, no_convertible, boost::type< Target > *=0)
 
template<class T >
void assert_castable (boost::type< T > *=0)
 
template<class D , class Policies >
object make_getter (D *d, Policies const &policies, mpl::false_, int)
 
template<class D >
object make_getter (D *d, not_specified, mpl::false_, long)
 
template<class C , class D , class Policies >
object make_getter (D C::*pm, Policies const &policies, mpl::true_, int)
 
template<class C , class D >
object make_getter (D C::*pm, not_specified, mpl::true_, long)
 
template<class D , class P >
object make_getter (D &d, P &p, mpl::false_,...)
 
template<class D , class Policies >
object make_setter (D *p, Policies const &policies, mpl::false_, int)
 
template<class C , class D , class Policies >
object make_setter (D C::*pm, Policies const &policies, mpl::true_, int)
 
template<class D , class Policies >
object make_setter (D &x, Policies const &policies, mpl::false_,...)
 
template<class F , class Helper >
void def_from_helper (char const *name, F const &fn, Helper const &helper)
 
template<class Fn , class A1 >
void def_maybe_overloads (char const *name, Fn fn, A1 const &a1,...)
 
template<class StubsT , class SigT >
void def_maybe_overloads (char const *name, SigT sig, StubsT const &stubs, detail::overloads_base const *)
 
template<class T >
object make_function1 (T fn,...)
 
object make_function1 (object const &x, object const *)
 
void rethrow ()
 
template<class T >
Tmanage_ptr (detail::borrowed< null_ok< T > > *p, int)
 
template<class T >
Tmanage_ptr (null_ok< detail::borrowed< T > > *p, int)
 
template<class T >
Tmanage_ptr (detail::borrowed< T > *p, long)
 
template<class T >
Tmanage_ptr (null_ok< T > *p, long)
 
template<class T >
Tmanage_ptr (T *p,...)
 
template<class ClassT , class CallPoliciesT , class Signature , class NArgs >
void def_init_aux (ClassT &cl, Signature const &, NArgs, CallPoliciesT const &policies, char const *doc, detail::keyword_range const &keywords_)
 
template<class Target , class Accessor1 , class Accessor2 , class NextPolicies >
object make_iterator (Accessor1 get_start, Accessor2 get_finish, NextPolicies next_policies, Target &(*)())
 
template<class T , class U >
type_info extractor_type_id (T &(*)(U))
 
template<class Extractor , class T , class U >
normalized_extractor
< Extractor, U > 
normalize (T(*)(U), Extractor *=0)
 
template<int N, class BaseArgs , class Offset >
PyObject * get (mpl::int_< N >, offset_args< BaseArgs, Offset > const &args_)
 
template<class BaseArgs , class Offset >
unsigned arity (offset_args< BaseArgs, Offset > const &args_)
 
template<class F , class CallPolicies , class Sig >
object make_constructor_aux (F f, CallPolicies const &p, Sig const &)
 
template<class F , class CallPolicies , class Sig , class NumKeywords >
object make_constructor_aux (F f, CallPolicies const &p, Sig const &, detail::keyword_range const &kw, NumKeywords)
 
template<class F , class CallPolicies , class Keywords >
object make_constructor_dispatch (F f, CallPolicies const &policies, Keywords const &kw, mpl::true_)
 
template<class F , class CallPolicies , class Signature >
object make_constructor_dispatch (F f, CallPolicies const &policies, Signature const &sig, mpl::false_)
 
template<class F , class CallPolicies , class Sig >
object make_function_aux (F f, CallPolicies const &p, Sig const &)
 
template<class F , class CallPolicies , class Sig , class NumKeywords >
object make_function_aux (F f, CallPolicies const &p, Sig const &, detail::keyword_range const &kw, NumKeywords)
 
template<class F , class CallPolicies , class Keywords >
object make_function_dispatch (F f, CallPolicies const &policies, Keywords const &kw, mpl::true_)
 
template<class F , class CallPolicies , class Signature >
object make_function_dispatch (F f, CallPolicies const &policies, Signature const &sig, mpl::false_)
 
BOOST_PYTHON_DECL PyObject * init_module (char const *name, void(*)())
 
template<class T >
PyObject * convert_result (T const &x)
 
void BOOST_PYTHON_DECL pure_virtual_called ()
 
template<class C , class S >
replace_front2< S, void, C & >
::type 
error_signature (S BOOST_APPEND_EXPLICIT_TEMPLATE_TYPE(C))
 
object BOOST_PYTHON_DECL make_raw_function (objects::py_function)
 

Variables

BOOST_PYTHON_DECL PyObject * current_scope
 

Typedef Documentation

typedef std::pair<keyword const*, keyword const*> boost::python::detail::keyword_range

Function Documentation

template<class T >
void boost::python::detail::assert_castable ( boost::type< T > *  = 0)
inline

References T.

template<class T >
PyObject* boost::python::detail::convert_result ( T const &  x)

References boost::flyweights::x.

template<class F , class Helper >
void boost::python::detail::def_from_helper ( char const *  name,
F const &  fn,
Helper const &  helper 
)
template<class ClassT , class CallPoliciesT , class Signature , class NArgs >
void boost::python::detail::def_init_aux ( ClassT &  cl,
Signature const &  ,
NArgs  ,
CallPoliciesT const &  policies,
char const *  doc,
detail::keyword_range const &  keywords_ 
)
inline
template<class Fn , class A1 >
void boost::python::detail::def_maybe_overloads ( char const *  name,
Fn  fn,
A1 const &  a1,
  ... 
)
template<class StubsT , class SigT >
void boost::python::detail::def_maybe_overloads ( char const *  name,
SigT  sig,
StubsT const &  stubs,
detail::overloads_base const *   
)

References boost::current.

template<class Target , class Source >
Target* boost::python::detail::downcast ( Source *  p,
yes_convertible   
)
inline
template<class Target , class Source >
Target* boost::python::detail::downcast ( Source *  p,
no_convertible  ,
boost::type< Target > *  = 0 
)
inline
template<class C , class S >
replace_front2<S,void,C&>::type boost::python::detail::error_signature ( S   BOOST_APPEND_EXPLICIT_TEMPLATE_TYPEC)
template<class T , class U >
type_info boost::python::detail::extractor_type_id ( T *)(U)
inline
template<int N, class BaseArgs , class Offset >
PyObject* boost::python::detail::get ( mpl::int_< N ,
offset_args< BaseArgs, Offset > const &  args_ 
)
inline
template<typename IArchiver , typename OArchiver >
direct_serialization_table<IArchiver, OArchiver>& boost::python::detail::get_direct_serialization_table ( )

Retrieve the direct-serialization table for an IArchiver/OArchiver pair.

This function is responsible for returning a reference to the singleton direct-serialization table. Its primary template is left undefined, to force the use of an explicit specialization with a definition in a single translation unit. Use the macro BOOST_PYTHON_DIRECT_SERIALIZATION_ARCHIVE_IMPL to define this explicit specialization.

Referenced by boost::mpi::python::register_skeleton_and_content().

BOOST_PYTHON_DECL PyObject* boost::python::detail::init_module ( char const *  name,
void(*)()   
)
template<typename Archiver >
void boost::python::detail::load_impl ( Archiver &  ar,
boost::python::object &  obj,
const unsigned int  ,
mpl::false_   
)

Load a Python object by unpickling it.

References boost::python::len(), boost::python::pickle::loads(), and boost::serialization::make_array().

Referenced by boost::python::load(), and load_impl().

template<typename Archiver >
void boost::python::detail::load_impl ( Archiver &  ar,
boost::python::object &  obj,
const unsigned int  version,
mpl::true_   
)

Try to load a Python object by directly deserializing it; fall back on unpickling if required.

References BOOST_ASSERT, load_impl(), and boost::python::detail::direct_serialization_table< IArchiver, OArchiver >::loader().

template<class F , class CallPolicies , class Sig >
object boost::python::detail::make_constructor_aux ( f,
CallPolicies const &  p,
Sig const &   
)
template<class F , class CallPolicies , class Sig , class NumKeywords >
object boost::python::detail::make_constructor_aux ( f,
CallPolicies const &  p,
Sig const &  ,
detail::keyword_range const &  kw,
NumKeywords   
)
template<class F , class CallPolicies , class Keywords >
object boost::python::detail::make_constructor_dispatch ( f,
CallPolicies const &  policies,
Keywords const &  kw,
mpl::true_   
)
template<class F , class CallPolicies , class Signature >
object boost::python::detail::make_constructor_dispatch ( f,
CallPolicies const &  policies,
Signature const &  sig,
mpl::false_   
)
template<class T >
object boost::python::detail::make_function1 ( T  fn,
  ... 
)
object boost::python::detail::make_function1 ( object const &  x,
object const *   
)
inline

References boost::flyweights::x.

template<class F , class CallPolicies , class Sig >
object boost::python::detail::make_function_aux ( f,
CallPolicies const &  p,
Sig const &   
)
template<class F , class CallPolicies , class Sig , class NumKeywords >
object boost::python::detail::make_function_aux ( f,
CallPolicies const &  p,
Sig const &  ,
detail::keyword_range const &  kw,
NumKeywords   
)
template<class F , class CallPolicies , class Keywords >
object boost::python::detail::make_function_dispatch ( f,
CallPolicies const &  policies,
Keywords const &  kw,
mpl::true_   
)
template<class F , class CallPolicies , class Signature >
object boost::python::detail::make_function_dispatch ( f,
CallPolicies const &  policies,
Signature const &  sig,
mpl::false_   
)

References make_function_aux().

template<class D , class Policies >
object boost::python::detail::make_getter ( D *  d,
Policies const &  policies,
mpl::false_  ,
int   
)
inline
template<class D >
object boost::python::detail::make_getter ( D *  d,
not_specified  ,
mpl::false_  ,
long   
)
inline

References make_getter().

template<class C , class D , class Policies >
object boost::python::detail::make_getter ( D C::*  pm,
Policies const &  policies,
mpl::true_  ,
int   
)
inline
template<class C , class D >
object boost::python::detail::make_getter ( D C::*  pm,
not_specified  ,
mpl::true_  ,
long   
)
inline

References make_getter().

template<class D , class P >
object boost::python::detail::make_getter ( D &  d,
P &  p,
mpl::false_  ,
  ... 
)
inline
object BOOST_PYTHON_DECL boost::python::detail::make_raw_function ( objects::py_function  )
template<class D , class Policies >
object boost::python::detail::make_setter ( D *  p,
Policies const &  policies,
mpl::false_  ,
int   
)
inline
template<class C , class D , class Policies >
object boost::python::detail::make_setter ( D C::*  pm,
Policies const &  policies,
mpl::true_  ,
int   
)
inline
template<class D , class Policies >
object boost::python::detail::make_setter ( D &  x,
Policies const &  policies,
mpl::false_  ,
  ... 
)
inline
template<class T >
T* boost::python::detail::manage_ptr ( detail::borrowed< null_ok< T > > *  p,
int   
)
inline
template<class T >
T* boost::python::detail::manage_ptr ( null_ok< detail::borrowed< T > > *  p,
int   
)
inline
template<class T >
T* boost::python::detail::manage_ptr ( detail::borrowed< T > *  p,
long   
)
inline
template<class T >
T* boost::python::detail::manage_ptr ( null_ok< T > *  p,
long   
)
inline
template<class T >
T* boost::python::detail::manage_ptr ( T p,
  ... 
)
inline
template<class Extractor , class T , class U >
normalized_extractor<Extractor,U> boost::python::detail::normalize ( T(*)(U)  ,
Extractor *  = 0 
)
inline
void BOOST_PYTHON_DECL boost::python::detail::pure_virtual_called ( )
void boost::python::detail::rethrow ( )
inline
template<typename Archiver >
void boost::python::detail::save_impl ( Archiver &  ar,
const boost::python::object &  obj,
const unsigned int  ,
mpl::false_   
)

Save a Python object by pickling it.

References boost::python::pickle::dumps(), boost::python::len(), and boost::serialization::make_array().

Referenced by boost::python::save(), and save_impl().

template<typename Archiver >
void boost::python::detail::save_impl ( Archiver &  ar,
const boost::python::object &  obj,
const unsigned int  version,
mpl::true_   
)

Try to save a Python object by directly serializing it; fall back on pickling if required.

References save_impl(), and boost::python::detail::direct_serialization_table< IArchiver, OArchiver >::saver().

template<class Source , class Target >
Target* boost::python::detail::upcast ( Source *  p,
yes_convertible  ,
no_convertible  ,
Target *   
)
inline
template<class Source , class Target >
Target* boost::python::detail::upcast ( Source *  p,
no_convertible  ,
no_convertible  ,
Target *   
)
inline

References upcast_impl().

template<class Source , class Target >
Target * boost::python::detail::upcast_impl ( Source *  x,
Target *   
)
inline

Variable Documentation

BOOST_PYTHON_DECL PyObject* boost::python::detail::current_scope