$search
00001 #include "datasource_fixture.hpp" 00002 00003 bool operator==(const AType& a, const AType& b) 00004 { 00005 return a.a == b.a && a.b == b.b && a.c == b.c && a.ai == b.ai && std::equal(a.vd.begin(), a.vd.end(), b.vd.begin()); 00006 } 00007 00008 std::ostream& operator<<(std::ostream& os, const AType& a) 00009 { 00010 os << "{ " << a.a << ", " << a.b << ", " << a.c << ", < "; 00011 for (unsigned int i = 0; i != a.ai.size(); ++i) 00012 os << a.ai[i] << " "; 00013 os <<">, ( "; 00014 for (unsigned int i = 0; i != a.vd.size(); ++i) 00015 os << a.vd[i] << " "; 00016 os << ") }"; 00017 return os; 00018 } 00019 std::ostream& operator<<(std::ostream& os, const ATypes& as) 00020 { 00021 os << '['; 00022 for (unsigned int i = 0; i != as.size(); ++i) 00023 os << as[i] << (i+1 == as.size() ? "]": ", "); 00024 return os; 00025 } 00026 bool operator==(const BType& a, const BType& b) 00027 { 00028 return a.a == b.a && a.b == b.b && strcmp(a.c, b.c) == 0 && a.ai[3] == b.ai[3] && a.vd[3] == b.vd[3]; 00029 } 00030 00031 std::ostream& operator<<(std::ostream& os, const BType& a) 00032 { 00033 os << "{ " << a.a << ", " << a.b << ", " << a.c << ", < "; 00034 for (unsigned int i = 0; i != 5; ++i) 00035 os << a.ai[i] << " "; 00036 os <<">, ( "; 00037 for (unsigned int i = 0; i != 10; ++i) 00038 os << a.vd[i] << " "; 00039 os << ") }"; 00040 return os; 00041 } 00042 std::ostream& operator<<(std::ostream& os, const BTypes& bs) 00043 { 00044 os << '['; 00045 for (unsigned int i = 0; i != bs.size(); ++i) 00046 os << bs[i] << (i+1 == bs.size() ? "]": ", "); 00047 return os; 00048 } 00049 00050 bool operator==(const CType& a, const CType& b) 00051 { 00052 return a.a == b.a && a.b == b.b && std::equal(a.av.begin(), a.av.end(), b.av.begin()) && std::equal(a.bv.begin(), a.bv.end(), b.bv.begin()); 00053 } 00054 00055 std::ostream& operator<<(std::ostream& os, const CType& a) 00056 { 00057 os << "{ (" << a.a << ", " << endl <<" " << a.b << endl<< " )"<<endl; 00058 os << " <"; 00059 for (unsigned int i = 0; i != 5; ++i) 00060 os << a.av[i] << " "; 00061 os <<" >,"<<endl<<" <"; 00062 for (unsigned int i = 0; i != 10; ++i) 00063 os << a.bv[i] << " "; 00064 os <<" >"<<endl <<"}"; 00065 return os; 00066 } 00067 std::ostream& operator<<(std::ostream& os, const CTypes& cs) 00068 { 00069 os << '['; 00070 for (unsigned int i = 0; i != cs.size(); ++i) 00071 os << cs[i] << (i+1 == cs.size() ? "]": ", "); 00072 return os; 00073 }