All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TfPySequenceToList Class Reference

#include <pyResultConversions.h>


struct  apply

Detailed Description

A hboost::python result converter generator which converts standard library sequences to lists.

The way to use this is as a return value policy for a function which returns a sequence or a const reference to a sequence. For example this function:

vector<double> getDoubles() {
vector<double> ret;
return ret;

May be wrapped as:

def("getDoubles", &getDoubles, return_value_policy<TfPySequenceToList>())

Definition at line 67 of file pyResultConversions.h.

The documentation for this class was generated from the following file: