11 template<
char x,
class A>
struct Op1;
12 template<
char x,
class A,
class B>
struct Op;
14 template <
class A>
struct Op<'-',A> {
18 Op1 (
const A &
a) : op(a){};
21 template <
class A,
class B>
struct Op<'+',A,B> {
26 Op(
const A &
a,
const B & b) : op1(a), op2(b) {};
29 template <
class A,
class B>
struct Op<'+',A,B> {
34 Op(
const A &
a,
const B & b) : op1(a), op2(b) {};
37 template <
class A,
class B>
struct Op<'-',A,B> {
42 Op(
const A &
a,
const B & b) : op1(a), op2(b) {};
45 template <
class A,
class B>
struct Op<'*
',A,B> {
49 Op(const Op<'*
',A,B> & p): op1(p.op1), op2(p.op2) {};
50 Op(const A & a, const B & b) : op1(a), op2(b) {};
52 //----------------------------------------------------------------------
53 template <class A, class B> struct Op<'.
',A,B> {
57 Op(const Op<'.
',A,B> & p): op1(p.op1), op2(p.op2) {};
58 Op(const A & a, const B & b) : op1(a), op2(b) {};
60 //----------------------------------------------------------------------
61 template <class A, class B> struct Op<'/
',A,B> {
65 Op(const Op<'/
',A,B> & p): op1(p.op1), op2(p.op2) {};
66 Op(const A & a, const B & b) : op1(a), op2(b) {};
68 //----------------------------------------------------------------------
69 template <class A, class B> struct Op<'%
',A,B> {
73 Op(const Op<'%
',A,B> & p): op1(p.op1), op2(p.op2) {};
74 Op(const A & a, const B & b) : op1(a), op2(b) {};
76 //----------------------------------------------------------------------
77 template <class A, class B> struct Op<'^
',A,B> {
81 Op(const Op<'^
',A,B> & p): op1(p.op1), op2(p.op2) {};
82 Op(const A & a, const B & b) : op1(a), op2(b) {};
85 #endif // _Operator_H_
const A & op1
Definition: Operator.hpp:22
Op(const A &a, const B &b)
Definition: Operator.hpp:26
const A & op
Definition: Operator.hpp:15
Op1(const A &a)
Definition: Operator.hpp:18
Definition: Operator.hpp:21
Definition: Operator.hpp:37
const B & op2
Definition: Operator.hpp:23
Op(const A &a, const B &b)
Definition: Operator.hpp:42
Op1(const Op1<'-', A > &p)
Definition: Operator.hpp:17
const B & op2
Definition: Operator.hpp:39
const A & op1
Definition: Operator.hpp:38
Definition: Operator.hpp:11
Op(const Op<'+', A, B > &p)
Definition: Operator.hpp:25
MSKstreamtypee MSKint32t MSKint32t MSKint32t MSKint32t MSKint32t MSKint32t MSKint32t MSKint32t MSKint32t a
Definition: mosek.h:3833
Op()
Definition: Operator.hpp:40
Op()
Definition: Operator.hpp:24
Op(const Op<'-', A, B > &p)
Definition: Operator.hpp:41
Op1()
Definition: Operator.hpp:16
Definition: Operator.hpp:12