#include <Error.h>
Public Types | |
enum | { User = 0x0001 , Warning = 0x0002 , Runtime = 0x0004 } |
Public Member Functions | |
ErrorReport (const char *f, int l, const char *cs, int flags) | |
HALIDE_ALWAYS_INLINE ErrorReport & | ref () |
template<typename T> | |
ErrorReport & | operator<< (const T &x) |
~ErrorReport () noexcept(false) | |
When you're done using << on the object, and let it fall out of scope, this errors out, or throws an exception if they are enabled. | |
Public Attributes | |
std::ostringstream | msg |
const int | flags |
Halide::Internal::ErrorReport::ErrorReport | ( | const char * | f, |
int | l, | ||
const char * | cs, | ||
int | flags ) |
References flags.
Referenced by operator<<(), and ref().
Halide::Internal::ErrorReport::~ErrorReport | ( | ) |
When you're done using << on the object, and let it fall out of scope, this errors out, or throws an exception if they are enabled.
This is a little dangerous because the destructor will also be called if there's an exception in flight due to an error in one of the arguments passed to operator<<. We handle this by only actually throwing if there isn't an exception in flight already.
|
inline |
Definition at line 107 of file Error.h.
References ErrorReport(), and HALIDE_ALWAYS_INLINE.
|
inline |
Definition at line 112 of file Error.h.
References ErrorReport(), and msg.
std::ostringstream Halide::Internal::ErrorReport::msg |
Definition at line 101 of file Error.h.
Referenced by operator<<().
const int Halide::Internal::ErrorReport::flags |
Definition at line 102 of file Error.h.
Referenced by ErrorReport().