Home | History | Annotate | Download | only in test

Lines Matching defs:getA2

28     A2* getA2() {return this;}
39 A2* getA2() {return A2::getA2();}
51 A2* getA2() {return A3::getA2();}
64 A2* getA2() {return A4::getA2();}
79 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
81 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
84 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
88 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
94 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
96 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
99 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
103 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
109 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
111 assert(dynamic_cast<A3*>(a3.getA2()) == 0);
114 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
118 assert(dynamic_cast<A3*>(a5.getA2()) == 0);
124 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
126 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
129 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
133 assert(dynamic_cast<A4*>(a5.getA2()) == 0);
139 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
141 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
144 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
148 assert(dynamic_cast<A5*>(a5.getA2()) == 0);
172 A2* getA2() {return this;}
183 A2* getA2() {return A2::getA2();}
195 A2* getA2() {return A3::getA2();}
208 A2* getA2() {return A4::getA2();}
223 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
225 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
228 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
232 assert(dynamic_cast<A1*>(a5.getA2()) == a5.getA1());
238 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
239 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
240 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
241 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
243 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
244 assert(dynamic_cast<A2*>(a4.getA3()) == a4.getA2());
247 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
248 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
253 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
255 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
258 assert(dynamic_cast<A3*>(a4.getA2()) == a4.getA3());
262 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
268 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
270 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
273 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
277 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
283 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
285 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
288 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
292 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
316 A2* getA2() {return this;}
327 A2* getA2() {return A2::getA2();}
339 A2* getA2() {return A2::getA2();}
352 A2* getA2() {return A4::getA2();}
367 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
369 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
372 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
376 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
381 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
382 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
383 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
384 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
385 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
386 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
387 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
388 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
389 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
390 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
391 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
392 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
393 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
396 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
398 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
401 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
405 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
411 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
413 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
416 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
420 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
426 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
428 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
431 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
435 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
459 A2* getA2() {return this;}
470 A2* getA2() {return A2::getA2();}
482 A2* getA2() {return A2::getA2();}
495 A2* getA2() {return A4::getA2();}
510 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
512 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
515 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
519 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
524 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
526 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
527 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
528 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
529 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
530 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
531 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
533 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
534 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
535 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
536 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
539 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
541 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
544 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
548 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
554 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
556 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
559 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
563 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
569 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
571 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
574 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
578 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
602 A2* getA2() {return this;}
613 A2* getA2() {return A2::getA2();}
625 A2* getA2() {return A2::getA2();}
638 A2* getA2() {return A4::getA2();}
653 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
655 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
658 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
662 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
667 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
669 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
670 // assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); // cast to protected base
671 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
672 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
673 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
674 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
675 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
676 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
677 // assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); // cast to protected base
678 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
679 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
682 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
684 assert(dynamic_cast<A3*>(a3.getA2()) == 0);
687 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
691 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
697 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
699 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
702 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
706 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
712 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
714 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
717 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
721 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
745 A2* getA2() {return this;}
756 A2* getA2() {return A2::getA2();}
768 A2* getA2() {return A2::getA2();}
781 A2* getA2() {return A4::getA2();}
796 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
798 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
801 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
805 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
810 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
811 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
812 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
813 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
815 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
816 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
818 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
819 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
820 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
821 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
822 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
825 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
827 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
830 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
834 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
840 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
842 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
845 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
849 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
855 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
857 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
860 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
864 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
888 A2* getA2() {return this;}
899 A2* getA2() {return A2::getA2();}
911 A2* getA2() {return A2::getA2();}
924 A2* getA2() {return A4::getA2();}
939 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
941 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
944 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
948 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
953 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
954 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
955 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
956 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
958 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
959 // assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); // cast to protected base
960 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
961 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
962 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
963 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
964 // assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); // cast to protected base
965 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
968 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
970 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
973 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
977 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
983 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
985 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
988 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
992 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
998 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
1000 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
1003 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1007 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
1031 A2* getA2() {return this;}
1042 A2* getA2() {return A2::getA2();}
1054 A2* getA2() {return A2::getA2();}
1067 A2* getA2() {return A4::getA2();}
1082 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
1084 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
1087 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1091 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
1096 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
1097 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
1098 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
1099 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
1100 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1101 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1102 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1103 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
1105 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
1106 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
1107 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
1108 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
1111 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
1113 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
1116 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1120 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
1126 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1128 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1131 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1135 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1141 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
1143 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
1146 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1150 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
1174 A2* getA2() {return this;}
1185 A2* getA2() {return A2::getA2();}
1197 A2* getA2() {return A2::getA2();}
1210 A2* getA2() {return A4::getA2();}
1225 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
1227 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
1230 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1234 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
1239 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
1240 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
1241 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
1242 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
1243 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1244 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1245 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1247 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
1248 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
1249 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
1250 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
1251 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
1254 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
1256 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
1259 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1263 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
1269 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1271 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1274 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1278 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1284 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
1286 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
1289 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1293 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());