11#pragma once
22
3+ #include " react/Defs.h"
4+
35#include < functional>
46#include < memory>
57#include < thread>
1113#include " react/graph/ConversionNodes.h"
1214
1315// //////////////////////////////////////////////////////////////////////////////////////
14- namespace react {
16+ REACT_BEGIN_
1517
1618// //////////////////////////////////////////////////////////////////////////////////////
1719// / Fold
@@ -28,7 +30,7 @@ inline auto Fold(V&& init, const REvents<D,E>& events, F&& func)
2830 -> RSignal<D,S>
2931{
3032 return RSignal<D,S>(
31- std::make_shared<FoldNode<D,S,E>>(
33+ std::make_shared<REACT_IMPL_:: FoldNode<D,S,E>>(
3234 std::forward<V>(init), events.GetPtr (), std::forward<F>(func), false ));
3335}
3436
@@ -47,7 +49,7 @@ inline auto Iterate(V&& init, const REvents<D,E>& events, F&& func)
4749 -> RSignal<D,S>
4850{
4951 return RSignal<D,S>(
50- std::make_shared<IterateNode<D,S,E>>(
52+ std::make_shared<REACT_IMPL_:: IterateNode<D,S,E>>(
5153 std::forward<V>(init), events.GetPtr (), std::forward<F>(func), false ));
5254}
5355
@@ -64,7 +66,7 @@ inline auto Hold(V&& init, const REvents<D,T>& events)
6466 -> RSignal<D,T>
6567{
6668 return RSignal<D,T>(
67- std::make_shared<HoldNode<D,T>>(
69+ std::make_shared<REACT_IMPL_:: HoldNode<D,T>>(
6870 std::forward<V>(init), events.GetPtr (), false ));
6971}
7072
@@ -81,7 +83,7 @@ inline auto Snapshot(const RSignal<D,S>& target, const REvents<D,E>& trigger)
8183 -> RSignal<D,S>
8284{
8385 return RSignal<D,S>(
84- std::make_shared<SnapshotNode<D,S,E>>(
86+ std::make_shared<REACT_IMPL_:: SnapshotNode<D,S,E>>(
8587 target.GetPtr (), trigger.GetPtr (), false ));
8688}
8789
@@ -110,7 +112,7 @@ inline auto Monitor(const RSignal<D,S>& target)
110112 -> REvents<D,S>
111113{
112114 return REvents<D,S>(
113- std::make_shared<MonitorNode<D, S>>(
115+ std::make_shared<REACT_IMPL_:: MonitorNode<D, S>>(
114116 target.GetPtr (), false ));
115117}
116118
@@ -159,7 +161,7 @@ inline auto Pulse(const RSignal<D,S>& target, const REvents<D,E>& trigger)
159161 -> REvents<D,S>
160162{
161163 return REvents<D,S>(
162- std::make_shared<PulseNode<D,S,E>>(
164+ std::make_shared<REACT_IMPL_:: PulseNode<D,S,E>>(
163165 target.GetPtr (), trigger.GetPtr (), false ));
164166}
165167
@@ -179,7 +181,7 @@ inline auto Flatten(const RSignal<D,THandle<D,TInnerValue>>& node)
179181 -> REvents<D,TInnerValue>
180182{
181183 return REvents<D,TInnerValue>(
182- std::make_shared<EventFlattenNode<D, REvents<D,TInnerValue>, TInnerValue>>(
184+ std::make_shared<REACT_IMPL_:: EventFlattenNode<D, REvents<D,TInnerValue>, TInnerValue>>(
183185 node.GetPtr (), node ().GetPtr (), false ));
184186}
185187
@@ -201,4 +203,4 @@ struct Decrementer : public std::unary_function<T,T>
201203 T operator () (T v) { return v-1 ; }
202204};
203205
204- } // ~namespace react
206+ REACT_END_
0 commit comments