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

#include <UT_Interrupt.h>

Public Member Functions

 UT_AutoInterrupt (const char *operation_name, UT_Interrupt *boss=UTgetInterrupt())
 ~UT_AutoInterrupt ()
bool wasInterrupted ()
bool wasInterrupted (int percent)
UT_InterruptgetInterrupt () const

Detailed Description

Helper class to ensure that opEnd() is always called, even if you return early from a function. It's similar to UT_AutoUndoBlock.

SOP/SOP_DualStar.C, SOP/SOP_Flatten.C, and SOP/SOP_PrimVOP.C.

Definition at line 405 of file UT_Interrupt.h.

Constructor & Destructor Documentation

UT_AutoInterrupt::UT_AutoInterrupt ( const char *  operation_name,
UT_Interrupt boss = UTgetInterrupt() 

Definition at line 408 of file UT_Interrupt.h.

UT_AutoInterrupt::~UT_AutoInterrupt ( )

Definition at line 417 of file UT_Interrupt.h.

Member Function Documentation

UT_Interrupt* UT_AutoInterrupt::getInterrupt ( ) const

Definition at line 437 of file UT_Interrupt.h.

bool UT_AutoInterrupt::wasInterrupted ( )

Definition at line 423 of file UT_Interrupt.h.

bool UT_AutoInterrupt::wasInterrupted ( int  percent)

Definition at line 430 of file UT_Interrupt.h.

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