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

#include <pyResultConversions.h>

Classes

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;
ret.push_back(1.0);
ret.push_back(2.0);
ret.push_back(3.0);
return ret;
}

May be wrapped as:

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

Definition at line 70 of file pyResultConversions.h.


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