Home | History | Annotate | Download | only in test

Lines Matching refs:getA2

35     A2* getA2() {return this;}
46 A2* getA2() {return A2::getA2();}
58 A2* getA2() {return A3::getA2();}
71 A2* getA2() {return A4::getA2();}
86 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
88 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
91 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
95 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
101 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
103 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
106 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
110 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
116 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
118 assert(dynamic_cast<A3*>(a3.getA2()) == 0);
121 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
125 assert(dynamic_cast<A3*>(a5.getA2()) == 0);
131 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
133 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
136 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
140 assert(dynamic_cast<A4*>(a5.getA2()) == 0);
146 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
148 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
151 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
155 assert(dynamic_cast<A5*>(a5.getA2()) == 0);
179 A2* getA2() {return this;}
190 A2* getA2() {return A2::getA2();}
202 A2* getA2() {return A3::getA2();}
215 A2* getA2() {return A4::getA2();}
230 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
232 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
235 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
239 assert(dynamic_cast<A1*>(a5.getA2()) == a5.getA1());
245 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
246 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
247 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
248 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
250 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
251 assert(dynamic_cast<A2*>(a4.getA3()) == a4.getA2());
254 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
255 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
260 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
262 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
265 assert(dynamic_cast<A3*>(a4.getA2()) == a4.getA3());
269 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
275 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
277 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
280 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
284 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
290 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
292 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
295 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
299 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
323 A2* getA2() {return this;}
334 A2* getA2() {return A2::getA2();}
346 A2* getA2() {return A2::getA2();}
359 A2* getA2() {return A4::getA2();}
374 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
376 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
379 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
383 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
388 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
389 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
390 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
391 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
392 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
393 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
394 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
395 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
396 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
397 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
398 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
399 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
400 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
403 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
405 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
408 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
412 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
418 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
420 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
423 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
427 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
433 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
435 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
438 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
442 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
466 A2* getA2() {return this;}
477 A2* getA2() {return A2::getA2();}
489 A2* getA2() {return A2::getA2();}
502 A2* getA2() {return A4::getA2();}
517 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
519 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
522 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
526 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
531 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
533 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
534 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
535 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
536 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
537 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
538 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
540 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
541 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
542 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
543 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
546 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
548 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
551 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
555 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
561 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
563 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
566 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
570 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
576 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
578 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
581 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
585 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
609 A2* getA2() {return this;}
620 A2* getA2() {return A2::getA2();}
632 A2* getA2() {return A2::getA2();}
645 A2* getA2() {return A4::getA2();}
660 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
662 assert(dynamic_cast<A1*>(a3.getA2()) == 0);
665 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
669 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
674 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
676 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
677 // assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); // cast to protected base
678 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
679 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
680 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
681 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
682 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
683 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
684 // assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); // cast to protected base
685 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
686 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
689 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
691 assert(dynamic_cast<A3*>(a3.getA2()) == 0);
694 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
698 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
704 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
706 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
709 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
713 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
719 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
721 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
724 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
728 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
752 A2* getA2() {return this;}
763 A2* getA2() {return A2::getA2();}
775 A2* getA2() {return A2::getA2();}
788 A2* getA2() {return A4::getA2();}
803 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
805 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
808 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
812 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
817 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
818 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
819 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
820 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
822 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
823 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
825 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
826 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
827 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
828 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
829 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
832 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
834 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
837 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
841 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
847 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
849 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
852 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
856 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
862 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
864 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
867 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
871 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
895 A2* getA2() {return this;}
906 A2* getA2() {return A2::getA2();}
918 A2* getA2() {return A2::getA2();}
931 A2* getA2() {return A4::getA2();}
946 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
948 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
951 assert(dynamic_cast<A1*>(a4.getA2()) == 0);
955 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
960 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
961 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
962 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
963 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
965 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
966 // assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); // cast to protected base
967 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
968 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
969 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
970 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
971 // assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); // cast to protected base
972 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
975 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
977 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
980 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
984 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
990 getA2()) == 0);
992 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
995 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
999 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1005 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
1007 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
1010 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1014 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
1038 A2* getA2() {return this;}
1049 A2* getA2() {return A2::getA2();}
1061 A2* getA2() {return A2::getA2();}
1074 A2* getA2() {return A4::getA2();}
1089 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
1091 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
1094 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1098 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
1103 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
1104 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
1105 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
1106 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
1107 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1108 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1109 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1110 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2());
1112 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
1113 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
1114 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
1115 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
1118 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
1120 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
1123 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1127 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
1133 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1135 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1138 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1142 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1148 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
1150 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
1153 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1157 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());
1181 A2* getA2() {return this;}
1192 A2* getA2() {return A2::getA2();}
1204 A2* getA2() {return A2::getA2();}
1217 A2* getA2() {return A4::getA2();}
1232 assert(dynamic_cast<A1*>(a2.getA2()) == 0);
1234 assert(dynamic_cast<A1*>(a3.getA2()) == a3.getA1());
1237 assert(dynamic_cast<A1*>(a4.getA2()) == a4.getA1());
1241 assert(dynamic_cast<A1*>(a5.getA2()) == 0);
1246 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2());
1247 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2());
1248 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2());
1249 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2());
1250 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1251 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1252 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1254 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2());
1255 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2());
1256 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2());
1257 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2());
1258 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2());
1261 assert(dynamic_cast<A3*>(a2.getA2()) == 0);
1263 assert(dynamic_cast<A3*>(a3.getA2()) == a3.getA3());
1266 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1270 assert(dynamic_cast<A3*>(a5.getA2()) == a5.getA3());
1276 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1278 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1281 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1285 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1291 assert(dynamic_cast<A5*>(a2.getA2()) == 0);
1293 assert(dynamic_cast<A5*>(a3.getA2()) == 0);
1296 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1300 assert(dynamic_cast<A5*>(a5.getA2()) == a5.getA5());