custom-macros.hh
上传用户:clovervx
上传日期:2010-03-30
资源大小:787k
文件大小:1318k
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_23(NAME, T1, C1, T2, C2, T3, C3, T4, C4, T5, C5, T6, C6, T7, C7, T8, C8, T9, C9, T10, C10, T11, C11, T12, C12, T13, C13, T14, C14, T15, C15, T16, C16, T17, C17, T18, C18, T19, C19, T20, C20, T21, C21, T22, C22, T23, C23, T24, C24, T25, C25, T26, C26)
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12), C13 (p13), C14 (p14), C15 (p15), C16 (p16), C17 (p17), C18 (p18), C19 (p19), C20 (p20), C21 (p21), C22 (p22), C23 (p23) {}
- #define sql_compare_type_def_23(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_23(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__23(NAME, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24, C25, C26)
- template <sql_dummy_type dummy>
- int sql_compare_##NAME (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- return sql_cmp(x.##C23 , y.##C23 );
- }
- template <sql_dummy_type dummy>
- int compare (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- return sql_cmp(x.##C23 , y.##C23 );
- }
- // ---------------------------------------------------
- // End Compare 23
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 24
- // ---------------------------------------------------
- #define sql_compare_define_24(NAME, T1, C1, T2, C2, T3, C3, T4, C4, T5, C5, T6, C6, T7, C7, T8, C8, T9, C9, T10, C10, T11, C11, T12, C12, T13, C13, T14, C14, T15, C15, T16, C16, T17, C17, T18, C18, T19, C19, T20, C20, T21, C21, T22, C22, T23, C23, T24, C24, T25, C25, T26, C26)
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12), C13 (p13), C14 (p14), C15 (p15), C16 (p16), C17 (p17), C18 (p18), C19 (p19), C20 (p20), C21 (p21), C22 (p22), C23 (p23), C24 (p24) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_24(NAME, T1, C1, T2, C2, T3, C3, T4, C4, T5, C5, T6, C6, T7, C7, T8, C8, T9, C9, T10, C10, T11, C11, T12, C12, T13, C13, T14, C14, T15, C15, T16, C16, T17, C17, T18, C18, T19, C19, T20, C20, T21, C21, T22, C22, T23, C23, T24, C24, T25, C25, T26, C26)
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12), C13 (p13), C14 (p14), C15 (p15), C16 (p16), C17 (p17), C18 (p18), C19 (p19), C20 (p20), C21 (p21), C22 (p22), C23 (p23), C24 (p24) {}
- #define sql_compare_type_def_24(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_24(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__24(NAME, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24, C25, C26)
- template <sql_dummy_type dummy>
- int sql_compare_##NAME (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- if (cmp = sql_cmp(x.##C23 , y.##C23 )) return cmp;
- return sql_cmp(x.##C24 , y.##C24 );
- }
- template <sql_dummy_type dummy>
- int compare (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- if (cmp = sql_cmp(x.##C23 , y.##C23 )) return cmp;
- return sql_cmp(x.##C24 , y.##C24 );
- }
- // ---------------------------------------------------
- // End Compare 24
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 25
- // ---------------------------------------------------
- #define sql_compare_define_25(NAME, T1, C1, T2, C2, T3, C3, T4, C4, T5, C5, T6, C6, T7, C7, T8, C8, T9, C9, T10, C10, T11, C11, T12, C12, T13, C13, T14, C14, T15, C15, T16, C16, T17, C17, T18, C18, T19, C19, T20, C20, T21, C21, T22, C22, T23, C23, T24, C24, T25, C25, T26, C26)
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12), C13 (p13), C14 (p14), C15 (p15), C16 (p16), C17 (p17), C18 (p18), C19 (p19), C20 (p20), C21 (p21), C22 (p22), C23 (p23), C24 (p24), C25 (p25) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C25 = p25;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_25(NAME, T1, C1, T2, C2, T3, C3, T4, C4, T5, C5, T6, C6, T7, C7, T8, C8, T9, C9, T10, C10, T11, C11, T12, C12, T13, C13, T14, C14, T15, C15, T16, C16, T17, C17, T18, C18, T19, C19, T20, C20, T21, C21, T22, C22, T23, C23, T24, C24, T25, C25, T26, C26)
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C25 = p25;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12), C13 (p13), C14 (p14), C15 (p15), C16 (p16), C17 (p17), C18 (p18), C19 (p19), C20 (p20), C21 (p21), C22 (p22), C23 (p23), C24 (p24), C25 (p25) {}
- #define sql_compare_type_def_25(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_25(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__25(NAME, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24, C25, C26)
- template <sql_dummy_type dummy>
- int sql_compare_##NAME (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- if (cmp = sql_cmp(x.##C23 , y.##C23 )) return cmp;
- if (cmp = sql_cmp(x.##C24 , y.##C24 )) return cmp;
- return sql_cmp(x.##C25 , y.##C25 );
- }
- template <sql_dummy_type dummy>
- int compare (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- if (cmp = sql_cmp(x.##C23 , y.##C23 )) return cmp;
- if (cmp = sql_cmp(x.##C24 , y.##C24 )) return cmp;
- return sql_cmp(x.##C25 , y.##C25 );
- }
- // ---------------------------------------------------
- // End Compare 25
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 26
- // ---------------------------------------------------
- #define sql_compare_define_26(NAME, T1, C1, T2, C2, T3, C3, T4, C4, T5, C5, T6, C6, T7, C7, T8, C8, T9, C9, T10, C10, T11, C11, T12, C12, T13, C13, T14, C14, T15, C15, T16, C16, T17, C17, T18, C18, T19, C19, T20, C20, T21, C21, T22, C22, T23, C23, T24, C24, T25, C25, T26, C26)
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25, const T26 &p26) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12), C13 (p13), C14 (p14), C15 (p15), C16 (p16), C17 (p17), C18 (p18), C19 (p19), C20 (p20), C21 (p21), C22 (p22), C23 (p23), C24 (p24), C25 (p25), C26 (p26) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25, const T26 &p26) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C25 = p25;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C25 = p25;
- C26 = p26;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_26(NAME, T1, C1, T2, C2, T3, C3, T4, C4, T5, C5, T6, C6, T7, C7, T8, C8, T9, C9, T10, C10, T11, C11, T12, C12, T13, C13, T14, C14, T15, C15, T16, C16, T17, C17, T18, C18, T19, C19, T20, C20, T21, C21, T22, C22, T23, C23, T24, C24, T25, C25, T26, C26)
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25, const T26 &p26) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C25 = p25;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
- C5 = p5;
- C6 = p6;
- C7 = p7;
- C8 = p8;
- C9 = p9;
- C10 = p10;
- C11 = p11;
- C12 = p12;
- C13 = p13;
- C14 = p14;
- C15 = p15;
- C16 = p16;
- C17 = p17;
- C18 = p18;
- C19 = p19;
- C20 = p20;
- C21 = p21;
- C22 = p22;
- C23 = p23;
- C24 = p24;
- C25 = p25;
- C26 = p26;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7, const T8 &p8, const T9 &p9, const T10 &p10, const T11 &p11, const T12 &p12, const T13 &p13, const T14 &p14, const T15 &p15, const T16 &p16, const T17 &p17, const T18 &p18, const T19 &p19, const T20 &p20, const T21 &p21, const T22 &p22, const T23 &p23, const T24 &p24, const T25 &p25, const T26 &p26) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12), C13 (p13), C14 (p14), C15 (p15), C16 (p16), C17 (p17), C18 (p18), C19 (p19), C20 (p20), C21 (p21), C22 (p22), C23 (p23), C24 (p24), C25 (p25), C26 (p26) {}
- #define sql_compare_type_def_26(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_26(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__26(NAME, C1, C2, C3, C4, C5, C6, C7, C8, C9, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C20, C21, C22, C23, C24, C25, C26)
- template <sql_dummy_type dummy>
- int sql_compare_##NAME (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- if (cmp = sql_cmp(x.##C23 , y.##C23 )) return cmp;
- if (cmp = sql_cmp(x.##C24 , y.##C24 )) return cmp;
- if (cmp = sql_cmp(x.##C25 , y.##C25 )) return cmp;
- return sql_cmp(x.##C26 , y.##C26 );
- }
- template <sql_dummy_type dummy>
- int compare (const NAME &x, const NAME &y) {
- int cmp;
- if (cmp = sql_cmp(x.##C1 , y.##C1 )) return cmp;
- if (cmp = sql_cmp(x.##C2 , y.##C2 )) return cmp;
- if (cmp = sql_cmp(x.##C3 , y.##C3 )) return cmp;
- if (cmp = sql_cmp(x.##C4 , y.##C4 )) return cmp;
- if (cmp = sql_cmp(x.##C5 , y.##C5 )) return cmp;
- if (cmp = sql_cmp(x.##C6 , y.##C6 )) return cmp;
- if (cmp = sql_cmp(x.##C7 , y.##C7 )) return cmp;
- if (cmp = sql_cmp(x.##C8 , y.##C8 )) return cmp;
- if (cmp = sql_cmp(x.##C9 , y.##C9 )) return cmp;
- if (cmp = sql_cmp(x.##C10 , y.##C10 )) return cmp;
- if (cmp = sql_cmp(x.##C11 , y.##C11 )) return cmp;
- if (cmp = sql_cmp(x.##C12 , y.##C12 )) return cmp;
- if (cmp = sql_cmp(x.##C13 , y.##C13 )) return cmp;
- if (cmp = sql_cmp(x.##C14 , y.##C14 )) return cmp;
- if (cmp = sql_cmp(x.##C15 , y.##C15 )) return cmp;
- if (cmp = sql_cmp(x.##C16 , y.##C16 )) return cmp;
- if (cmp = sql_cmp(x.##C17 , y.##C17 )) return cmp;
- if (cmp = sql_cmp(x.##C18 , y.##C18 )) return cmp;
- if (cmp = sql_cmp(x.##C19 , y.##C19 )) return cmp;
- if (cmp = sql_cmp(x.##C20 , y.##C20 )) return cmp;
- if (cmp = sql_cmp(x.##C21 , y.##C21 )) return cmp;
- if (cmp = sql_cmp(x.##C22 , y.##C22 )) return cmp;
- if (cmp = sql_cmp(x.##C23 , y.##C23 )) return cmp;
- if (cmp = sql_cmp(x.##C24 , y.##C24 )) return cmp;
- if (cmp = sql_cmp(x.##C25 , y.##C25 )) return cmp;
- return sql_cmp(x.##C26 , y.##C26 );
- }
- // ---------------------------------------------------
- // End Compare 26
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Create 1
- // ---------------------------------------------------
- #define sql_create_basic_c_order_1(NAME, CMP, CONTR, T1, I1, O1)
- struct NAME;
- template <sql_dummy_type dummy> int sql_compare_##NAME (const NAME &, const NAME &);
- struct NAME {
- T1 I1;
- NAME () {}
- NAME (const MysqlRow &row);
- sql_compare_define_##CMP(NAME, T1, I1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- };
- template <sql_dummy_type dummy>
- void populate_##NAME (NAME *s, const MysqlRow &row) {
- s->##I1 = row[ O1 ];
- }
- inline NAME##::##NAME (const MysqlRow &row)
- {populate_##NAME##<sql_dummy>(this, row);}
- sql_COMPARE__##CMP##(NAME, I1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 )
- #define sql_create_complete_1(NAME, CMP, CONTR, T1, I1, N1, O1)
- struct NAME;
- enum NAME##_enum {
- NAME##_##I1
- ,NAME##_NULL
- };
- template <class Manip>
- class NAME##_value_list {
- /*friend ostream& operator << <> (ostream&, const NAME##_value_list&); */
- public:
- const NAME *obj;
- cchar *delem;
- Manip manip;
- public:
- NAME##_value_list (const NAME *o, cchar *d, Manip m)
- : obj(o), delem(d), manip(m) {}
- };
- template <class Manip>
- class NAME##_##field_list {
- /* friend ostream& operator << <> (ostream&, const NAME##_field_list&); */
- public:
- const NAME *obj;
- cchar *delem;
- Manip manip;
- public:
- NAME##_field_list (const NAME *o, cchar *d, Manip m)
- : obj(o), delem(d), manip(m) {}
- };
- template <class Manip>
- class NAME##_equal_list {
- /* friend ostream& operator << <> (ostream&, const NAME##_equal_list&); */
- public:
- const NAME *obj;
- cchar *delem;
- cchar *comp;
- Manip manip;
- public:
- NAME##_equal_list (const NAME *o, cchar *d, cchar *c, Manip m)
- : obj(o), delem(d), comp(c), manip(m) {}
- };
- template <class Manip>
- class NAME##_cus_value_list {
- /* friend ostream& operator << <> (ostream&,
- const NAME##_cus_value_list<Manip>&); */
- public:
- const NAME *obj;
- cchar *delem;
- Manip manip;
- vector<bool> *include;
- bool del_vector;
- public:
- ~##NAME##_cus_value_list () {if (del_vector) delete include;}
- NAME##_cus_value_list (const NAME *o, cchar *d, Manip m, bool i1);
- NAME##_cus_value_list (const NAME *o, cchar *d, Manip m, ##NAME##_enum i1);
- NAME##_cus_value_list (const NAME *o, cchar *d, Manip m ,vector<bool>)
- : obj(o), include(i), del_vector(false), delem(d), manip(m) {}
- };
- template <class Manip>
- class NAME##_cus_field_list {
- /* friend ostream& operator << <> (ostream&,
- const NAME##_cus_field_list<Manip>&); */
- public:
- const NAME *obj;
- cchar *delem;
- Manip manip;
- vector<bool> *include;
- bool del_vector;
- public:
- ~##NAME##_cus_field_list () {if (del_vector) delete include;}
- NAME##_cus_field_list (const NAME *o, cchar *d, Manip m, bool i1);
- NAME##_cus_field_list (const NAME *o, cchar *d, Manip m, ##NAME##_enum i1);
- NAME##_cus_field_list (const NAME *o, cchar *d, Manip m, vector<bool> *i)
- : obj(o), include(i), del_vector(false), delem(d), manip(m) {}
- };
- template <class Manip>
- class NAME##_cus_equal_list {
- /* friend ostream& operator << <> (ostream&,
- const NAME##_cus_equal_list<Manip>&); */
- public:
- const NAME *obj;
- vector<bool> *include;
- bool del_vector;
- cchar *delem;
- cchar *comp;
- Manip manip;
- public:
- ~##NAME##_##cus_equal_list () {if (del_vector) delete include;}
- NAME##_##cus_equal_list (const NAME *o, cchar *d, cchar *c, Manip m, bool i1);
- NAME##_##cus_equal_list (const NAME *o, cchar *d, cchar *c, Manip m, ##NAME##_enum i1);
- NAME##_##cus_equal_list (const NAME *o, cchar *d, cchar *c, Manip m, vector<bool> *i)
- : obj(o), include(i), del_vector(false), delem(d), comp(c), manip(m) {}
- };
- template <sql_dummy_type dummy> int sql_compare_##NAME (const NAME &, const NAME &);
- struct NAME {
- T1 I1;
- NAME () {}
- NAME (const MysqlRow &row);
- void set (const MysqlRow &row);
- sql_compare_define_##CMP(NAME, T1, I1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- sql_construct_define_##CONTR(NAME, T1, I1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
- static char *names[];
- static char *_table;
- static char *& table() {return _table;}
- /* cus_data */
- NAME##_cus_value_list<quote_type0> value_list(bool i1) const {
- return value_list(",", mysql_quote, i1);
- }
- NAME##_cus_value_list<quote_type0> value_list(##NAME##_enum i1) const {
- return value_list(",", mysql_quote, i1);
- }
- NAME##_cus_value_list<quote_type0> value_list(vector<bool> *i) const {
- return value_list(",", mysql_quote, i);
- }
- NAME##_cus_value_list<quote_type0> value_list(sql_cmp_type sc) const {
- return value_list(",", mysql_quote, sc);
- }
- NAME##_cus_value_list<quote_type0> value_list(cchar *d, bool i1) const {
- return value_list(d, mysql_quote, i1);
- }
- NAME##_cus_value_list<quote_type0> value_list(cchar *d, ##NAME##_enum i1) const {
- return value_list(d, mysql_quote, i1);
- }
- NAME##_cus_value_list<quote_type0> value_list(cchar *d,
- vector<bool> *i) const {
- return value_list(d, mysql_quote, i);
- }
- NAME##_cus_value_list<quote_type0> value_list(cchar *d,
- sql_cmp_type sc) const {
- return value_list(d, mysql_quote, sc);
- }
- template <class Manip>
- NAME##_cus_value_list<Manip> value_list(cchar *d, Manip m,
- bool i1) const;
- template <class Manip>
- NAME##_cus_value_list<Manip> value_list(cchar *d, Manip m,
- ##NAME##_enum i1) const;
- template <class Manip>
- NAME##_cus_value_list<Manip> value_list(cchar *d, Manip m,
- vector<bool> *i) const;
- template <class Manip>
- NAME##_cus_value_list<Manip> value_list(cchar *d, Manip m,
- sql_cmp_type sc) const;
- /* cus field */
- NAME##_cus_field_list<do_nothing_type0> field_list(bool i1) const {
- return field_list(",", mysql_do_nothing, i1);
- }
- NAME##_cus_field_list<do_nothing_type0> field_list(##NAME##_enum i1) const {
- return field_list(",", mysql_do_nothing, i1);
- }
- NAME##_cus_field_list<do_nothing_type0> field_list(vector<bool> *i) const {
- return field_list(",", mysql_do_nothing, i);
- }
- NAME##_cus_field_list<do_nothing_type0> field_list(sql_cmp_type sc) const
- {
- return field_list(",", mysql_do_nothing, sc);
- }
- NAME##_cus_field_list<do_nothing_type0> field_list(cchar *d,
- bool i1) const {
- return field_list(d, mysql_do_nothing, i1);
- }
- NAME##_cus_field_list<do_nothing_type0> field_list(cchar *d,
- ##NAME##_enum i1) const {
- return field_list(d, mysql_do_nothing, i1);
- }
- NAME##_cus_field_list<do_nothing_type0> field_list(cchar *d,
- vector<bool> *i) const {
- return field_list(d, mysql_do_nothing, i);
- }
- NAME##_cus_field_list<do_nothing_type0> field_list(cchar *d,
- sql_cmp_type sc) const {
- return field_list(d, mysql_do_nothing, sc);
- }
- template <class Manip>
- NAME##_cus_field_list<Manip> field_list(cchar *d, Manip m,
- bool i1) const;
- template <class Manip>
- NAME##_cus_field_list<Manip> field_list(cchar *d, Manip m,
- ##NAME##_enum i1) const;
- template <class Manip>
- NAME##_cus_field_list<Manip> field_list(cchar *d, Manip m,
- vector<bool> *i) const;
- template <class Manip>
- NAME##_cus_field_list<Manip> field_list(cchar *d, Manip m,
- sql_cmp_type sc) const;
- /* cus equal */
- NAME##_cus_equal_list<quote_type0> equal_list(bool i1) const {
- return equal_list(",", " = ", mysql_quote, i1);
- }
- NAME##_cus_equal_list<quote_type0> equal_list(##NAME##_enum i1) const {
- return equal_list(",", " = ", mysql_quote, i1);
- }
- NAME##_cus_equal_list<quote_type0> equal_list(vector<bool> *i) const {
- return equal_list(",", " = ", mysql_quote, i);
- }
- NAME##_cus_equal_list<quote_type0> equal_list(sql_cmp_type sc) const {
- return equal_list(",", " = ", mysql_quote, sc);
- }
- NAME##_cus_equal_list<quote_type0> equal_list(cchar *d, bool i1) const {
- return equal_list(d, " = ", mysql_quote, i1);
- }
- NAME##_cus_equal_list<quote_type0> equal_list(cchar *d, ##NAME##_enum i1) const {
- return equal_list(d, " = ", mysql_quote, i1);
- }
- NAME##_cus_equal_list<quote_type0> equal_list(cchar *d,
- vector<bool> *i) const {
- return equal_list(d, " = ", mysql_quote, i);
- }
- NAME##_cus_equal_list<quote_type0> equal_list(cchar *d,
- sql_cmp_type sc) const {