Loading...
Searching...
No Matches
TfPyMethodResult Class Reference

A reimplementation of pxr_boost::python::detail::method_result. More...

#include <pyOverride.h>

Public Member Functions

 TfPyMethodResult (TfPyMethodResult const &other)
 Implement copy to do python refcounting while holding the GIL.
 
 ~TfPyMethodResult ()
 Implement dtor to do python refcounting while holding the GIL.
 
TfPyMethodResultoperator= (TfPyMethodResult const &other)
 Implement assign to do python refcounting while holding the GIL.
 
template<class T >
 operator T ()
 
template<class T >
 operator T& () const
 
template<class T >
as (pxr_boost::python::type< T > *=0)
 
template<class T >
unchecked (pxr_boost::python::type< T > *=0)
 

Friends

class TfPyOverride
 Clients must hold GIL to construct.
 

Detailed Description

A reimplementation of pxr_boost::python::detail::method_result.

This class is reimplemented from the boost class simply because the provided class only allows construction from it's friended class pxr_boost::python::override, which we also reimplement below.

See also
TfPyOverride

Definition at line 29 of file pyOverride.h.

Constructor & Destructor Documentation

◆ TfPyMethodResult()

TfPyMethodResult ( TfPyMethodResult const &  other)

Implement copy to do python refcounting while holding the GIL.

◆ ~TfPyMethodResult()

Implement dtor to do python refcounting while holding the GIL.

Member Function Documentation

◆ as()

T as ( pxr_boost::python::type< T > *  = 0)
inline

Definition at line 66 of file pyOverride.h.

◆ operator T()

operator T ( )
inline

Definition at line 49 of file pyOverride.h.

◆ operator T&()

operator T& ( ) const
inline

Definition at line 57 of file pyOverride.h.

◆ operator=()

TfPyMethodResult & operator= ( TfPyMethodResult const &  other)

Implement assign to do python refcounting while holding the GIL.

◆ unchecked()

T unchecked ( pxr_boost::python::type< T > *  = 0)
inline

Definition at line 74 of file pyOverride.h.

Friends And Related Function Documentation

◆ TfPyOverride

friend class TfPyOverride
friend

Clients must hold GIL to construct.

Definition at line 33 of file pyOverride.h.


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