Alamo
InClassOperators.H
Go to the documentation of this file.
1AMREX_FORCE_INLINE
2void operator += (const OP_CLASS &rhs)
3{
4#define X(name) \
5 name += rhs.name;
7#undef X
8}
9
10AMREX_FORCE_INLINE
12{
13 OP_CLASS ret;
14#define X(name) \
15 ret.name = name*alpha;
17#undef X
18 return ret;
19}
20friend OP_CLASS operator * (const Set::Scalar alpha, const OP_CLASS b);
21friend OP_CLASS operator + (const OP_CLASS a, const OP_CLASS b);
22friend OP_CLASS operator - (const OP_CLASS a, const OP_CLASS b);
23friend bool operator == (const OP_CLASS a, const OP_CLASS b);
#define OP_VARS
Definition Cubic.H:122
#define OP_CLASS
Definition Cubic.H:121
AMREX_FORCE_INLINE void operator+=(const OP_CLASS &rhs)
friend bool operator==(const OP_CLASS a, const OP_CLASS b)
friend OP_CLASS operator-(const OP_CLASS a, const OP_CLASS b)
AMREX_FORCE_INLINE OP_CLASS operator*(const Set::Scalar alpha) const
friend OP_CLASS operator+(const OP_CLASS a, const OP_CLASS b)
amrex::Real Scalar
Definition Base.H:19