From 6460276bc4ff5345f9b5bd7534324efb6018de1c Mon Sep 17 00:00:00 2001 From: Christian Zimmermann Date: Sun, 7 Jan 2018 23:08:16 +0100 Subject: [PATCH] assignment expression class --- src/multi_array_operation.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/multi_array_operation.h b/src/multi_array_operation.h index 2a13671..a89804a 100644 --- a/src/multi_array_operation.h +++ b/src/multi_array_operation.h @@ -81,6 +81,23 @@ namespace MultiArrayTools { public: + class AssignmentExpr + { + public: + AssignmentExpr(OperationMaster* mPtr, OpClass* secPtr); + + AssignmentExpr(AssignmentExpr&& in) = default; + AssignmentExpr& operator=(AssignmentExpr&& in) = default; + + inline void operator()(size_t start = 0); + + private: + AssignmentExpr() = default; + + OperationMaster* mMPtr; + OpClass* mSecPtr; + }; + typedef T value_type; typedef OperationBase OB; typedef ContainerRange CRange;