FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Moved engine traits to IReactiveEngine.h · jchjava/cpp.react@0d3315d · GitHub

Commit 0d3315d

Browse files
committed
Moved engine traits to IReactiveEngine.h
1 parent fe62f89 commit 0d3315d

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎include/react/detail/IReactiveEngine.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,4 +166,10 @@ struct EngineInterface
166166

167167
};
168168

169+
///////////////////////////////////////////////////////////////////////////////////////////////////
170+
/// Engine traits
171+
///////////////////////////////////////////////////////////////////////////////////////////////////
172+
template <typename> struct EnableNodeUpdateTimer : std::false_type {};
173+
template <typename> struct EnableParallelUpdating : std::false_type {};
174+
169175
/****************************************/ REACT_IMPL_END /***************************************/

‎include/react/detail/graph/GraphBase.h‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,13 @@
1717

1818
#include "react/common/Util.h"
1919
#include "react/common/Types.h"
20+
#include "react/detail/IReactiveEngine.h"
2021

2122
/***************************************/ REACT_IMPL_BEGIN /**************************************/
2223

2324
///////////////////////////////////////////////////////////////////////////////////////////////////
2425
/// NodeUpdateTimer
2526
///////////////////////////////////////////////////////////////////////////////////////////////////
26-
template <typename T>
27-
struct EnableNodeUpdateTimer : std::false_type {};
28-
2927
template <typename D, bool enabled>
3028
class NodeUpdateTimer;
3129

@@ -126,9 +124,7 @@ class ReactiveNode :
126124
public:
127125
using PtrT = std::shared_ptr<ReactiveNode>;
128126

129-
ReactiveNode()
130-
{
131-
}
127+
ReactiveNode() = default;
132128

133129
~ReactiveNode()
134130
{

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL