to_tuple Struct Template Reference

#include <pyconversions.h>

List of all members.


Detailed Description

template<typename ContainerType>
struct to_tuple< ContainerType >

A wrapper of a conversion function to convert a STL vector to a Python tuple.

This class satisfies the requirements of the boost::python::to_python_converter conversion template argument.

Copied from scitbx/include/scitbx/boost_python/container_conversions.h that is described in the Boost.Python FAQ.

Author:
Ralf W. Grosse-Kunstleve <rwgk@yahoo.com> of Lawrence Berkeley National Laboratory

Definition at line 37 of file pyconversions.h.

Static Public Member Functions

static PyObject * convert (ContainerType const &c)
 Creates and returns a Python tuple from the elements copied from a STL container.


Member Function Documentation

static PyObject* convert ( ContainerType const &  c  )  [inline, static]

Creates and returns a Python tuple from the elements copied from a STL container.

The ContainerType must be a vector, but may contain any type of object supported by the boost::python::object constructor.

Definition at line 43 of file pyconversions.h.


The documentation for this struct was generated from the following file:
Generated for HippoDraw Class Library by doxygen