HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TfPyRaiseOnError< Base > Class Template Reference

#include <pyError.h>

+ Inheritance diagram for TfPyRaiseOnError< Base >:

Classes

struct  ErrorMarkAndArgs
 

Public Types

typedef ErrorMarkAndArgs
< typename
Base::argument_package > 
argument_package
 

Public Member Functions

 TfPyRaiseOnError ()
 Default constructor. More...
 
bool precall (argument_package const &a)
 
PyObject * postcall (argument_package const &a, PyObject *result)
 

Detailed Description

template<typename Base = hboost::python::default_call_policies>
class TfPyRaiseOnError< Base >

A hboost.python call policy class which, when applied to a wrapped function, will create an error mark before calling the function, and check that error mark after the function has completed. If any TfErrors have occurred, they will be raised as python exceptions.

This facility does not need to be used by clients in general. It is only required for wrapped functions and methods that do not appear directly in an extension module. For instance, the map and sequence proxy objects use this, since they are created on the fly.

Definition at line 63 of file pyError.h.

Member Typedef Documentation

template<typename Base = hboost::python::default_call_policies>
typedef ErrorMarkAndArgs<typename Base::argument_package> TfPyRaiseOnError< Base >::argument_package

Definition at line 84 of file pyError.h.

Constructor & Destructor Documentation

template<typename Base = hboost::python::default_call_policies>
TfPyRaiseOnError< Base >::TfPyRaiseOnError ( )
inline

Default constructor.

Definition at line 87 of file pyError.h.

Member Function Documentation

template<typename Base = hboost::python::default_call_policies>
PyObject* TfPyRaiseOnError< Base >::postcall ( argument_package const a,
PyObject *  result 
)
inline

Definition at line 95 of file pyError.h.

template<typename Base = hboost::python::default_call_policies>
bool TfPyRaiseOnError< Base >::precall ( argument_package const a)
inline

Definition at line 91 of file pyError.h.


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