movable_exception<ExceptionData>

概要

コピー構築可能なデータを伝える tbb_exception インターフェイスのサブクラス。

構文

template<typename ExceptionData> class movable_exception;

ヘッダー

#include "tbb/tbb_exception.h"

説明

このテンプレートは、任意のコピー構築可能なデータを伝える tbb_exception のサブクラスを簡単に実装する方法を提供します。

メンバー

 namespace tbb {
                   template<typename ExceptionData>
                    class movable_exception: public tbb_exception {
                    public:
                    movable_exception( const ExceptionData& src );
                    movable_exception( const movable_exception& src )throw();
                    ~movable_exception() throw();
                    movable_exception& operator=( const movable_exception& src );
                    ExceptionData& data() throw();
                    const ExceptionData& data() const throw();
                    movable_exception* move() throw();
                    void destroy() throw();
                    void throw_self();
                    const char* name() const throw();
                    const char* what() const throw();
                    };
                    }
次の表は、tbb_exception にはなく、movable_exception にあるインターフェイスの情報を提供します。その他のインターフェイスは、「tbb_exception」セクションで説明しています。
メンバー 説明
movable_exception( const ExceptionData& src )

src のコピーを含む movable_exception を構築します。

ExceptionData& data() throw()

戻り値: 含まれるデータへの参照。

const ExceptionData& data() const throw()

戻り値: 含まれるデータへの const 参照。

関連情報