diff --git a/doc/v2/reference.html b/doc/v2/reference.html index 06fc346f..c36afe20 100644 --- a/doc/v2/reference.html +++ b/doc/v2/reference.html @@ -17,8 +17,8 @@

C++ Boost -

+ "277" alt="C++ Boost" src="../../../../c++boost.gif" border= + "0">

Boost.Python

@@ -41,6 +41,9 @@
Models of CallPolicies +
Models of + ResultConverter +
Models of ResultConverterGenerator @@ -48,31 +51,31 @@
To/From Python Type Conversion
Utility and Infrastructure - -
+

Concepts

-
-
CallPolicies -
Dereferenceable +
+
CallPolicies -
Extractor +
Dereferenceable -
HolderGenerator +
Extractor -
ResultConverter +
HolderGenerator -
ResultConverterGenerator -
+
ResultConverter + +
ResultConverterGenerator +

High Level Components

@@ -330,6 +333,38 @@ + + +

Models of ResultConverter

+ +
+
to_python_indirect.hpp + +
+
+
Classes + +
+
+
to_python_indirect +
+
+ +
to_python_value.hpp + +
+
+
Classes + +
+
+
to_python_value +
+
+

Models of ResultConverterGenerator

@@ -353,6 +388,7 @@
copy_non_const_reference.hpp +
manage_new_object.hpp +
Classes @@ -381,6 +418,7 @@
reference_existing_object.hpp +
-
@@ -427,22 +464,24 @@ -
lvalue_from_pytype.hpp +
lvalue_from_pytype.hpp + +
+
+
Classes +
-
Classes +
lvalue_from_pytype -
-
-
lvalue_from_pytype -
extract_identity -
extract_member -
+
extract_identity + +
extract_member
+
to_python_converter.hpp @@ -458,42 +497,20 @@ -
to_python_indirect.hpp - -
-
-
Classes - -
-
-
to_python_indirect -
-
- -
to_python_value.hpp - -
-
-
Classes - -
-
-
to_python_value -
-
-
type_from_python.hpp +
Classes +
type_from_python +
identity_extractor +
member_extractor
@@ -529,21 +546,18 @@
-
instance_holder.hpp +
instance_holder.hpp -
-
-
Classes +
+
+
Classes -
-
-
- instance_holder -
-
+
+
+
instance_holder +
+
pointee.hpp diff --git a/doc/v2/to_python_converter.html b/doc/v2/to_python_converter.html index 63db8c71..a2a985d8 100644 --- a/doc/v2/to_python_converter.html +++ b/doc/v2/to_python_converter.html @@ -146,7 +146,7 @@ struct tag_to_noddy BOOST_PYTHON_MODULE_INIT(to_python_converter) { - module to_python("to_python_converter") + module("to_python_converter") .def("make_tag", make_tag) ; to_python_converter<tag, tag_to_noddy>(); diff --git a/doc/v2/to_python_value.html b/doc/v2/to_python_value.html new file mode 100644 index 00000000..990cea41 --- /dev/null +++ b/doc/v2/to_python_value.html @@ -0,0 +1,101 @@ + + + + + + Boost.Python - <boost/python/to_python_value.hpp> + + + +
+

+

+ +
+

Boost.Python

+ +

Header + <boost/python/to_python_value.hpp>

+
+
+ +

Contents

+ +
+
Classes + +
+
+
Class + to_python_value + +
+
+
Class template + to_python_value synopsis + +
Class template + to_python_value observer functions +
+
+ +
+
+ +

Classes

+ +

Class template + to_python_value

+ +

to_python_value is a model of ResultConverter + which copies its argument into a new Python object. + +

Class + to_python_value synopsis

+
+namespace boost { namespace python
+{
+   template <class T>
+   struct to_python_value
+   {
+      typedef typename add_reference<
+         typename add_const<T>::type
+      >::type argument_type;
+
+      static bool convertible();
+      PyObject* operator()(argument_type) const;
+   };
+}}
+
+ +

Class + to_python_value observers

+
+static bool convertible();
+
+ +
+
Returns: true iff a converter has been registered which can convert T to python by-value. +
+ +
+PyObject* operator()(argument_type x) const;
+
+ +
+
Requires: convertible() == true +
Effects: converts x to python +
Returns: the resulting Python object iff a converter for T has been registered, 0 otherwise. +
+ +

Revised + + 15 February, 2002 + + + +

© Copyright Dave + Abrahams 2002. All Rights Reserved. +