custom-macros.hh
上传用户:clovervx
上传日期:2010-03-30
资源大小:787k
文件大小:1318k
- // This file is generated from the perl script custom.pl, please do
- // not modify this file directly unless you wish to cut out unnessary
- // macros.
- // ---------------------------------------------------
- // Begin Mandatory Compare
- // ---------------------------------------------------
- #define sql_compare_define(NAME)
- bool operator == (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other) == 0;}
- bool operator != (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other) != 0;}
- bool operator > (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other) > 0;}
- bool operator < (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other) < 0;}
- bool operator >= (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other) >= 0;}
- bool operator <= (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other) <= 0;}
- int cmp (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other);}
- int compare (const NAME &other) const
- {return sql_compare_##NAME##<sql_dummy>(*this,other);}
- #define sql_compare_define_0(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)
- #define sql_construct_define_0(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)
- #define sql_COMPARE__0(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)
- #define sql_compare_type_def_0(NAME, WHAT, NUM)
- sql_compare_type_def_##NUM (NAME, WHAT, NUM)
- #define sql_compare_type_defe_0(NAME, WHAT, NUM)
- sql_compare_type_defe_##NUM (NAME, WHAT, NUM)
- // ---------------------------------------------------
- // End Mandatory Compare
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 1
- // ---------------------------------------------------
- #define sql_compare_define_1(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) : C1 (p1) {}
- void set (const T1 &p1) {
- C1 = p1;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_1(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) {
- C1 = p1;
-
- }
- NAME (const T1 &p1) : C1 (p1) {}
- #define sql_compare_type_def_1(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true)
- #define sql_compare_type_defe_1(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true)
- #define sql_COMPARE__1(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) {
- return sql_cmp(x.##C1 , y.##C1 );
- }
- template <sql_dummy_type dummy>
- int compare (const NAME &x, const NAME &y) {
- return sql_cmp(x.##C1 , y.##C1 );
- }
- // ---------------------------------------------------
- // End Compare 1
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 2
- // ---------------------------------------------------
- #define sql_compare_define_2(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) : C1 (p1), C2 (p2) {}
- void set (const T1 &p1, const T2 &p2) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_2(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) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
-
- }
- NAME (const T1 &p1, const T2 &p2) : C1 (p1), C2 (p2) {}
- #define sql_compare_type_def_2(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true)
- #define sql_compare_type_defe_2(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true)
- #define sql_COMPARE__2(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;
- return sql_cmp(x.##C2 , y.##C2 );
- }
- 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;
- return sql_cmp(x.##C2 , y.##C2 );
- }
- // ---------------------------------------------------
- // End Compare 2
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 3
- // ---------------------------------------------------
- #define sql_compare_define_3(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) : C1 (p1), C2 (p2), C3 (p3) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_3(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) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3) : C1 (p1), C2 (p2), C3 (p3) {}
- #define sql_compare_type_def_3(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true)
- #define sql_compare_type_defe_3(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true)
- #define sql_COMPARE__3(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;
- return sql_cmp(x.##C3 , y.##C3 );
- }
- 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;
- return sql_cmp(x.##C3 , y.##C3 );
- }
- // ---------------------------------------------------
- // End Compare 3
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 4
- // ---------------------------------------------------
- #define sql_compare_define_4(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_4(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) {
- C1 = p1;
- C1 = p1;
- C2 = p2;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C1 = p1;
- C2 = p2;
- C3 = p3;
- C4 = p4;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4) : C1 (p1), C2 (p2), C3 (p3), C4 (p4) {}
- #define sql_compare_type_def_4(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true)
- #define sql_compare_type_defe_4(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true)
- #define sql_COMPARE__4(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;
- return sql_cmp(x.##C4 , y.##C4 );
- }
- 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;
- return sql_cmp(x.##C4 , y.##C4 );
- }
- // ---------------------------------------------------
- // End Compare 4
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 5
- // ---------------------------------------------------
- #define sql_compare_define_5(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_5(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) {
- 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;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5) {}
- #define sql_compare_type_def_5(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true)
- #define sql_compare_type_defe_5(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true)
- #define sql_COMPARE__5(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;
- return sql_cmp(x.##C5 , y.##C5 );
- }
- 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;
- return sql_cmp(x.##C5 , y.##C5 );
- }
- // ---------------------------------------------------
- // End Compare 5
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 6
- // ---------------------------------------------------
- #define sql_compare_define_6(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_6(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) {
- 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;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6) {}
- #define sql_compare_type_def_6(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true)
- #define sql_compare_type_defe_6(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true)
- #define sql_COMPARE__6(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;
- return sql_cmp(x.##C6 , y.##C6 );
- }
- 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;
- return sql_cmp(x.##C6 , y.##C6 );
- }
- // ---------------------------------------------------
- // End Compare 6
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 7
- // ---------------------------------------------------
- #define sql_compare_define_7(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7) {}
- void set (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_7(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) {
- 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;
-
- }
- NAME (const T1 &p1, const T2 &p2, const T3 &p3, const T4 &p4, const T5 &p5, const T6 &p6, const T7 &p7) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7) {}
- #define sql_compare_type_def_7(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_7(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true)
- #define sql_COMPARE__7(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;
- return sql_cmp(x.##C7 , y.##C7 );
- }
- 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;
- return sql_cmp(x.##C7 , y.##C7 );
- }
- // ---------------------------------------------------
- // End Compare 7
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 8
- // ---------------------------------------------------
- #define sql_compare_define_8(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_8(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) {
- 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;
-
- }
- 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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8) {}
- #define sql_compare_type_def_8(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_8(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__8(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;
- return sql_cmp(x.##C8 , y.##C8 );
- }
- 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;
- return sql_cmp(x.##C8 , y.##C8 );
- }
- // ---------------------------------------------------
- // End Compare 8
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 9
- // ---------------------------------------------------
- #define sql_compare_define_9(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_9(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) {
- 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;
-
- }
- 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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9) {}
- #define sql_compare_type_def_9(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_9(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__9(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;
- return sql_cmp(x.##C9 , y.##C9 );
- }
- 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;
- return sql_cmp(x.##C9 , y.##C9 );
- }
- // ---------------------------------------------------
- // End Compare 9
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 10
- // ---------------------------------------------------
- #define sql_compare_define_10(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_10(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) {
- 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;
-
- }
- 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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10) {}
- #define sql_compare_type_def_10(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_10(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__10(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;
- return sql_cmp(x.##C10 , y.##C10 );
- }
- 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;
- return sql_cmp(x.##C10 , y.##C10 );
- }
- // ---------------------------------------------------
- // End Compare 10
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 11
- // ---------------------------------------------------
- #define sql_compare_define_11(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_11(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) {
- 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;
-
- }
- 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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11) {}
- #define sql_compare_type_def_11(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_11(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__11(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;
- return sql_cmp(x.##C11 , y.##C11 );
- }
- 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;
- return sql_cmp(x.##C11 , y.##C11 );
- }
- // ---------------------------------------------------
- // End Compare 11
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 12
- // ---------------------------------------------------
- #define sql_compare_define_12(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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_12(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) {
- 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;
-
- }
- 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) : C1 (p1), C2 (p2), C3 (p3), C4 (p4), C5 (p5), C6 (p6), C7 (p7), C8 (p8), C9 (p9), C10 (p10), C11 (p11), C12 (p12) {}
- #define sql_compare_type_def_12(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_12(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__12(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;
- return sql_cmp(x.##C12 , y.##C12 );
- }
- 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;
- return sql_cmp(x.##C12 , y.##C12 );
- }
- // ---------------------------------------------------
- // End Compare 12
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 13
- // ---------------------------------------------------
- #define sql_compare_define_13(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) : 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) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_13(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) {
- 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;
-
- }
- 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) : 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) {}
- #define sql_compare_type_def_13(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_13(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__13(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;
- return sql_cmp(x.##C13 , y.##C13 );
- }
- 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;
- return sql_cmp(x.##C13 , y.##C13 );
- }
- // ---------------------------------------------------
- // End Compare 13
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 14
- // ---------------------------------------------------
- #define sql_compare_define_14(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) : 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) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_14(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) {
- 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;
-
- }
- 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) : 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) {}
- #define sql_compare_type_def_14(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_14(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__14(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;
- return sql_cmp(x.##C14 , y.##C14 );
- }
- 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;
- return sql_cmp(x.##C14 , y.##C14 );
- }
- // ---------------------------------------------------
- // End Compare 14
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 15
- // ---------------------------------------------------
- #define sql_compare_define_15(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) : 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) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_15(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) {
- 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;
-
- }
- 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) : 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) {}
- #define sql_compare_type_def_15(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_15(NAME, WHAT, NUM)
- return WHAT##_list(d, c, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_COMPARE__15(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;
- return sql_cmp(x.##C15 , y.##C15 );
- }
- 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;
- return sql_cmp(x.##C15 , y.##C15 );
- }
- // ---------------------------------------------------
- // End Compare 15
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 16
- // ---------------------------------------------------
- #define sql_compare_define_16(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) : 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) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_16(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) {
- 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;
-
- }
- 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) : 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) {}
- #define sql_compare_type_def_16(NAME, WHAT, NUM)
- return WHAT##_list(d, m, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true, true)
- #define sql_compare_type_defe_16(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)
- #define sql_COMPARE__16(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;
- return sql_cmp(x.##C16 , y.##C16 );
- }
- 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;
- return sql_cmp(x.##C16 , y.##C16 );
- }
- // ---------------------------------------------------
- // End Compare 16
- // ---------------------------------------------------
- // ---------------------------------------------------
- // Begin Compare 17
- // ---------------------------------------------------
- #define sql_compare_define_17(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) : 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) {}
- 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) {
- 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;
-
- }
- sql_compare_define(NAME)
- #define sql_construct_define_17(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) {
- 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;