Skip to content

Commit

Permalink
#125 Move graph_interface.hpp into a new folder <ureact/core/>
Browse files Browse the repository at this point in the history
* move all graph_interface.hpp content into a new public interface ureact::core
  • Loading branch information
YarikTH committed Sep 4, 2023
1 parent ad52185 commit e2acca3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions include/ureact/adaptor/merge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ class event_merge_node final : public event_stream_node<E>
this->detach_from_all();
}

UREACT_WARN_UNUSED_RESULT update_result update() override
UREACT_WARN_UNUSED_RESULT core::update_result update() override
{
std::apply(
[this](
const events<Values>&... sources ) { ( this->copy_events_from( sources ), ... ); },
m_sources );

return !this->get_events().empty() ? update_result::changed : update_result::unchanged;
return !this->get_events().empty() ? core::update_result::changed
: core::update_result::unchanged;
}

private:
Expand Down
4 changes: 2 additions & 2 deletions include/ureact/adaptor/monitor.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class monitor_node final : public event_stream_node<S>
this->detach_from_all();
}

UREACT_WARN_UNUSED_RESULT update_result update() override
UREACT_WARN_UNUSED_RESULT core::update_result update() override
{
this->get_events().push_back( get_internals( m_target ).get_value() );

return update_result::changed;
return core::update_result::changed;
}

private:
Expand Down

0 comments on commit e2acca3

Please sign in to comment.