#include <tbb_exception.h>
Inheritance diagram for tbb::movable_exception< ExceptionData >:
Public Member Functions | |
movable_exception (const ExceptionData &data_) | |
movable_exception (const movable_exception &src) throw () | |
const movable_exception & | operator= (const movable_exception &src) |
ExceptionData & | data () throw () |
const ExceptionData & | data () const throw () |
const char * | name () const throw () |
Returns RTTI name of the originally intercepted exception. | |
const char * | what () const throw () |
Returns the result of originally intercepted exception's what() method. | |
movable_exception * | move () throw () |
Creates and returns pointer to the deep copy of this exception object. | |
void | destroy () throw () |
Destroys objects created by the move() method. | |
void | throw_self () |
Throws this exception object. | |
Protected Attributes | |
ExceptionData | my_exception_data |
User data. |
Code using TBB can instantiate this template with an arbitrary ExceptionData type and throw this exception object. Such exceptions are intercepted by the TBB scheduler and delivered to the root thread ().
void tbb::movable_exception< ExceptionData >::destroy | ( | ) | throw () [inline, virtual] |
Destroys objects created by the move() method.
Frees memory and calls destructor for this exception object. Can and must be used only on objects created by the move method.
Implements tbb::tbb_exception.
movable_exception* tbb::movable_exception< ExceptionData >::move | ( | ) | throw () [inline, virtual] |
Creates and returns pointer to the deep copy of this exception object.
Move semantics is allowed.
Implements tbb::tbb_exception.
void tbb::movable_exception< ExceptionData >::throw_self | ( | ) | [inline, virtual] |
Throws this exception object.
Make sure that if you have several levels of derivation from this interface you implement or override this method on the most derived level. The implementation is as simple as "throw *this;". Failure to do this will result in exception of a base class type being thrown.
Implements tbb::tbb_exception.