HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyClassMethod.h File Reference
#include "pxr/pxr.h"
#include <hboost/python/class.hpp>
#include <hboost/python/dict.hpp>
#include <hboost/python/object.hpp>
#include <hboost/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 hboost.python class visitor which replaces the named method with a classmethod()-wrapped one.

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

Definition at line 98 of file pyClassMethod.h.