Line data Source code
1 : AMREX_FORCE_INLINE 2 : void operator += (const OP_CLASS &rhs) 3 : { 4 : #define X(name) \ 5 : name += rhs.name; 6 135215 : OP_VARS 7 : #undef X 8 147755 : } 9 : 10 : AMREX_FORCE_INLINE 11 : OP_CLASS operator * (const Set::Scalar alpha) const 12 : { 13 0 : OP_CLASS ret; 14 : #define X(name) \ 15 : ret.name = name*alpha; 16 0 : OP_VARS 17 : #undef X 18 0 : return ret; 19 : } 20 : friend OP_CLASS operator * (const Set::Scalar alpha, const OP_CLASS b); 21 : friend OP_CLASS operator + (const OP_CLASS a, const OP_CLASS b); 22 : friend OP_CLASS operator - (const OP_CLASS a, const OP_CLASS b); 23 : friend bool operator == (const OP_CLASS a, const OP_CLASS b);