ARM Compute Library
17.04
|
Go to the source code of this file.
Namespaces | |
arm_compute | |
Macros | |
#define | ARM_COMPUTE_ERROR(...) ::arm_compute::error(__func__, __FILE__, __LINE__, __VA_ARGS__) |
Print the given message then throw an std::runtime_error. More... | |
#define | ARM_COMPUTE_ERROR_LOC(func, file, line, ...) ::arm_compute::error(func, file, line, __VA_ARGS__) |
Print the given message then throw an std::runtime_error. More... | |
#define | ARM_COMPUTE_UNUSED(var) (void)(var) |
To avoid unused variables warnings. More... | |
#define | ARM_COMPUTE_ERROR_ON_MSG(cond, ...) |
#define | ARM_COMPUTE_ERROR_ON_LOC_MSG(cond, func, file, line, ...) |
#define | ARM_COMPUTE_CONST_ON_ERROR(cond, val, msg) val |
#define | ARM_COMPUTE_ERROR_ON(cond) ARM_COMPUTE_ERROR_ON_MSG(cond, #cond) |
If the condition is true then an error message is printed and an exception thrown. More... | |
#define | ARM_COMPUTE_ERROR_ON_LOC(cond, func, file, line) ARM_COMPUTE_ERROR_ON_LOC_MSG(cond, func, file, line, #cond) |
If the condition is true then an error message is printed and an exception thrown. More... | |
Functions | |
void | error (const char *function, const char *file, const int line, const char *msg,...) |
Print an error message then throw an std::runtime_error. More... | |
#define ARM_COMPUTE_ERROR | ( | ... | ) | ::arm_compute::error(__func__, __FILE__, __LINE__, __VA_ARGS__) |
Print the given message then throw an std::runtime_error.
[in] | ... | Message to display before aborting. |
Definition at line 31 of file Error.h.
Referenced by arm_compute::data_size_from_type(), arm_compute::data_type_from_format(), arm_compute::element_size_from_data_type(), PPMLoader::fill_image(), arm_compute::num_planes_from_format(), PPMLoader::open(), arm_compute::pixel_size_from_format(), arm_compute::plane_idx_from_channel(), and test_helpers::save_to_ppm().
#define ARM_COMPUTE_ERROR_LOC | ( | func, | |
file, | |||
line, | |||
... | |||
) | ::arm_compute::error(func, file, line, __VA_ARGS__) |
#define ARM_COMPUTE_ERROR_ON | ( | cond | ) | ARM_COMPUTE_ERROR_ON_MSG(cond, #cond) |
If the condition is true then an error message is printed and an exception thrown.
[in] | cond | Condition to evaluate |
Definition at line 100 of file Error.h.
Referenced by AccessWindowHorizontal::AccessWindowHorizontal(), AccessWindowRectangle::AccessWindowRectangle(), AccessWindowVertical::AccessWindowVertical(), arm_compute::adjust_down(), arm_compute::adjust_up(), IArray< NELKInternalKeypoint >::at(), arm_compute::ceil_to_multiple(), CLArray< T >::cl_buffer(), arm_compute::colorconvert_iyuv_to_nv12(), arm_compute::colorconvert_iyuv_to_rgb(), arm_compute::colorconvert_iyuv_to_yuv4(), arm_compute::colorconvert_nv12_to_iyuv(), arm_compute::colorconvert_nv12_to_rgb(), arm_compute::colorconvert_nv12_to_yuv4(), arm_compute::colorconvert_rgb_to_iyuv(), arm_compute::colorconvert_rgb_to_nv12(), arm_compute::colorconvert_rgb_to_rgbx(), arm_compute::colorconvert_rgb_to_yuv4(), arm_compute::colorconvert_rgbx_to_rgb(), arm_compute::colorconvert_yuyv_to_iyuv(), arm_compute::colorconvert_yuyv_to_nv12(), arm_compute::colorconvert_yuyv_to_rgb(), PPMLoader::fill_image(), arm_compute::floor_to_multiple(), PPMLoader::init_image(), PPMLoader::open(), Dimensions< size_t >::operator[](), IArray< NELKInternalKeypoint >::push_back(), IArray< NELKInternalKeypoint >::resize(), test_helpers::save_to_ppm(), Window::scale(), Dimensions< size_t >::set(), Window::set(), Window::set_dimension_step(), Window::shift(), Window::split_window(), TensorShape::total_size(), TensorShape::total_size_upper(), and Window::validate().
#define ARM_COMPUTE_ERROR_ON_LOC | ( | cond, | |
func, | |||
file, | |||
line | |||
) | ARM_COMPUTE_ERROR_ON_LOC_MSG(cond, func, file, line, #cond) |
If the condition is true then an error message is printed and an exception thrown.
[in] | cond | Condition to evaluate |
[in] | func | Function in which the error occurred. |
[in] | file | File in which the error occurred. |
[in] | line | Line in which the error occurred. |
Definition at line 110 of file Error.h.
Referenced by arm_compute::error_on_channel_not_in(), arm_compute::error_on_data_type_not_in(), and arm_compute::error_on_format_not_in().
#define ARM_COMPUTE_ERROR_ON_LOC_MSG | ( | cond, | |
func, | |||
file, | |||
line, | |||
... | |||
) |
Definition at line 92 of file Error.h.
Referenced by arm_compute::error_on_data_type_channel_not_in(), arm_compute::error_on_data_type_not_in(), arm_compute::error_on_format_not_in(), arm_compute::error_on_mismatching_data_types(), and arm_compute::error_on_mismatching_shapes().
#define ARM_COMPUTE_ERROR_ON_MSG | ( | cond, | |
... | |||
) |
Definition at line 91 of file Error.h.
Referenced by PPMLoader::fill_image(), PPMLoader::open(), and test_helpers::parse_ppm_header().
#define ARM_COMPUTE_UNUSED | ( | var | ) | (void)(var) |
To avoid unused variables warnings.
This is useful if for example a variable is only used in debug builds and generates a warning in release builds.
[in] | var | Variable which is unused |
Definition at line 49 of file Error.h.
Referenced by arm_compute::error_on_channel_not_in(), arm_compute::error_on_data_type_channel_not_in(), arm_compute::error_on_data_type_not_in(), arm_compute::error_on_format_not_in(), arm_compute::error_on_mismatching_data_types(), arm_compute::error_on_mismatching_shapes(), PPMLoader::fill_image(), main_neon_copy_objects(), and test_helpers::parse_ppm_header().