maliput
|
#include <string>
Namespaces | |
maliput | |
Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h. | |
maliput::common | |
maliput::common::internal | |
Macros | |
#define | MALIPUT_THROW_UNLESS(condition) |
Evaluates condition and iff the value is false will throw an exception with a message showing at least the condition text, function name, file, and line. More... | |
#define | MALIPUT_THROW_MESSAGE(msg) |
Throws an exception with a message showing at least the condition text, function name, file, and line. More... | |
#define | MALIPUT_VALIDATE(pred, message) |
#define | MALIPUT_IS_IN_RANGE(value, min_value, max_value) |
Functions | |
__attribute__ ((noreturn)) void Abort(const char *condition | |
#define MALIPUT_IS_IN_RANGE | ( | value, | |
min_value, | |||
max_value | |||
) |
Throws if value
is within [min_value
; max_value
]. It forwards the call to MALIPUT_VALIDATE() with a customized string stating the error.
#define MALIPUT_THROW_MESSAGE | ( | msg | ) |
Throws an exception with a message showing at least the condition text, function name, file, and line.
#define MALIPUT_THROW_UNLESS | ( | condition | ) |
Evaluates condition
and iff the value is false will throw an exception with a message showing at least the condition text, function name, file, and line.
#define MALIPUT_VALIDATE | ( | pred, | |
message | |||
) |
Used to validate that a pred-icate
passed into a function or method is true; if not, an exception with message
is thrown.