Alamo
ExtClassOperators.H
Go to the documentation of this file.
1AMREX_FORCE_INLINE
3{
4 OP_CLASS ret;
5#define X(name) \
6 ret.name = b.name*alpha;
8#undef X
9 return ret;
10}
11
12AMREX_FORCE_INLINE
14{
15 OP_CLASS ret;
16#define X(name) \
17 ret.name = a.name + b.name;
19#undef X
20 return ret;
21}
22
23AMREX_FORCE_INLINE
25{
26 OP_CLASS ret;
27#define X(name) \
28 ret.name = a.name - b.name;
30#undef X
31 return ret;
32}
33
34AMREX_FORCE_INLINE
35bool operator == (const OP_CLASS a, const OP_CLASS b)
36{
37 bool ret = true;
38#define X(name) \
39 if (!(a.name == b.name)) ret = false;
41#undef X
42 return ret;
43}
44
45#undef OP_VARS
46#undef OP_CLASS
#define OP_VARS
Definition Cubic.H:122
#define OP_CLASS
Definition Cubic.H:121
AMREX_FORCE_INLINE OP_CLASS operator-(const OP_CLASS a, const OP_CLASS b)
AMREX_FORCE_INLINE OP_CLASS operator*(const Set::Scalar alpha, const OP_CLASS b)
AMREX_FORCE_INLINE bool operator==(const OP_CLASS a, const OP_CLASS b)
AMREX_FORCE_INLINE OP_CLASS operator+(const OP_CLASS a, const OP_CLASS b)
amrex::Real Scalar
Definition Base.H:19