Container for an Rx::Interop::Runtime31::IException pointer that simplifies copying of exceptions.
Public Member Functions | |
CExceptionSafePointer () | |
Default constructor. More... | |
CExceptionSafePointer (const CExceptionSafePointer &xExceptionSafePointer) | |
Copy constructor. Creates a copy of the exception provided by the given pointer. More... | |
CExceptionSafePointer (CExceptionSafePointer &&xExceptionSafePointer) | |
Move constructor. More... | |
CExceptionSafePointer (const IException30 &ex) | |
Copy Constructor. Creates a copy of the given exception. More... | |
CExceptionSafePointer (const IException31 &ex) | |
Copy Constructor. Creates a copy of the given exception. More... | |
~CExceptionSafePointer () | |
Destructor. Deletes the assigned exception. More... | |
const IException31 * | Get () const |
Gets the exception pointer. More... | |
template<typename TException > | |
const TException * | Get () const |
Gets the exception pointer dynamically casted to the given template argument. More... | |
bool | IsValid () const |
Query if this object is valid. More... | |
CExceptionSafePointer & | operator= (CExceptionSafePointer &&xExceptionSafePointer) |
Move assignment operator. More... | |
Rx::CExceptionSafePointer::CExceptionSafePointer | ( | ) |
Default constructor.
Rx::CExceptionSafePointer::CExceptionSafePointer | ( | const CExceptionSafePointer & | xExceptionSafePointer | ) |
Copy constructor. Creates a copy of the exception provided by the given pointer.
xExceptionSafePointer | The exception safe pointer to copy. |
Rx::CExceptionSafePointer::CExceptionSafePointer | ( | CExceptionSafePointer && | xExceptionSafePointer | ) |
Move constructor.
xExceptionSafePointer | [in,out] The exception safe pointer to move. |
Rx::CExceptionSafePointer::CExceptionSafePointer | ( | const IException30 & | ex | ) |
Copy Constructor. Creates a copy of the given exception.
ex | The exception to copy. |
Rx::CExceptionSafePointer::CExceptionSafePointer | ( | const IException31 & | ex | ) |
Copy Constructor. Creates a copy of the given exception.
ex | The exception to copy. |
Rx::CExceptionSafePointer::~CExceptionSafePointer | ( | ) |
Destructor. Deletes the assigned exception.
const IException31* Rx::CExceptionSafePointer::Get | ( | ) | const |
Gets the exception pointer.
|
inline |
Gets the exception pointer dynamically casted to the given template argument.
TException | Type of the exception. |
bool Rx::CExceptionSafePointer::IsValid | ( | ) | const |
Query if this object is valid.
CExceptionSafePointer& Rx::CExceptionSafePointer::operator= | ( | CExceptionSafePointer && | xExceptionSafePointer | ) |
Move assignment operator.
xExceptionSafePointer | [in,out] The exception safe pointer to move. |