HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyClassMethod.h File Reference
#include "pxr/pxr.h"
#include "pxr/external/boost/python/class.hpp"
#include "pxr/external/boost/python/dict.hpp"
#include "pxr/external/boost/python/object.hpp"
#include "pxr/external/boost/python/def_visitor.hpp"
+ Include dependency graph for pyClassMethod.h:

Go to the source code of this file.

Classes

struct  Tf_PyClassMethod::_TfPyClassMethod
 

Namespaces

 Tf_PyClassMethod
 

Typedefs

typedef
Tf_PyClassMethod::_TfPyClassMethod 
TfPyClassMethod
 

Typedef Documentation

A boost.python class visitor which replaces the named method with a classmethod()-wrapped one.

void Foo( pxr_boost::python::object & pyClassObject ) { /* ... */ }
class_<...>(...)
.def("Foo", &Foo)
.def(TfPyClassMethod("Foo"))
;

Definition at line 81 of file pyClassMethod.h.