|
Boost.PythonHeader <boost/python/opaque_pointer_converter.hpp> |
opaque<Pointee>
opaque
synopsisBOOST_PYTHON_OPAQUE_SPECIALIZED_TYPE_ID
opaque<P>
opaque<>
registers itself as a converter from
Python objects to pointers to undefined types and vice versa.
opaque
synopsisnamespace boost { namespace python { template<class Pointee> struct opaque { opaque(); }; }}
opaque
constructoropaque();
lvalue_from_pytype
converter from Python objects into opaque pointers.
The Python Objects created are named after the type pointed to by the opaque pointer being wrapped.
to_python_converter
from opaque pointers to Python objects.If there is already an instance registered by another module, this instance doesn't try to register again in order to avoid warnings about multiple registrations.
Normally only a single instance of this class is created for every Pointee.
This macro must be used to define specializations of the type_id function which can't be instantiated for incomplete types.
The macro must be invoked in every translation unit which uses the opaque converter.
Revised 10 September, 2006
© Copyright 2003..2006 Haufe Mediengruppe. All Rights Reserved.