Lines Matching defs:A1
16 struct A1
19 virtual ~A1() {}
21 A1* getA1() {return this;}
33 : public virtual A1,
39 A1* getA1() {return A1::getA1();}
51 t1::A1* getA1() {return A3::getA1();}
64 t1::A1* getA1() {return A4::getA1();}
73 A1 a1;
79 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
80 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
81 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
82 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
83 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
84 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
85 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
86 assert(dynamic_cast<A1*>(a4.getA3()) == a4.getA1());
87 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
88 assert(dynamic_cast<A1*>(a5.getA1()) == a5.getA1());
89 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
90 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA1());
91 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA1());
92 assert(dynamic_cast<A1*>(a5.getA5()) == a5.getA1());
94 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
109 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
124 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
139 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
160 struct A1
163 virtual ~A1() {}
165 A1* getA1() {return this;}
177 : public virtual A1,
183 A1* getA1() {return A1::getA1();}
195 t2::A1* getA1() {return A3::getA1();}
208 t2::A1* getA1() {return A4::getA1();}
217 A1 a1;
223 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
224 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
225 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
226 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
227 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
228 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
229 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
230 assert(dynamic_cast<A1*>(a4.getA3()) == a4.getA1());
231 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
232 assert(dynamic_cast<A1*>(a5.getA1()) == a5.getA1());
233 assert(dynamic_cast<A1*>(a5.getA2()) == a5.getA1());
234 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA1());
235 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA1());
236 assert(dynamic_cast<A1*>(a5.getA5()) == a5.getA1());
238 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
253 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
268 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
283 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
304 struct A1
307 virtual ~A1() {}
309 A1* getA1() {return this;}
321 : public A1,
327 A1* getA1() {return A1::getA1();}
333 : public A1,
339 A1* getA1() {return A1::getA1();}
351 A1* getA14() {return A4::getA1();}
352 A1* getA13() {return A3::getA1();}
361 A1 a1;
367 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
368 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
369 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
370 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
371 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
372 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
373 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
374 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
375 assert(dynamic_cast<A1*>(a5.getA14()) == a5.getA14());
376 assert(dynamic_cast<A1*>(a5.getA13()) == a5.getA13());
377 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
378 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA13());
379 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA14());
381 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
396 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
411 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
426 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
447 struct A1
450 virtual ~A1() {}
452 A1* getA1() {return this;}
464 : protected A1,
470 A1* getA1() {return A1::getA1();}
476 : public A1,
482 A1* getA1() {return A1::getA1();}
494 A1* getA14() {return A4::getA1();}
495 A1* getA13() {return A3::getA1();}
504 A1 a1;
510 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
511 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
512 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
513 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
514 // assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1()); // cast to protected base
515 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
516 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
517 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
518 assert(dynamic_cast<A1
519 assert(dynamic_cast<A1*>(a5.getA13()) == a5.getA13());
520 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
521 // assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA13()); // cast to protected base
522 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA14());
524 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
539 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
554 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
569 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
590 struct A1
593 virtual ~A1() {}
595 A1* getA1() {return this;}
607 : public A1,
613 A1* getA1() {return A1::getA1();}
619 : public A1,
625 A1* getA1() {return A1::getA1();}
637 A1* getA14() {return A4::getA1();}
638 A1* getA13() {return A3::getA1();}
647 A1 a1;
653 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
654 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
655 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
656 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
657 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
658 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
659 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
660 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
661 assert(dynamic_cast<A1*>(a5.getA14()) == a5.getA14());
662 assert(dynamic_cast<A1*>(a5.getA13()) == a5.getA13());
663 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
664 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA13());
665 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA14());
667 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
682 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
697 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
712 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
733 struct A1
736 virtual ~A1() {}
738 A1* getA1() {return this;}
750 : public A1,
756 A1* getA1() {return A1::getA1();}
762 : protected A1,
768 A1* getA1() {return A1::getA1();}
780 A1* getA14() {return A4::getA1();}
781 A1* getA13() {return A3::getA1();}
790 A1 a1;
796 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
797 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
798 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
799 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
800 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
801 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
802 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
803 // assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1()); // cast to protected base
804 assert(dynamic_cast<A1*>(a5.getA14()) == a5.getA14());
805 assert(dynamic_cast<A1*>(a5.getA13()) == a5.getA13());
806 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
807 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA13());
808 // assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA14()); // cast to protected base
810 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
825 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
840 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
855 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
876 struct A1
879 virtual ~A1() {}
881 A1* getA1() {return this;}
893 : public A1,
899 A1* getA1() {return A1::getA1();}
905 : public A1,
911 A1* getA1() {return A1::getA1();}
923 A1* getA14() {return A4::getA1();}
924 A1* getA13() {return A3::getA1();}
933 A1 a1;
939 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
940 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
941 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
942 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
943 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
944 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
945 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
946 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
947 assert(dynamic_cast<A1*>(a5.getA14()) == a5.getA14());
948 assert(dynamic_cast<A1*>(a5.getA13()) == a5.getA13());
949 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
950 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA13());
951 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA14());
953 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
968 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
983 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
998 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
1019 struct A1
1022 virtual ~A1() {}
1024 A1* getA1() {return this;}
1036 : public A1,
1042 A1* getA1() {return A1::getA1();}
1048 : public A1,
1054 A1* getA1() {return A1::getA1();}
1066 A1* getA14() {return A4::getA1();}
1067 A1* getA13() {return A3::getA1();}
1076 A1 a1;
1082 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
1083 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
1084 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
1085 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
1086 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
1087 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
1088 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1089 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
1090 assert(dynamic_cast<A1*>(a5.getA14()) == a5.getA14());
1091 assert(dynamic_cast<A1*>(a5.getA13()) == a5.getA13());
1092 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
1093 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA13());
1094 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA14());
1096 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
1111 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
1126 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
1141 assert(dynamic_cast<A5*>(a1.getA1()) == 0);
1162 struct A1
1165 virtual ~A1() {}
1167 A1* getA1() {return this;}
1179 : public A1,
1185 A1* getA1() {return A1::getA1();}
1191 : public A1,
1197 A1* getA1() {return A1::getA1();}
1209 A1* getA14() {return A4::getA1();}
1210 A1* getA13() {return A3::getA1();}
1219 A1 a1;
1225 assert(dynamic_cast<A1*>(a1.getA1()) == a1.getA1());
1226 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
1227 assert(dynamic_cast<A1*>(a3.getA1()) == a3.getA1());
1228 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
1229 assert(dynamic_cast<A1*>(a3.getA3()) == a3.getA1());
1230 assert(dynamic_cast<A1*>(a4.getA1()) == a4.getA1());
1231 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1232 assert(dynamic_cast<A1*>(a4.getA4()) == a4.getA1());
1233 assert(dynamic_cast<A1*>(a5.getA14()) == a5.getA14());
1234 assert(dynamic_cast<A1*>(a5.getA13()) == a5.getA13());
1235 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
1236 assert(dynamic_cast<A1*>(a5.getA3()) == a5.getA13());
1237 assert(dynamic_cast<A1*>(a5.getA4()) == a5.getA14());
1239 assert(dynamic_cast<A2*>(a1.getA1()) == 0);
1254 assert(dynamic_cast<A3*>(a1.getA1()) == 0);
1269 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
1284 assert(dynamic_cast<A5*>(a1.getA1()) == 0);