Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gauthier Quesnel
irritator
Commits
8d8d7e93
Commit
8d8d7e93
authored
Apr 29, 2020
by
Gauthier Quesnel
Browse files
core: add observation for generator
parent
9c20112d
Pipeline
#11730
passed with stage
in 45 seconds
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
lib/include/irritator/core.hpp
View file @
8d8d7e93
...
...
@@ -3343,11 +3343,15 @@ struct generator
status
lambda
(
data_array
<
output_port
,
output_port_id
>&
output_ports
)
noexcept
{
if
(
auto
*
port
=
output_ports
.
try_to_get
(
y
[
0
]);
port
)
port
->
messages
.
emplace_front
(
value
);
output_ports
.
get
(
y
[
0
]).
messages
.
emplace_front
(
value
);
return
status
::
success
;
}
message
observation
(
time
/*t*/
)
const
noexcept
{
return
message
(
value
);
}
};
struct
constant
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment