HDK
|
Base class for interrupters. More...
#include <NullInterrupter.h>
Public Member Functions | |
NullInterrupter ()=default | |
Default constructor. More... | |
virtual | ~NullInterrupter ()=default |
virtual void | start (const char *name=nullptr) |
virtual void | end () |
Signal the end of an interruptible operation. More... | |
virtual bool | wasInterrupted (int percent=-1) |
virtual NullInterrupter & | interrupter () final |
Convenience method to return a reference to the base class from a derived class. More... | |
Base class for interrupters.
The host application calls start() at the beginning of an interruptible operation, end() at the end of the operation, and wasInterrupted() periodically during the operation. If any call to wasInterrupted() returns true
, the operation will be aborted.
Definition at line 25 of file NullInterrupter.h.
|
default |
Default constructor.
|
virtualdefault |
Signal the end of an interruptible operation.
Definition at line 34 of file NullInterrupter.h.
|
inlinefinalvirtual |
Convenience method to return a reference to the base class from a derived class.
Definition at line 41 of file NullInterrupter.h.
|
inlinevirtual |
Signal the start of an interruptible operation.
name | an optional descriptive name for the operation |
Definition at line 32 of file NullInterrupter.h.
|
inlinevirtual |
Check if an interruptible operation should be aborted.
percent | an optional (when >= 0) percentage indicating the fraction of the operation that has been completed |
Definition at line 39 of file NullInterrupter.h.