HDK
|
#include <pyOverride.h>
Public Member Functions | |
TfPyOverride (hboost::python::handle<> callable) | |
Clients must hold the GIL to construct. More... | |
template<typename... Args> | |
TfPyMethodResult | operator() (Args const &...args) const |
A reimplementation of hboost::python::override.
This class is reimplemented from the hboost class simply because the provided class only allows construction from, ultimately, hboost::python::wrapper::get_override(). Unfortunately, that method returns the wrong result when the overridden function we are asking about lives not on the directly wrapped C++ class, but a wrapped ancestor. So we provide our own version, TfPyOverride, with a public constructor.
Note that clients must have the python GIL when constructing a TfPyOverride object.
Definition at line 114 of file pyOverride.h.
|
inline |
Clients must hold the GIL to construct.
Definition at line 125 of file pyOverride.h.
|
inline |
Call the override. Clients need not hold the GIL to invoke the call operator.
Definition at line 133 of file pyOverride.h.