|
CodePorting.Translator Cs2Cpp
CodePorting.Translator.Cs2Cpp.Framework
|
Template that represents wrapper of exceptions that are derived from Exception class. More...
#include <exception.h>
Public Types | |
| using | ExceptionType = T |
| Used for casting functions. More... | |
Public Member Functions | |
| operator SharedPtr< Object > () | |
| Implicit cast operator to SharedPtr<Object> More... | |
| ExceptionWrapper (std::nullptr_t) | |
| Constructs a null-instance of ExceptionWrapper class that does not represent any exception. More... | |
| ExceptionWrapper (const ExceptionPtr &ptr) | |
| Constructs a instance of ExceptionWrapper class that contains passed pointer. More... | |
| ExceptionWrapper (const ExceptionWrapper &other) | |
| Copy constructor. More... | |
| ExceptionWrapper (ExceptionWrapper &&other) noexcept | |
| Move constructor. More... | |
| ExceptionWrapper & | operator= (const ExceptionWrapper &other) |
| Assignment operator. More... | |
| ExceptionWrapper & | operator= (ExceptionWrapper &&other) noexcept |
| Move assignment operator. More... | |
| template<typename ... Args, typename = std::enable_if_t< !System::Details::IsForwardingOf<ExceptionPtr, Args...>::value && !System::Details::IsForwardingOf<ExceptionWrapper<T>, Args...>::value>> | |
| ExceptionWrapper (Args &&...args) | |
| Constructor that forwards parameters to the Exception class constructors and creates smart pointer that holds new Exception class instance. More... | |
| T * | operator-> () const |
| Allows to access members of the Exception object. More... | |
Static Public Member Functions | |
| static void * | operator new (std::size_t)=delete |
| static void * | operator new[] (std::size_t)=delete |
| static const System::TypeInfo & | Type () |
| Shortcut to get System::TypeInfo object for the Exception type. More... | |
Protected Member Functions | |
| ExceptionWrapper (T *ptr) | |
| Constructs a instance of ExceptionWrapper class that contains passed instance. More... | |
Template that represents wrapper of exceptions that are derived from Exception class.
| using System::ExceptionWrapper< T >::ExceptionType = T |
Used for casting functions.
|
inline |
Constructs a null-instance of ExceptionWrapper class that does not represent any exception.
|
inline |
Constructs a instance of ExceptionWrapper class that contains passed pointer.
| ptr | Smart pointer to the instance of Exception class. |
|
inline |
Copy constructor.
| other | Other instance of wrapper class that must be copied. |
|
inlinenoexcept |
Move constructor.
| other | Other instance of wrapper class that must be moved. |
|
inlineexplicit |
Constructor that forwards parameters to the Exception class constructors and creates smart pointer that holds new Exception class instance.
|
inlineprotected |
Constructs a instance of ExceptionWrapper class that contains passed instance.
| ptr | Raw pointer to the instance of Exception class. |
|
staticdelete |
|
staticdelete |
|
inline |
Implicit cast operator to SharedPtr<Object>
|
inline |
Allows to access members of the Exception object.
| System::NullReferenceException | if pointer is null. |
|
inline |
Assignment operator.
| other | Other instance of wrapper class that must be assigned. |
|
inlinenoexcept |
Move assignment operator.
| other | Other instance of wrapper class that must be moved. |
|
inlinestatic |
Shortcut to get System::TypeInfo object for the Exception type.