FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
uTensor/src/uTensor/errorHandlers/SimpleErrorHandler.hpp at develop · uTensor/uTensor · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
uTensor
/
uTensor
Public
Notifications
You must be signed in to change notification settings
Fork
250
Star
1.9k
Code
Issues
51
Pull requests
5
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
uTensor
/
src
/
uTensor
/
errorHandlers
/
SimpleErrorHandler.hpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
28 lines (22 loc) · 672 Bytes
Breadcrumbs
uTensor
/
src
/
uTensor
/
errorHandlers
/
SimpleErrorHandler.hpp
Copy path
File metadata and controls
28 lines (22 loc) · 672 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#
ifndef
UTENSOR_SIMPLE_ERROR_HANDLER_HPP
#
define
UTENSOR_SIMPLE_ERROR_HANDLER_HPP
#
include
<
deque
>
#
include
<
functional
>
#
include
"
uTensor/core/errorHandler.hpp
"
namespace
uTensor
{
class
SimpleErrorHandler
:
public
ErrorHandler
{
public:
using
onErrorF_t = std::function<
void
(Error*)>;
SimpleErrorHandler
(
size_t
max_num_events);
virtual
void
uThrow
(Error* err)
override
;
virtual
void
notify
(
const
Event& evt)
override
;
void
set_onError
(onErrorF_t onError);
std::deque<Event>::iterator
begin
();
std::deque<Event>::iterator
end
();
private:
std::deque<Event> _eventQ;
onErrorF_t _onError;
size_t
max_num_events;
};
}
//
namespace uTensor
#
endif
Back
|
FazBrowse Home
|
New Git URL