|
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 802 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 819 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 812 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 870 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 863 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 853 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 846 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 904 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 897 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 887 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 880 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 771 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 836 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 829 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 783 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 204 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 195 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 396 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 389 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 447 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 440 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 430 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 423 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 482 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 474 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 464 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 457 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 413 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 406 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 372 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 358 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 351 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 345 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 273 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 263 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 216 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 645 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 635 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 708 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 698 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 687 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 677 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 750 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 740 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 729 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 719 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 666 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 656 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 616 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 338 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 329 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 284 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 518 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 511 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 569 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 562 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 552 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 545 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 603 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 596 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 586 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 579 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 535 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 528 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 494 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 |