cl::sycl::exception_list Class Reference
List of exceptions thrown asynchronously, contains objects of type exception_ptr_class. More...
#include <exception_list.h>
Public Types | |
using | value_type = exception_ptr_class |
Type of the list elements. More... | |
using | reference = value_type & |
Reference type to a list element. More... | |
using | const_reference = const value_type & |
Constant reference type to a list element. More... | |
using | size_type = std::size_t |
Type of the size of the list. More... | |
using | iterator = _exception_list::iterator |
iterator definition More... | |
using | const_iterator = _exception_list::const_iterator |
Constant iterator definition. More... | |
Public Member Functions | |
size_type | size () const |
Number of reported errors. More... | |
const_iterator | begin () const |
const_iterator | end () const |
Friends | |
COMPUTECPP_EXPORT exception_list * | make_exception_list () |
COMPUTECPP_EXPORT void | add_exception_to_list (exception_list *el, exception_ptr_class asyncExcp) |
Detailed Description
List of exceptions thrown asynchronously, contains objects of type exception_ptr_class.
The method add_exception has to be called from a derived or friend class, it cannot be accessed directly by the user.
Definition at line 35 of file exception_list.h.
Member Typedef Documentation
◆ const_iterator
using cl::sycl::exception_list::const_iterator = _exception_list::const_iterator |
Constant iterator definition.
Definition at line 76 of file exception_list.h.
◆ const_reference
using cl::sycl::exception_list::const_reference = const value_type& |
Constant reference type to a list element.
Definition at line 67 of file exception_list.h.
◆ iterator
using cl::sycl::exception_list::iterator = _exception_list::iterator |
iterator definition
Definition at line 73 of file exception_list.h.
◆ reference
Reference type to a list element.
Definition at line 64 of file exception_list.h.
◆ size_type
using cl::sycl::exception_list::size_type = std::size_t |
Type of the size of the list.
Definition at line 70 of file exception_list.h.
◆ value_type
Type of the list elements.
Definition at line 61 of file exception_list.h.
Member Function Documentation
◆ begin()
const_iterator cl::sycl::exception_list::begin | ( | ) | const |
- Returns
- The head of the error list
◆ end()
const_iterator cl::sycl::exception_list::end | ( | ) | const |
- Returns
- The sentinel value representing the end of the error list
◆ size()
size_type cl::sycl::exception_list::size | ( | ) | const |
Number of reported errors.
- Returns
- the number of errors
Friends And Related Function Documentation
◆ add_exception_to_list
|
friend |
◆ make_exception_list
|
friend |
The documentation for this class was generated from the following file: