| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -96,19 +96,19 @@ class TransactionStatus | |||
| 96 | 96 | using PtrT = REACT_IMPL::WaitingStatePtrT; | |
| 97 | 97 | ||
| 98 | 98 | public: | |
| 99 | + // Default ctor | ||
| 99 | 100 | inline TransactionStatus() : | |
| 100 | 101 | statePtr_( StateT::Create() ) | |
| 101 | 102 | {} | |
| 102 | 103 | ||
| 103 | - TransactionStatus(const TransactionStatus&) = delete; | ||
| 104 | - TransactionStatus& operator=(const TransactionStatus&) = delete; | ||
| 105 | - | ||
| 104 | + // Move ctor | ||
| 106 | 105 | inline TransactionStatus(TransactionStatus&& other) : | |
| 107 | 106 | statePtr_( std::move(other.statePtr_) ) | |
| 108 | 107 | { | |
| 109 | 108 | other.statePtr_ = StateT::Create(); | |
| 110 | 109 | } | |
| 111 | 110 | ||
| 111 | + // Move assignment | ||
| 112 | 112 | inline TransactionStatus& operator=(TransactionStatus&& other) | |
| 113 | 113 | { | |
| 114 | 114 | if (this != &other) | |
@@ -119,6 +119,10 @@ class TransactionStatus | |||
| 119 | 119 | return *this; | |
| 120 | 120 | } | |
| 121 | 121 | ||
| 122 | + // Deleted copy ctor & assignment | ||
| 123 | + TransactionStatus(const TransactionStatus&) = delete; | ||
| 124 | + TransactionStatus& operator=(const TransactionStatus&) = delete; | ||
| 125 | + | ||
| 122 | 126 | inline void Wait() | |
| 123 | 127 | { | |
| 124 | 128 | assert(statePtr_.Get() != nullptr); | |
@@ -152,21 +156,29 @@ class Continuation : public REACT_IMPL::ContinuationBase<D,D2> | |||
| 152 | 156 | using SourceDomainT = D; | |
| 153 | 157 | using TargetDomainT = D2; | |
| 154 | 158 | ||
| 159 | + // Default ctor | ||
| 155 | 160 | Continuation() = default; | |
| 156 | 161 | ||
| 162 | + // Move ctor | ||
| 157 | 163 | Continuation(Continuation&& other) : | |
| 158 | 164 | Continuation::ContinuationBase( std::move(other) ) | |
| 159 | 165 | {} | |
| 160 | 166 | ||
| 167 | + // Node ctor | ||
| 161 | 168 | explicit Continuation(NodePtrT&& nodePtr) : | |
| 162 | 169 | Continuation::ContinuationBase( std::move(nodePtr) ) | |
| 163 | 170 | {} | |
| 164 | 171 | ||
| 172 | + // Move assignment | ||
| 165 | 173 | Continuation& operator=(Continuation&& other) | |
| 166 | 174 | { | |
| 167 | 175 | Continuation::ContinuationBase::operator=( std::move(other) ); | |
| 168 | 176 | return *this; | |
| 169 | 177 | } | |
| 178 | + | ||
| 179 | + // Deleted copy ctor & assignment | ||
| 180 | + Continuation(const Continuation&) = delete; | ||
| 181 | + Continuation& operator=(const Continuation&) = delete; | ||
| 170 | 182 | }; | |
| 171 | 183 | ||
| 172 | 184 | /////////////////////////////////////////////////////////////////////////////////////////////////// | |
| Back | FazBrowse Home | New Git URL |
0 commit comments