|
GEOS
|
Go to the source code of this file.
Namespaces | |
| geos | |
Macros | |
| #define | GEOS_LOG(...) LVARRAY_LOG( __VA_ARGS__ ) |
| Log a message on screen. More... | |
| #define | GEOS_LOG_VAR(...) LVARRAY_LOG_VAR( __VA_ARGS__ ) |
| Log an expression and its value on screen. More... | |
| #define | GEOS_LOG_IF(EXP, msg) |
| Conditionally log a message. More... | |
| #define | GEOS_LOG_RANK_0_IF(EXP, msg) |
| Conditionally log a message on screen on rank 0. More... | |
| #define | GEOS_LOG_RANK_0_IF_NLR(EXP, msg) |
| Conditionally log a message on screen on rank 0 without line breaking. More... | |
| #define | GEOS_LOG_RANK_0(msg) GEOS_LOG_RANK_0_IF( true, msg ) |
| Log a message on screen on rank 0. More... | |
| #define | GEOS_LOG_RANK_IF(EXP, msg) |
| Conditionally log a message to the rank output stream. More... | |
| #define | GEOS_LOG_RANK(msg) GEOS_LOG_RANK_IF( true, msg ) |
| Log a message to the rank output stream. More... | |
| #define | GEOS_LOG_RANK_VAR(var) GEOS_LOG_RANK( #var " = " << var ) |
| Log a variable/expression name and value on screen to the rank output stream. More... | |
| #define | GEOS_GLOBAL_LOGGER ErrorLogger::global() |
| Error logger instance to use in GEOS_ERROR*, GEOS_ASSERT*, GEOS_THROW*, GEOS_WARNING* macros. More... | |
| #define | GEOS_ERROR_IF_CAUSE(COND, CAUSE_MESSAGE, ...) |
| Conditionally raise a hard error and terminate the program. Implementation of GEOS_ERROR_* and GEOS_ASSERT_* macros. More... | |
| #define | GEOS_ERROR_IF(COND, ...) GEOS_ERROR_IF_CAUSE( COND, "Error cause: " STRINGIZE( COND ), __VA_ARGS__ ) |
| Conditionally raise a hard error and terminate the program. More... | |
| #define | GEOS_ERROR(...) GEOS_ERROR_IF_CAUSE( true, "", __VA_ARGS__ ) |
| Raise a hard error and terminate the program. More... | |
| #define | GEOS_THROW_IF_CAUSE(COND, CAUSE_MESSAGE, MSG, ...) |
| Conditionally throw an exception. More... | |
| #define | GEOS_THROW_IF(COND, MSG, ...) GEOS_THROW_IF_CAUSE( COND, "Error cause: " STRINGIZE( COND ), MSG, __VA_ARGS__ ) |
| Conditionally raise a hard error and terminate the program. More... | |
| #define | GEOS_THROW(MSG, ...) GEOS_THROW_IF_CAUSE( true, "", MSG, __VA_ARGS__ ) |
| Conditionally raise a hard error and terminate the program. More... | |
| #define | GEOS_WARNING_IF_CAUSE(COND, CAUSE_MESSAGE, ...) |
| Conditionally report a warning. More... | |
| #define | GEOS_WARNING_IF(COND, ...) GEOS_WARNING_IF_CAUSE( COND, "Warning cause: " STRINGIZE( COND ), __VA_ARGS__ ) |
| Conditionally report a warning. More... | |
| #define | GEOS_WARNING(...) GEOS_WARNING_IF_CAUSE( true, "", __VA_ARGS__ ) |
| Report a warning. More... | |
| #define | GEOS_INFO_IF(EXP, msg) LVARRAY_INFO_IF( EXP, msg ) |
| Conditionally log an info message. More... | |
| #define | GEOS_INFO(msg) LVARRAY_INFO( msg ) |
| Log an info message. More... | |
| #define | GEOS_ERROR_LHS_RHS_DECLS(lhs, rhs) |
| Declares variables for "assertion" evaluation only on CPU; no-op on GPU to avoid device compilation errors. More... | |
| #define | GEOS_ERROR_IF_OP_MSG(lhs, OP, NOP, rhs, ...) |
Abort execution if lhs OP rhs. More... | |
| #define | GEOS_ERROR_IF_EQ_MSG(lhs, rhs, ...) GEOS_ERROR_IF_OP_MSG( lhs, ==, !=, rhs, __VA_ARGS__ ) |
| Raise a hard error if two values are equal. More... | |
| #define | GEOS_ERROR_IF_EQ(lhs, rhs) GEOS_ERROR_IF_EQ_MSG( lhs, rhs, "" ) |
| Raise a hard error if two values are equal. More... | |
| #define | GEOS_ERROR_IF_NE_MSG(lhs, rhs, ...) GEOS_ERROR_IF_OP_MSG( lhs, !=, ==, rhs, __VA_ARGS__ ) |
| Raise a hard error if two values are not equal. More... | |
| #define | GEOS_ERROR_IF_NE(lhs, rhs) GEOS_ERROR_IF_NE_MSG( lhs, rhs, "" ) |
| Raise a hard error if two values are not equal. More... | |
| #define | GEOS_ERROR_IF_GT_MSG(lhs, rhs, ...) GEOS_ERROR_IF_OP_MSG( lhs, >, <=, rhs, __VA_ARGS__ ) |
| Raise a hard error if one value compares greater than the other. More... | |
| #define | GEOS_ERROR_IF_GT(lhs, rhs) GEOS_ERROR_IF_GT_MSG( lhs, rhs, "" ) |
| Raise a hard error if one value compares greater than the other. More... | |
| #define | GEOS_ERROR_IF_GE_MSG(lhs, rhs, ...) GEOS_ERROR_IF_OP_MSG( lhs, >=, <, rhs, __VA_ARGS__ ) |
| Raise a hard error if one value compares greater than or equal to the other. More... | |
| #define | GEOS_ERROR_IF_GE(lhs, rhs) GEOS_ERROR_IF_GE_MSG( lhs, rhs, "" ) |
| Raise a hard error if one value compares greater than or equal to the other. More... | |
| #define | GEOS_ERROR_IF_LT_MSG(lhs, rhs, ...) GEOS_ERROR_IF_OP_MSG( lhs, <, >=, rhs, __VA_ARGS__ ) |
| Raise a hard error if one value compares less than the other. More... | |
| #define | GEOS_ERROR_IF_LT(lhs, rhs) GEOS_ERROR_IF_LT_MSG( lhs, rhs, "" ) |
| Raise a hard error if one value compares less than the other. More... | |
| #define | GEOS_ERROR_IF_LE_MSG(lhs, rhs, ...) GEOS_ERROR_IF_OP_MSG( lhs, <=, >, rhs, __VA_ARGS__ ) |
| Raise a hard error if one value compares less than or equal to the other. More... | |
| #define | GEOS_ERROR_IF_LE(lhs, rhs) GEOS_ERROR_IF_LE_MSG( lhs, rhs, "" ) |
| Raise a hard error if one value compares less than or equal to the other. More... | |
| #define | GEOS_WARNING_IF_OP_MSG(lhs, OP, NOP, rhs, ...) |
Log a warning if lhs OP rhs. More... | |
| #define | GEOS_WARNING_IF_EQ_MSG(lhs, rhs, ...) GEOS_WARNING_IF_OP_MSG( lhs, ==, !=, rhs, __VA_ARGS__ ) |
| Log a warning if two values are equal. More... | |
| #define | GEOS_WARNING_IF_EQ(lhs, rhs) GEOS_WARNING_IF_EQ_MSG( lhs, rhs, "" ) |
| Log a warning if two values are equal. More... | |
| #define | GEOS_WARNING_IF_NE_MSG(lhs, rhs, ...) GEOS_WARNING_IF_OP_MSG( lhs, !=, ==, rhs, __VA_ARGS__ ) |
| Log a warning if two values are not equal. More... | |
| #define | GEOS_WARNING_IF_NE(lhs, rhs) GEOS_WARNING_IF_NE_MSG( lhs, rhs, "" ) |
| Log a warning if two values are not equal. More... | |
| #define | GEOS_WARNING_IF_GT_MSG(lhs, rhs, ...) GEOS_WARNING_IF_OP_MSG( lhs, >, <=, rhs, __VA_ARGS__ ) |
| Log a warning if one value compares greater than the other. More... | |
| #define | GEOS_WARNING_IF_GT(lhs, rhs) GEOS_WARNING_IF_GT_MSG( lhs, rhs, "" ) |
| Log a warning if one value compares greater than the other. More... | |
| #define | GEOS_WARNING_IF_GE_MSG(lhs, rhs, ...) GEOS_WARNING_IF_OP_MSG( lhs, >=, <, rhs, __VA_ARGS__ ) |
| Log a warning if one value compares greater than or equal to the other. More... | |
| #define | GEOS_WARNING_IF_GE(lhs, rhs) GEOS_WARNING_IF_GE_MSG( lhs, rhs, "" ) |
| Log a warning if one value compares greater than or equal to the other. More... | |
| #define | GEOS_WARNING_IF_LT_MSG(lhs, rhs, ...) GEOS_WARNING_IF_OP_MSG( lhs, <, >=, rhs, __VA_ARGS__ ) |
| Log a warning if one value compares less than the other. More... | |
| #define | GEOS_WARNING_IF_LT(lhs, rhs) GEOS_WARNING_IF_LT_MSG( lhs, rhs, "" ) |
| Log a warning if one value compares less than the other. More... | |
| #define | GEOS_WARNING_IF_LE_MSG(lhs, rhs, ...) GEOS_WARNING_IF_OP_MSG( lhs, <=, >, rhs, __VA_ARGS__ ) |
| Log a warning if one value compares less than or equal to the other. More... | |
| #define | GEOS_WARNING_IF_LE(lhs, rhs) GEOS_WARNING_IF_LE_MSG( lhs, rhs, "" ) |
| Log a warning if one value compares less than or equal to the other. More... | |
| #define | GEOS_THROW_IF_OP_MSG(lhs, OP, NOP, rhs, MSG, ...) |
Throw an exception if lhs OP rhs. More... | |
| #define | GEOS_THROW_IF_EQ_MSG(lhs, rhs, MSG, ...) GEOS_THROW_IF_OP_MSG( lhs, ==, !=, rhs, MSG, __VA_ARGS__ ) |
| Raise a hard error if two values are equal. More... | |
| #define | GEOS_THROW_IF_EQ(lhs, rhs, ...) GEOS_THROW_IF_EQ_MSG( lhs, rhs, "", __VA_ARGS__ ) |
| Raise a hard error if two values are equal. More... | |
| #define | GEOS_THROW_IF_NE_MSG(lhs, rhs, MSG, ...) GEOS_THROW_IF_OP_MSG( lhs, !=, ==, rhs, MSG, __VA_ARGS__ ) |
| Throw an exception if two values are not equal. More... | |
| #define | GEOS_THROW_IF_NE(lhs, rhs, ...) GEOS_THROW_IF_NE_MSG( lhs, rhs, "", __VA_ARGS__ ) |
| Throw an exception if two values are not equal. More... | |
| #define | GEOS_THROW_IF_GT_MSG(lhs, rhs, MSG, ...) GEOS_THROW_IF_OP_MSG( lhs, >, <=, rhs, MSG, __VA_ARGS__ ) |
| Throw an exception if one value compares greater than the other. More... | |
| #define | GEOS_THROW_IF_GT(lhs, rhs, ...) GEOS_THROW_IF_GT_MSG( lhs, rhs, "", __VA_ARGS__ ) |
| Throw an exception if one value compares greater than the other. More... | |
| #define | GEOS_THROW_IF_GE_MSG(lhs, rhs, MSG, ...) GEOS_THROW_IF_OP_MSG( lhs, >=, <, rhs, MSG, __VA_ARGS__ ) |
| Throw an exception if one value compares greater than or equal to the other. More... | |
| #define | GEOS_THROW_IF_GE(lhs, rhs, ...) GEOS_THROW_IF_GE_MSG( lhs, rhs, "", __VA_ARGS__ ) |
| Throw an exception if one value compares greater than or equal to the other. More... | |
| #define | GEOS_THROW_IF_LT_MSG(lhs, rhs, MSG, ...) GEOS_THROW_IF_OP_MSG( lhs, <, >=, rhs, MSG, __VA_ARGS__ ) |
| Throw an exception if one value compares less than the other. More... | |
| #define | GEOS_THROW_IF_LT(lhs, rhs, ...) GEOS_THROW_IF_LT_MSG( lhs, rhs, "", __VA_ARGS__ ) |
| Throw an exception if one value compares less than the other. More... | |
| #define | GEOS_THROW_IF_LE_MSG(lhs, rhs, MSG, ...) GEOS_THROW_IF_OP_MSG( lhs, <=, >, rhs, MSG, __VA_ARGS__ ) |
| Throw an exception if one value compares less than or equal to the other. More... | |
| #define | GEOS_THROW_IF_LE(lhs, rhs, ...) GEOS_THROW_IF_LE_MSG( lhs, rhs, "", __VA_ARGS__ ) |
| Throw an exception if one value compares less than or equal to the other. More... | |
| #define | GEOS_ASSERT_ENABLED |
| Enables assertion macros (GEOS_ASSERT*) when NDEBUG is not defined or previously explicitly enabled. | |
| #define | GEOS_ASSERT_MSG(COND, ...) GEOS_ERROR_IF_CAUSE( !( COND ), "Expected: " STRINGIZE( COND ), __VA_ARGS__ ) |
Abort execution if COND is false but only when NDEBUG is not defined.. More... | |
| #define | GEOS_ASSERT_OP_MSG(lhs, OP, rhs, ...) |
Abort execution if lhs OP rhs is false. More... | |
| #define | GEOS_ASSERT(COND) GEOS_ASSERT_MSG( COND, "" ) |
| Assert a condition in debug builds. More... | |
| #define | GEOS_ASSERT_EQ_MSG(lhs, rhs, ...) GEOS_ASSERT_OP_MSG( lhs, ==, rhs, __VA_ARGS__ ) |
| Assert that two values compare equal in debug builds. More... | |
| #define | GEOS_ASSERT_EQ(lhs, rhs) GEOS_ASSERT_EQ_MSG( lhs, rhs, "" ) |
| Assert that two values compare equal in debug builds. More... | |
| #define | GEOS_ASSERT_NE_MSG(lhs, rhs, ...) GEOS_ASSERT_OP_MSG( lhs, !=, rhs, __VA_ARGS__ ) |
| Assert that two values compare not equal in debug builds. More... | |
| #define | GEOS_ASSERT_NE(lhs, rhs) GEOS_ASSERT_NE_MSG( lhs, rhs, "" ) |
| Assert that two values compare not equal in debug builds. More... | |
| #define | GEOS_ASSERT_GT_MSG(lhs, rhs, ...) GEOS_ASSERT_OP_MSG( lhs, >, rhs, __VA_ARGS__ ) |
| Assert that one value compares greater than the other in debug builds. More... | |
| #define | GEOS_ASSERT_GT(lhs, rhs) GEOS_ASSERT_GT_MSG( lhs, rhs, "" ) |
| Assert that one value compares greater than the other in debug builds. More... | |
| #define | GEOS_ASSERT_GE_MSG(lhs, rhs, ...) GEOS_ASSERT_OP_MSG( lhs, >=, rhs, __VA_ARGS__ ) |
| Assert that one value compares greater than or equal to the other in debug builds. More... | |
| #define | GEOS_ASSERT_GE(lhs, rhs) GEOS_ASSERT_GE_MSG( lhs, rhs, "" ) |
| Assert that one value compares greater than or equal to the other in debug builds. More... | |
| #define | GEOS_ASSERT_LT_MSG(lhs, rhs, ...) GEOS_ASSERT_OP_MSG( lhs, <, rhs, __VA_ARGS__ ) |
| Assert that one value compares greater than the other in debug builds. More... | |
| #define | GEOS_ASSERT_LT(lhs, rhs) GEOS_ASSERT_LT_MSG( lhs, rhs, "" ) |
| Assert that one value compares greater than the other in debug builds. More... | |
| #define | GEOS_ASSERT_LE_MSG(lhs, rhs, ...) GEOS_ASSERT_OP_MSG( lhs, <=, rhs, __VA_ARGS__ ) |
| Assert that one value compares greater than or equal to the other in debug builds. More... | |
| #define | GEOS_ASSERT_LE(lhs, rhs) GEOS_ASSERT_LE_MSG( lhs, rhs, "" ) |
| Assert that one value compares greater than or equal to the other in debug builds. More... | |
Functions | |
| void | geos::logger::InitializeLogger (const std::string &rank_output_dir="") |
| Initialize the logger in a serial build. More... | |
| void | geos::logger::FinalizeLogger () |
| Finalize the logger and close the rank streams. | |
| #define GEOS_ASSERT | ( | COND | ) | GEOS_ASSERT_MSG( COND, "" ) |
Assert a condition in debug builds.
| COND | The condition to check, causes an error if false. |
Definition at line 868 of file Logger.hpp.
| #define GEOS_ASSERT_EQ | ( | lhs, | |
| rhs | |||
| ) | GEOS_ASSERT_EQ_MSG( lhs, rhs, "" ) |
Assert that two values compare equal in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 885 of file Logger.hpp.
| #define GEOS_ASSERT_EQ_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ASSERT_OP_MSG( lhs, ==, rhs, __VA_ARGS__ ) |
Assert that two values compare equal in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 878 of file Logger.hpp.
| #define GEOS_ASSERT_GE | ( | lhs, | |
| rhs | |||
| ) | GEOS_ASSERT_GE_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than or equal to the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 936 of file Logger.hpp.
| #define GEOS_ASSERT_GE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ASSERT_OP_MSG( lhs, >=, rhs, __VA_ARGS__ ) |
Assert that one value compares greater than or equal to the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 929 of file Logger.hpp.
| #define GEOS_ASSERT_GT | ( | lhs, | |
| rhs | |||
| ) | GEOS_ASSERT_GT_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 919 of file Logger.hpp.
| #define GEOS_ASSERT_GT_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ASSERT_OP_MSG( lhs, >, rhs, __VA_ARGS__ ) |
Assert that one value compares greater than the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 912 of file Logger.hpp.
| #define GEOS_ASSERT_LE | ( | lhs, | |
| rhs | |||
| ) | GEOS_ASSERT_LE_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than or equal to the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 970 of file Logger.hpp.
| #define GEOS_ASSERT_LE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ASSERT_OP_MSG( lhs, <=, rhs, __VA_ARGS__ ) |
Assert that one value compares greater than or equal to the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 963 of file Logger.hpp.
| #define GEOS_ASSERT_LT | ( | lhs, | |
| rhs | |||
| ) | GEOS_ASSERT_LT_MSG( lhs, rhs, "" ) |
Assert that one value compares greater than the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 953 of file Logger.hpp.
| #define GEOS_ASSERT_LT_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ASSERT_OP_MSG( lhs, <, rhs, __VA_ARGS__ ) |
Assert that one value compares greater than the other in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 946 of file Logger.hpp.
| #define GEOS_ASSERT_MSG | ( | COND, | |
| ... | |||
| ) | GEOS_ERROR_IF_CAUSE( !( COND ), "Expected: " STRINGIZE( COND ), __VA_ARGS__ ) |
Abort execution if COND is false but only when NDEBUG is not defined..
| COND | The condition to check, causes an error if false. |
| ... | Variable arguments with the following structure:
|
Definition at line 837 of file Logger.hpp.
| #define GEOS_ASSERT_NE | ( | lhs, | |
| rhs | |||
| ) | GEOS_ASSERT_NE_MSG( lhs, rhs, "" ) |
Assert that two values compare not equal in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 902 of file Logger.hpp.
| #define GEOS_ASSERT_NE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ASSERT_OP_MSG( lhs, !=, rhs, __VA_ARGS__ ) |
Assert that two values compare not equal in debug builds.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 895 of file Logger.hpp.
| #define GEOS_ASSERT_OP_MSG | ( | lhs, | |
| OP, | |||
| rhs, | |||
| ... | |||
| ) |
Abort execution if lhs OP rhs is false.
| lhs | The left side of the operation. |
| OP | The operation to apply. |
| rhs | The right side of the operation. |
| ... | Variable arguments with the following structure:
|
Definition at line 849 of file Logger.hpp.
| #define GEOS_ERROR | ( | ... | ) | GEOS_ERROR_IF_CAUSE( true, "", __VA_ARGS__ ) |
Raise a hard error and terminate the program.
| ... | Variable arguments with the following structure:
|
Definition at line 226 of file Logger.hpp.
| #define GEOS_ERROR_IF | ( | COND, | |
| ... | |||
| ) | GEOS_ERROR_IF_CAUSE( COND, "Error cause: " STRINGIZE( COND ), __VA_ARGS__ ) |
Conditionally raise a hard error and terminate the program.
| COND | A condition that causes the error if true. |
| ... | Variable arguments with the following structure:
|
Definition at line 217 of file Logger.hpp.
| #define GEOS_ERROR_IF_CAUSE | ( | COND, | |
| CAUSE_MESSAGE, | |||
| ... | |||
| ) |
Conditionally raise a hard error and terminate the program. Implementation of GEOS_ERROR_* and GEOS_ASSERT_* macros.
| COND | A condition that causes the error if true. |
| CAUSE_MESSAGE | The condition that caused the error, in a readable text format for the user. |
| ... | Variable arguments with the following structure:
|
Definition at line 151 of file Logger.hpp.
| #define GEOS_ERROR_IF_EQ | ( | lhs, | |
| rhs | |||
| ) | GEOS_ERROR_IF_EQ_MSG( lhs, rhs, "" ) |
Raise a hard error if two values are equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 462 of file Logger.hpp.
| #define GEOS_ERROR_IF_EQ_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ERROR_IF_OP_MSG( lhs, ==, !=, rhs, __VA_ARGS__ ) |
Raise a hard error if two values are equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 455 of file Logger.hpp.
| #define GEOS_ERROR_IF_GE | ( | lhs, | |
| rhs | |||
| ) | GEOS_ERROR_IF_GE_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares greater than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 513 of file Logger.hpp.
| #define GEOS_ERROR_IF_GE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ERROR_IF_OP_MSG( lhs, >=, <, rhs, __VA_ARGS__ ) |
Raise a hard error if one value compares greater than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 506 of file Logger.hpp.
| #define GEOS_ERROR_IF_GT | ( | lhs, | |
| rhs | |||
| ) | GEOS_ERROR_IF_GT_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares greater than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 496 of file Logger.hpp.
| #define GEOS_ERROR_IF_GT_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ERROR_IF_OP_MSG( lhs, >, <=, rhs, __VA_ARGS__ ) |
Raise a hard error if one value compares greater than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 489 of file Logger.hpp.
| #define GEOS_ERROR_IF_LE | ( | lhs, | |
| rhs | |||
| ) | GEOS_ERROR_IF_LE_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares less than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 548 of file Logger.hpp.
| #define GEOS_ERROR_IF_LE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ERROR_IF_OP_MSG( lhs, <=, >, rhs, __VA_ARGS__ ) |
Raise a hard error if one value compares less than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 540 of file Logger.hpp.
| #define GEOS_ERROR_IF_LT | ( | lhs, | |
| rhs | |||
| ) | GEOS_ERROR_IF_LT_MSG( lhs, rhs, "" ) |
Raise a hard error if one value compares less than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 530 of file Logger.hpp.
| #define GEOS_ERROR_IF_LT_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ERROR_IF_OP_MSG( lhs, <, >=, rhs, __VA_ARGS__ ) |
Raise a hard error if one value compares less than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 523 of file Logger.hpp.
| #define GEOS_ERROR_IF_NE | ( | lhs, | |
| rhs | |||
| ) | GEOS_ERROR_IF_NE_MSG( lhs, rhs, "" ) |
Raise a hard error if two values are not equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 479 of file Logger.hpp.
| #define GEOS_ERROR_IF_NE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_ERROR_IF_OP_MSG( lhs, !=, ==, rhs, __VA_ARGS__ ) |
Raise a hard error if two values are not equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 472 of file Logger.hpp.
| #define GEOS_ERROR_IF_OP_MSG | ( | lhs, | |
| OP, | |||
| NOP, | |||
| rhs, | |||
| ... | |||
| ) |
Abort execution if lhs OP rhs.
| lhs | The left side of the operation. |
| OP | The operation to apply. |
| NOP | The operation that caused the error, used in the message (typically opposite of OP). |
| rhs | The right side of the operation. |
| ... | Variable arguments with the following structure:
|
Definition at line 438 of file Logger.hpp.
| #define GEOS_ERROR_LHS_RHS_DECLS | ( | lhs, | |
| rhs | |||
| ) |
Declares variables for "assertion" evaluation only on CPU; no-op on GPU to avoid device compilation errors.
| lhs | The left side of the operation. |
| rhs | The right side of the operation. |
Definition at line 424 of file Logger.hpp.
| #define GEOS_GLOBAL_LOGGER ErrorLogger::global() |
Error logger instance to use in GEOS_ERROR*, GEOS_ASSERT*, GEOS_THROW*, GEOS_WARNING* macros.
Definition at line 138 of file Logger.hpp.
| #define GEOS_INFO | ( | msg | ) | LVARRAY_INFO( msg ) |
Log an info message.
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 417 of file Logger.hpp.
| #define GEOS_INFO_IF | ( | EXP, | |
| msg | |||
| ) | LVARRAY_INFO_IF( EXP, msg ) |
Conditionally log an info message.
| EXP | an expression that will be evaluated as a predicate |
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 411 of file Logger.hpp.
| #define GEOS_LOG | ( | ... | ) | LVARRAY_LOG( __VA_ARGS__ ) |
Log a message on screen.
The expression to log must evaluate something that can be stream inserted.
Definition at line 38 of file Logger.hpp.
| #define GEOS_LOG_IF | ( | EXP, | |
| msg | |||
| ) |
Conditionally log a message.
| EXP | an expression that will be evaluated as a predicate |
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 55 of file Logger.hpp.
| #define GEOS_LOG_RANK | ( | msg | ) | GEOS_LOG_RANK_IF( true, msg ) |
Log a message to the rank output stream.
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 124 of file Logger.hpp.
| #define GEOS_LOG_RANK_0 | ( | msg | ) | GEOS_LOG_RANK_0_IF( true, msg ) |
Log a message on screen on rank 0.
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 99 of file Logger.hpp.
| #define GEOS_LOG_RANK_0_IF | ( | EXP, | |
| msg | |||
| ) |
Conditionally log a message on screen on rank 0.
| EXP | an expression that will be evaluated as a predicate |
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 70 of file Logger.hpp.
| #define GEOS_LOG_RANK_0_IF_NLR | ( | EXP, | |
| msg | |||
| ) |
Conditionally log a message on screen on rank 0 without line breaking.
| EXP | an expression that will be evaluated as a predicate |
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 85 of file Logger.hpp.
| #define GEOS_LOG_RANK_IF | ( | EXP, | |
| msg | |||
| ) |
Conditionally log a message to the rank output stream.
| EXP | an expression that will be evaluated as a predicate |
| msg | a message to log (any expression that can be stream inserted) |
Definition at line 109 of file Logger.hpp.
| #define GEOS_LOG_RANK_VAR | ( | var | ) | GEOS_LOG_RANK( #var " = " << var ) |
Log a variable/expression name and value on screen to the rank output stream.
| var | a variable or expression accessible from current scope that can be stream inserted |
Definition at line 130 of file Logger.hpp.
| #define GEOS_LOG_VAR | ( | ... | ) | LVARRAY_LOG_VAR( __VA_ARGS__ ) |
Log an expression and its value on screen.
The expression to log must evaluate something that can be stream inserted.
Definition at line 44 of file Logger.hpp.
| #define GEOS_THROW | ( | MSG, | |
| ... | |||
| ) | GEOS_THROW_IF_CAUSE( true, "", MSG, __VA_ARGS__ ) |
Conditionally raise a hard error and terminate the program.
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 318 of file Logger.hpp.
| #define GEOS_THROW_IF | ( | COND, | |
| MSG, | |||
| ... | |||
| ) | GEOS_THROW_IF_CAUSE( COND, "Error cause: " STRINGIZE( COND ), MSG, __VA_ARGS__ ) |
Conditionally raise a hard error and terminate the program.
| COND | A condition that causes the error if true. |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 308 of file Logger.hpp.
| #define GEOS_THROW_IF_CAUSE | ( | COND, | |
| CAUSE_MESSAGE, | |||
| MSG, | |||
| ... | |||
| ) |
Conditionally throw an exception.
| COND | an expression that will be evaluated as a predicate |
| CAUSE_MESSAGE | The condition that caused the error, in a readable text format for the user. |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 238 of file Logger.hpp.
| #define GEOS_THROW_IF_EQ | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_THROW_IF_EQ_MSG( lhs, rhs, "", __VA_ARGS__ ) |
Raise a hard error if two values are equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 711 of file Logger.hpp.
| #define GEOS_THROW_IF_EQ_MSG | ( | lhs, | |
| rhs, | |||
| MSG, | |||
| ... | |||
| ) | GEOS_THROW_IF_OP_MSG( lhs, ==, !=, rhs, MSG, __VA_ARGS__ ) |
Raise a hard error if two values are equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 701 of file Logger.hpp.
| #define GEOS_THROW_IF_GE | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_THROW_IF_GE_MSG( lhs, rhs, "", __VA_ARGS__ ) |
Throw an exception if one value compares greater than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 774 of file Logger.hpp.
| #define GEOS_THROW_IF_GE_MSG | ( | lhs, | |
| rhs, | |||
| MSG, | |||
| ... | |||
| ) | GEOS_THROW_IF_OP_MSG( lhs, >=, <, rhs, MSG, __VA_ARGS__ ) |
Throw an exception if one value compares greater than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 764 of file Logger.hpp.
| #define GEOS_THROW_IF_GT | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_THROW_IF_GT_MSG( lhs, rhs, "", __VA_ARGS__ ) |
Throw an exception if one value compares greater than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 753 of file Logger.hpp.
| #define GEOS_THROW_IF_GT_MSG | ( | lhs, | |
| rhs, | |||
| MSG, | |||
| ... | |||
| ) | GEOS_THROW_IF_OP_MSG( lhs, >, <=, rhs, MSG, __VA_ARGS__ ) |
Throw an exception if one value compares greater than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 743 of file Logger.hpp.
| #define GEOS_THROW_IF_LE | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_THROW_IF_LE_MSG( lhs, rhs, "", __VA_ARGS__ ) |
Throw an exception if one value compares less than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 816 of file Logger.hpp.
| #define GEOS_THROW_IF_LE_MSG | ( | lhs, | |
| rhs, | |||
| MSG, | |||
| ... | |||
| ) | GEOS_THROW_IF_OP_MSG( lhs, <=, >, rhs, MSG, __VA_ARGS__ ) |
Throw an exception if one value compares less than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 806 of file Logger.hpp.
| #define GEOS_THROW_IF_LT | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_THROW_IF_LT_MSG( lhs, rhs, "", __VA_ARGS__ ) |
Throw an exception if one value compares less than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 795 of file Logger.hpp.
| #define GEOS_THROW_IF_LT_MSG | ( | lhs, | |
| rhs, | |||
| MSG, | |||
| ... | |||
| ) | GEOS_THROW_IF_OP_MSG( lhs, <, >=, rhs, MSG, __VA_ARGS__ ) |
Throw an exception if one value compares less than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 785 of file Logger.hpp.
| #define GEOS_THROW_IF_NE | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_THROW_IF_NE_MSG( lhs, rhs, "", __VA_ARGS__ ) |
Throw an exception if two values are not equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 732 of file Logger.hpp.
| #define GEOS_THROW_IF_NE_MSG | ( | lhs, | |
| rhs, | |||
| MSG, | |||
| ... | |||
| ) | GEOS_THROW_IF_OP_MSG( lhs, !=, ==, rhs, MSG, __VA_ARGS__ ) |
Throw an exception if two values are not equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 722 of file Logger.hpp.
| #define GEOS_THROW_IF_OP_MSG | ( | lhs, | |
| OP, | |||
| NOP, | |||
| rhs, | |||
| MSG, | |||
| ... | |||
| ) |
Throw an exception if lhs OP rhs.
| lhs | The left side of the operation. |
| OP | The operation to apply. |
| NOP | The operation that caused the error, used in the message (typically opposite of OP). |
| rhs | The right side of the operation. |
| MSG | a message to log (any expression that can be stream inserted) |
| ... | Variable arguments with the following structure:
|
Definition at line 682 of file Logger.hpp.
| #define GEOS_WARNING | ( | ... | ) | GEOS_WARNING_IF_CAUSE( true, "", __VA_ARGS__ ) |
Report a warning.
| ... | Variable arguments with the following structure:
|
Definition at line 404 of file Logger.hpp.
| #define GEOS_WARNING_IF | ( | COND, | |
| ... | |||
| ) | GEOS_WARNING_IF_CAUSE( COND, "Warning cause: " STRINGIZE( COND ), __VA_ARGS__ ) |
Conditionally report a warning.
| COND | an expression that will be evaluated as a predicate |
| ... | Variable arguments with the following structure:
|
Definition at line 395 of file Logger.hpp.
| #define GEOS_WARNING_IF_CAUSE | ( | COND, | |
| CAUSE_MESSAGE, | |||
| ... | |||
| ) |
Conditionally report a warning.
| COND | A condition that causes the error if true. |
| CAUSE_MESSAGE | The condition that caused the error, in a readable text format for the user. |
| ... | Variable arguments with the following structure:
|
Definition at line 329 of file Logger.hpp.
| #define GEOS_WARNING_IF_EQ | ( | lhs, | |
| rhs | |||
| ) | GEOS_WARNING_IF_EQ_MSG( lhs, rhs, "" ) |
Log a warning if two values are equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 584 of file Logger.hpp.
| #define GEOS_WARNING_IF_EQ_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_WARNING_IF_OP_MSG( lhs, ==, !=, rhs, __VA_ARGS__ ) |
Log a warning if two values are equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 577 of file Logger.hpp.
| #define GEOS_WARNING_IF_GE | ( | lhs, | |
| rhs | |||
| ) | GEOS_WARNING_IF_GE_MSG( lhs, rhs, "" ) |
Log a warning if one value compares greater than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 635 of file Logger.hpp.
| #define GEOS_WARNING_IF_GE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_WARNING_IF_OP_MSG( lhs, >=, <, rhs, __VA_ARGS__ ) |
Log a warning if one value compares greater than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 628 of file Logger.hpp.
| #define GEOS_WARNING_IF_GT | ( | lhs, | |
| rhs | |||
| ) | GEOS_WARNING_IF_GT_MSG( lhs, rhs, "" ) |
Log a warning if one value compares greater than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 618 of file Logger.hpp.
| #define GEOS_WARNING_IF_GT_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_WARNING_IF_OP_MSG( lhs, >, <=, rhs, __VA_ARGS__ ) |
Log a warning if one value compares greater than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 611 of file Logger.hpp.
| #define GEOS_WARNING_IF_LE | ( | lhs, | |
| rhs | |||
| ) | GEOS_WARNING_IF_LE_MSG( lhs, rhs, "" ) |
Log a warning if one value compares less than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 669 of file Logger.hpp.
| #define GEOS_WARNING_IF_LE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_WARNING_IF_OP_MSG( lhs, <=, >, rhs, __VA_ARGS__ ) |
Log a warning if one value compares less than or equal to the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 662 of file Logger.hpp.
| #define GEOS_WARNING_IF_LT | ( | lhs, | |
| rhs | |||
| ) | GEOS_WARNING_IF_LT_MSG( lhs, rhs, "" ) |
Log a warning if one value compares less than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 652 of file Logger.hpp.
| #define GEOS_WARNING_IF_LT_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_WARNING_IF_OP_MSG( lhs, <, >=, rhs, __VA_ARGS__ ) |
Log a warning if one value compares less than the other.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 645 of file Logger.hpp.
| #define GEOS_WARNING_IF_NE | ( | lhs, | |
| rhs | |||
| ) | GEOS_WARNING_IF_NE_MSG( lhs, rhs, "" ) |
Log a warning if two values are not equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
Definition at line 601 of file Logger.hpp.
| #define GEOS_WARNING_IF_NE_MSG | ( | lhs, | |
| rhs, | |||
| ... | |||
| ) | GEOS_WARNING_IF_OP_MSG( lhs, !=, ==, rhs, __VA_ARGS__ ) |
Log a warning if two values are not equal.
| lhs | expression to be evaluated and used as left-hand side in comparison |
| rhs | expression to be evaluated and used as right-hand side in comparison |
| ... | Variable arguments with the following structure:
|
Definition at line 594 of file Logger.hpp.
| #define GEOS_WARNING_IF_OP_MSG | ( | lhs, | |
| OP, | |||
| NOP, | |||
| rhs, | |||
| ... | |||
| ) |
Log a warning if lhs OP rhs.
| lhs | The left side of the operation. |
| OP | The operation to apply. |
| NOP | The operation that caused the error, used in the message (typically opposite of OP). |
| rhs | The right side of the operation. |
| ... | Variable arguments with the following structure:
|
Definition at line 560 of file Logger.hpp.
| void geos::logger::InitializeLogger | ( | const std::string & | rank_output_dir = "" | ) |
Initialize the logger in a serial build.
| rank_output_dir | output directory for rank log files |