Skip to content

Commit d238be6

Browse files
committed
#125 Move graph_interface.hpp into a new folder <ureact/core/>
* move all graph_interface.hpp content into a new public interface ureact::core
1 parent f7e707a commit d238be6

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

include/ureact/adaptor/observe.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ class signal_observer_node final : public observer_node
139139
this->detach_from_all();
140140
}
141141

142-
UREACT_WARN_UNUSED_RESULT update_result update() override
142+
UREACT_WARN_UNUSED_RESULT core::update_result update() override
143143
{
144144
if( m_subject.is_valid() )
145145
{
@@ -150,7 +150,7 @@ class signal_observer_node final : public observer_node
150150
detach_observer();
151151
}
152152

153-
return update_result::unchanged;
153+
return core::update_result::unchanged;
154154
}
155155

156156
private:
@@ -188,7 +188,7 @@ class events_observer_node final : public observer_node
188188
this->detach_from_all();
189189
}
190190

191-
UREACT_WARN_UNUSED_RESULT update_result update() override
191+
UREACT_WARN_UNUSED_RESULT core::update_result update() override
192192
{
193193
if( m_subject.is_valid() )
194194
{
@@ -208,7 +208,7 @@ class events_observer_node final : public observer_node
208208
}
209209
}
210210

211-
return update_result::unchanged;
211+
return core::update_result::unchanged;
212212
}
213213

214214
private:

include/ureact/detail/graph_impl.inl

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,6 @@ UREACT_FUNC void react_graph_impl::schedule_successors( node_data& parentNode )
307307

308308
UREACT_FUNC void react_graph_impl::propagate_node_change( const node_id nodeId )
309309
{
310-
using update_result = core::update_result;
311-
312310
node_data& node = m_node_data[nodeId];
313311
if( std::shared_ptr<reactive_node_interface> nodePtr = node.node_ptr.lock() )
314312
{
@@ -320,16 +318,16 @@ UREACT_FUNC void react_graph_impl::propagate_node_change( const node_id nodeId )
320318
return;
321319
}
322320

323-
const update_result result = nodePtr->update();
321+
const core::update_result result = nodePtr->update();
324322

325323
// Topology changed?
326-
if( result == update_result::shifted )
324+
if( result == core::update_result::shifted )
327325
{
328326
re_schedule_node( nodeId );
329327
return;
330328
}
331329

332-
if( result == update_result::changed )
330+
if( result == core::update_result::changed )
333331
{
334332
m_changed_nodes.add( nodeId );
335333
schedule_successors( node );

0 commit comments

Comments
 (0)