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 edac01a commit 491f704
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions include/ureact/adaptor/tap.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class signal_tap_node final : public signal_node<S>
this->detach_from_all();
}

UREACT_WARN_UNUSED_RESULT update_result update() override
UREACT_WARN_UNUSED_RESULT core::update_result update() override
{
return this->try_change_value( get_internals( m_target ).get_value() );
}
Expand Down Expand Up @@ -65,12 +65,13 @@ class event_tap_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
{
const auto& src_events = get_internals( m_target ).get_events();
this->get_events() = src_events;

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
2 changes: 1 addition & 1 deletion include/ureact/detail/temp_signal.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class signal_op_node final : public signal_node<S>
}
}

UREACT_WARN_UNUSED_RESULT update_result update() override
UREACT_WARN_UNUSED_RESULT core::update_result update() override
{
return this->try_change_value( evaluate() );
}
Expand Down
5 changes: 3 additions & 2 deletions include/ureact/detail/zip_base.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,15 @@ class event_zip_node final : public event_stream_node<zip_result_t<Type, F, Valu
this->detach_from_all();
}

UREACT_WARN_UNUSED_RESULT update_result update() override
UREACT_WARN_UNUSED_RESULT core::update_result update() override
{
fetch_buffers();

while( are_all_slots_ready() )
pop_slots_to_emit_event();

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

0 comments on commit 491f704

Please sign in to comment.