JayBeams
0.1
Another project to have fun coding.
|
A run-time clFFT error. More...
#include <error.hpp>
Public Member Functions | |
clfft_error (cl_int error, char const *msg) | |
Constructor from a clFFT error code and a message. More... | |
~clfft_error () noexcept | |
Destructor. More... | |
cl_int | error_code () const noexcept |
Returns the numeric error code. More... | |
Static Public Member Functions | |
static std::string | to_string (cl_int error) |
Convert error code to a string. More... | |
Private Member Functions | |
std::string | to_what (cl_int error, char const *msg) |
Generate a what() string given an error code and message. More... | |
Private Attributes | |
cl_int | error_ |
std::string | what_ |
A run-time clFFT error.
This class represents an error return a clFFT function.
jb::clfft::clfft_error::clfft_error | ( | cl_int | error, |
char const * | msg | ||
) |
|
inlinenoexcept |
|
inlinenoexcept |
Returns the numeric error code.
Definition at line 25 of file error.hpp.
References error_, to_string(), and to_what().
|
static |
Convert error code to a string.
Definition at line 13 of file error.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), error_code(), and to_what().
|
private |
Generate a what() string given an error code and message.
Definition at line 50 of file error.cpp.
References to_string().
Referenced by error_code().
|
private |
Definition at line 37 of file error.hpp.
Referenced by error_code().