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

#include <pyResultConversions.h>

Classes

struct  apply
 

Detailed Description

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

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:

unordered_set<double> getDoubles() {
unordered_set<double> ret;
ret.insert(1.0);
ret.insert(2.0);
ret.insert(3.0);
return ret;
}

May be wrapped as:

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

Definition at line 96 of file pyResultConversions.h.


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