- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Hierarchy
- Class Members

Public Member Functions | Protected Attributes | List of all members
tbb::movable_exception< ExceptionData > Class Template Reference

Template that can be used to implement exception that transfers arbitrary ExceptionData to the root thread. More...

`#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 __TBB_override throw ()
| Returns RTTI name of the originally intercepted exception.
const char * | what () const __TBB_override throw ()
| Returns the result of originally intercepted exception's what() method.
movable_exception * | move () __TBB_override throw ()
| Creates and returns pointer to the deep copy of this exception object. More...
void | destroy () __TBB_override throw ()
| Destroys objects created by the move() method. More...
void | throw_self () __TBB_override
| Throws this exception object. More...
Public Member Functions inherited from tbb::tbb_exception
void | operator delete (void *p)

## Protected Attributes
ExceptionData | my_exception_data
| User data.

## Detailed Description

### template<typename ExceptionData>
class tbb::movable_exception< ExceptionData >

Template that can be used to implement exception that transfers arbitrary ExceptionData to the root thread.

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 ().

See Also
  tbb::tbb_exception

## Member Function Documentation

template<typename ExceptionData >

void tbb::movable_exception< ExceptionData >::destroy | ( | ) |  |
throw | ( |
| ) |  |
| inlinevirtual

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.

template<typename ExceptionData >

movable_exception* tbb::movable_exception< ExceptionData >::move | ( | ) |  |
throw | ( |
| ) |  |
| inlinevirtual

Creates and returns pointer to the deep copy of this exception object.

Move semantics is allowed.

Implements tbb::tbb_exception.

template<typename ExceptionData >

void tbb::movable_exception< ExceptionData >::throw_self | ( | ) |  |
| inlinevirtual

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.

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

- tbb_exception.h

Copyright © 2005-2017 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.