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

#include <pyOverride.h>

Public Member Functions

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

Friends

class TfPyOverride
 Clients must hold GIL to construct. More...
 

Detailed Description

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

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

See Also
TfPyOverride

Definition at line 45 of file pyOverride.h.

Constructor & Destructor Documentation

TfPyMethodResult::TfPyMethodResult ( TfPyMethodResult const &  other)

Implement copy to do python refcounting while holding the GIL.

TfPyMethodResult::~TfPyMethodResult ( )

Implement dtor to do python refcounting while holding the GIL.

Member Function Documentation

template<class T >
T TfPyMethodResult::as ( hboost::type< T > *  = 0)
inline

Definition at line 82 of file pyOverride.h.

template<class T >
TfPyMethodResult::operator T ( )
inline

Definition at line 65 of file pyOverride.h.

template<class T >
TfPyMethodResult::operator T & ( ) const
inline

Definition at line 73 of file pyOverride.h.

TfPyMethodResult& TfPyMethodResult::operator= ( TfPyMethodResult const &  other)

Implement assign to do python refcounting while holding the GIL.

template<class T >
T TfPyMethodResult::unchecked ( hboost::type< T > *  = 0)
inline

Definition at line 90 of file pyOverride.h.

Friends And Related Function Documentation

friend class TfPyOverride
friend

Clients must hold GIL to construct.

Definition at line 49 of file pyOverride.h.


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