1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
#define PSURCHAGE_IT_TYPE_OP_ADD_LEFT(TYPE,TYPECONSTITERATOR) template<class T> BinaryOp<TYPECONSTITERATOR, T, Add> operator +(const TYPE& v1, const T& v2){return MakeAdd(v1.begin(), v2);}
#define PSURCHAGE_IT_TYPE_OP_ADD_RIGHT(TYPE,TYPECONSTITERATOR) template <class T> BinaryOp<T, TYPECONSTITERATOR, Add> operator +(const T& v1, const TYPE& v2){return MakeAdd(v1, v2.begin());}
#define PSURCHAGE_IT_TYPE_OP_ADD_TYPE(TYPE,TYPECONSTITERATOR) BinaryOp<TYPECONSTITERATOR, TYPECONSTITERATOR, Add> operator +(const TYPE& v1, const TYPE& v2){return MakeAdd(v1.begin(), v2.begin());}
#define PSURCHAGE_IT_TYPE_OP_SUB_TYPE(TYPE,TYPECONSTITERATOR) BinaryOp<TYPECONSTITERATOR, TYPECONSTITERATOR, Sub> operator - (const TYPE& v1, const TYPE& v2){return MakeSub(v1.begin(), v2.begin());}
#define PSURCHAGE_IT_TYPE_OP_MULT_LEFT(TYPE,TYPECONSTITERATOR) BinaryOp<TYPECONSTITERATOR, UnaryOp<double, Const>, Mult> operator * (const TYPE& v1, double d){return MakeMult(v1.begin(), MakeConst(d));}
#define PSURCHAGE_IT_TYPE_OP_MULT_RIGHT(TYPE,TYPECONSTITERATOR) BinaryOp<UnaryOp<double, Const>, TYPECONSTITERATOR, Mult> operator * (double d, const TYPE& v1){return MakeMult(MakeConst(d), v1.begin());}
#define PSURCHAGE_IT_TYPE_OP_DIV_SCAL(TYPE,TYPECONSTITERATOR) BinaryOp<TYPECONSTITERATOR, UnaryOp<double, Const>, Div> operator / (const TYPE& v1, double d){return MakeDiv(v1.begin(), MakeConst(d));}
#define PSURCHAGE_IT_TYPE_OP_MINUS(TYPE,TYPECONSTITERATOR) UnaryOp<TYPECONSTITERATOR, Minus> operator - (const TYPE& v1){return MakeMinus(v1.begin());}
|