|
Teuchos - Trilinos Tools Package Version of the Day
|
Standard test and throw macros. More...
Go to the source code of this file.
Namespaces | |
| namespace | Teuchos |
The Teuchos namespace contains all of the classes, structs and enums used by Teuchos, as well as a number of utility routines. | |
Defines | |
| #define | TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg) |
| Macro for throwing an exception with breakpointing to ease debugging. | |
| #define | TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC(throw_exception_test, Exception, msg) |
| Macro for throwing an exception from within a class method with breakpointing to ease debugging. | |
| #define | TEUCHOS_TEST_FOR_EXCEPTION_PURE_MSG(throw_exception_test, Exception, msg) |
| Macro for throwing an exception with breakpointing to ease debugging. | |
| #define | TEUCHOS_TEST_FOR_EXCEPTION_PRINT(throw_exception_test, Exception, msg, out_ptr) |
This macro is the same as TEUCHOS_TEST_FOR_EXCEPTION() except that the exception will be caught, the message printed, and then rethrown. | |
| #define | TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test) TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, std::logic_error, "Error!") |
This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call. | |
| #define | TEUCHOS_TEST_FOR_EXCEPT_MSG(throw_exception_test, msg) TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, std::logic_error, msg) |
This macro is designed to be a short version of TEUCHOS_TEST_FOR_EXCEPTION() that is easier to call. | |
| #define | TEUCHOS_TEST_FOR_EXCEPT_PRINT(throw_exception_test, out_ptr) TEUCHOS_TEST_FOR_EXCEPTION_PRINT(throw_exception_test, std::logic_error, "Error!", out_ptr) |
This macro is the same as TEUCHOS_TEST_FOR_EXCEPT() except that the exception will be caught, the message printed, and then rethrown. | |
| #define | TEUCHOS_TRACE(exc) |
| This macro intercepts an exception, prints a standardized message including the current filename and line number, and then throws the exception up the stack. | |
| #define | TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg) |
| Deprecated. | |
| #define | TEST_FOR_EXCEPTION_CLASS_FUNC(throw_exception_test, Exception, msg) |
| Deprecated. | |
| #define | TEST_FOR_EXCEPTION_PURE_MSG(throw_exception_test, Exception, msg) |
| Deprecated. | |
| #define | TEST_FOR_EXCEPTION_PRINT(throw_exception_test, Exception, msg, out_ptr) |
| Deprecated. | |
| #define | TEST_FOR_EXCEPT(throw_exception_test) |
| Deprecated. | |
| #define | TEST_FOR_EXCEPT_MSG(throw_exception_test, msg) |
| Deprecated. | |
| #define | TEST_FOR_EXCEPT_PRINT(throw_exception_test, out_ptr) |
| Deprecated. | |
Functions | |
| TEUCHOS_LIB_DLL_EXPORT void | Teuchos::TestForException_incrThrowNumber () |
| Increment the throw number. | |
| TEUCHOS_LIB_DLL_EXPORT int | Teuchos::TestForException_getThrowNumber () |
| Increment the throw number. | |
| TEUCHOS_LIB_DLL_EXPORT void | Teuchos::TestForException_break (const std::string &msg) |
| The only purpose for this function is to set a breakpoint. | |
| TEUCHOS_LIB_DLL_EXPORT void | Teuchos::TestForException_setEnableStacktrace (bool enableStrackTrace) |
| Set at runtime if stacktracing functionality is enabled when * exceptions are thrown. | |
| TEUCHOS_LIB_DLL_EXPORT bool | Teuchos::TestForException_getEnableStacktrace () |
| Get at runtime if stacktracing functionality is enabled when exceptions are thrown. | |
| TEUCHOS_DEPRECATED void | TestForException_incrThrowNumber () |
| Deprecated. | |
| TEUCHOS_DEPRECATED int | TestForException_getThrowNumber () |
| Deprecated. | |
| TEUCHOS_DEPRECATED void | TestForException_break (const std::string &msg) |
| Deprecated. | |
| TEUCHOS_DEPRECATED void | TestForException_setEnableStacktrace (bool enableStrackTrace) |
| Deprecated. | |
| TEUCHOS_DEPRECATED bool | TestForException_getEnableStacktrace () |
| Deprecated. | |
Standard test and throw macros.
Definition in file Teuchos_TestForException.hpp.
| #define TEST_FOR_EXCEPTION | ( | throw_exception_test, | |
| Exception, | |||
| msg | |||
| ) |
{ \
TEST_FOR_EXCEPTION_this_macro_is_deprecated(); \
TEUCHOS_TEST_FOR_EXCEPTION(throw_exception_test, Exception, msg); \
}
Deprecated.
Definition at line 418 of file Teuchos_TestForException.hpp.
| #define TEST_FOR_EXCEPTION_CLASS_FUNC | ( | throw_exception_test, | |
| Exception, | |||
| msg | |||
| ) |
{ \
TEST_FOR_EXCEPTION_CLASS_FUNC_this_macro_is_deprecated(); \
TEUCHOS_TEST_FOR_EXCEPTION_CLASS_FUNC(throw_exception_test, Exception, msg); \
}
Deprecated.
Definition at line 427 of file Teuchos_TestForException.hpp.
| #define TEST_FOR_EXCEPTION_PURE_MSG | ( | throw_exception_test, | |
| Exception, | |||
| msg | |||
| ) |
{ \
TEST_FOR_EXCEPTION_PURE_MSG_this_macro_is_deprecated(); \
TEUCHOS_TEST_FOR_EXCEPTION_PURE_MSG(throw_exception_test, Exception, msg); \
}
Deprecated.
Definition at line 436 of file Teuchos_TestForException.hpp.
| #define TEST_FOR_EXCEPTION_PRINT | ( | throw_exception_test, | |
| Exception, | |||
| msg, | |||
| out_ptr | |||
| ) |
{ \
TEST_FOR_EXCEPTION_PRINT_this_macro_is_deprecated(); \
TEUCHOS_TEST_FOR_EXCEPTION_PRINT(throw_exception_test, Exception, msg, out_ptr); \
}
Deprecated.
Definition at line 445 of file Teuchos_TestForException.hpp.
| #define TEST_FOR_EXCEPT | ( | throw_exception_test | ) |
{ \
TEST_FOR_EXCEPT_this_macro_is_deprecated(); \
TEUCHOS_TEST_FOR_EXCEPT(throw_exception_test); \
}
Deprecated.
Definition at line 454 of file Teuchos_TestForException.hpp.
| #define TEST_FOR_EXCEPT_MSG | ( | throw_exception_test, | |
| msg | |||
| ) |
{ \
TEST_FOR_EXCEPT_MSG_this_macro_is_deprecated(); \
TEUCHOS_TEST_FOR_EXCEPT_MSG(throw_exception_test, msg); \
}
Deprecated.
Definition at line 463 of file Teuchos_TestForException.hpp.
| #define TEST_FOR_EXCEPT_PRINT | ( | throw_exception_test, | |
| out_ptr | |||
| ) |
{ \
TEST_FOR_EXCEPT_PRINT_this_macro_is_deprecated(); \
TEUCHOS_TEST_FOR_EXCEPT_PRINT(throw_exception_test, out_ptr); \
}
Deprecated.
Definition at line 472 of file Teuchos_TestForException.hpp.
| TEUCHOS_DEPRECATED bool TestForException_getEnableStacktrace | ( | ) | [inline] |
Deprecated.
Get at runtime if stacktracing functionality is enabled when exceptions are thrown.
Definition at line 401 of file Teuchos_TestForException.hpp.
1.7.4