Lines Matching defs:a4
44 struct A4
49 virtual ~A4() {}
54 A4* getA4() {return this;}
58 : public A4,
64 t1::A1* getA1() {return A4::getA1();}
65 A2* getA2() {return A4::getA2();}
66 A3* getA3() {return A4::getA3();}
67 A4* getA4() {return A4::getA4();}
76 A4 a4;
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());
99 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
100 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
101 // assert(dynamic_cast<A2*>(a4.getA3()) == 0); // cast to private base
102 // assert(dynamic_cast<A2*>(a4.getA4()) == 0); // cast to ambiguous base
114 assert(dynamic_cast<A3*>(a4.getA1()) == a4.getA3());
115 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
116 assert(dynamic_cast<A3*>(a4.getA3()) == a4.getA3());
117 assert(dynamic_cast<A3*>(a4.getA4()) == a4.getA3());
124 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
125 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
126 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
127 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
128 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
129 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
130 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
131 assert(dynamic_cast<A4*>(a4.getA3()) == a4.getA4());
132 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
133 assert(dynamic_cast<A4*>(a5.getA1()) == a5.getA4());
134 assert(dynamic_cast<A4*>(a5.getA2()) == 0);
135 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
136 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
137 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
144 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
145 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
146 assert(dynamic_cast<A5*>(a4.getA3()) == 0);
147 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
188 struct A4
193 virtual ~A4() {}
198 A4* getA4() {return this;}
202 : public A4,
208 t2::A1* getA1() {return A4::getA1();}
209 A2* getA2() {return A4::getA2();}
210 A3* getA3() {return A4::getA3();}
211 A4* getA4() {return A4::getA4();}
220 A4 a4;
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());
243 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
244 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
245 assert(dynamic_cast<A2*>(a4.getA3()) == a4.getA2());
246 // assert(dynamic_cast<A2*>(a4.getA4()) == 0); // cast to ambiguous base
258 assert(dynamic_cast<A3*>(a4.getA1()) == a4.getA3());
259 assert(dynamic_cast<A3*>(a4.getA2()) == a4.getA3());
260 assert(dynamic_cast<A3*>(a4.getA3()) == a4.getA3());
261 assert(dynamic_cast<A3*>(a4.getA4()) == a4.getA3());
268 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
269 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
270 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
271 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
272 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
273 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
274 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
275 assert(dynamic_cast<A4*>(a4.getA3()) == a4.getA4());
276 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
277 assert(dynamic_cast<A4*>(a5.getA1()) == a5.getA4());
278 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
279 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
280 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
281 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
288 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
289 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
290 assert(dynamic_cast<A5*>(a4.getA3()) == 0);
291 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
332 struct A4
337 virtual ~A4() {}
341 A4* getA4() {return this;}
346 public A4
351 A1* getA14() {return A4::getA1();}
353 A2* getA2() {return A4::getA2();}
355 A4* getA4() {return A4::getA4();}
364 A4 a4;
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());
386 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
387 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
388 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
401 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
402 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
403 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
411 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
412 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
413 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
414 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
415 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
416 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
417 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
418 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
419 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
420 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
421 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
422 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
423 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
424 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
431 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
432 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
433 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
475 struct A4
480 virtual ~A4() {}
484 A4* getA4() {return this;}
489 public A4
494 A1* getA14() {return A4::getA1();}
496 A2* getA2() {return A4::getA2();}
498 A4* getA4() {return A4::getA4();}
507 A4 a4;
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());
529 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
530 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
531 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
544 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
545 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
546 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
554 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
555 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
556 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
557 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
558 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
559 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
560 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
561 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
562 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
563 assert(dynamic_cast<A4*>(a5.getA13()) == 0);
564 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
565 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
566 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
567 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
574 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
575 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
576 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
618 struct A4
623 virtual ~A4() {}
627 A4* getA4() {return this;}
632 public A4
637 A1* getA14() {return A4::getA1();}
639 A2* getA2() {return A4::getA2();}
641 A4* getA4() {return A4::getA4();}
650 A4 a4;
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());
672 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
673 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
674 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
687 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
688 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
689 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
697 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
698 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
699 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
700 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
701 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
702 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
703 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
704 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
705 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
706 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
707 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
708 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
709 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
710 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
717 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
718 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
719 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
761 struct A4
766 virtual ~A4() {}
770 A4* getA4() {return this;}
775 public A4
780 A1* getA14() {return A4::getA1();}
782 A2* getA2() {return A4::getA2();}
784 A4* getA4() {return A4::getA4();}
793 A4 a4;
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
815 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
816 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
817 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
830 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
831 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
832 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
840 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
841 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
842 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
843 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
844 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
845 assert(dynamic_cast<A4*>(a4.getA1()) == 0);
846 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
847 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
848 assert(dynamic_cast<A4*>(a5.getA14()) == 0);
849 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
850 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
851 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
852 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
853 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
860 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
861 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
862 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
904 struct A4
909 virtual ~A4() {}
913 A4* getA4() {return this;}
918 public A4
923 A1* getA14() {return A4::getA1();}
925 A2* getA2() {return A4::getA2();}
927 A4* getA4() {return A4::getA4();}
936 A4 a4;
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());
958 assert(dynamic_cast<A2*>(a4.getA1()) == 0);
959 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
960 // assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); // cast to protected base
973 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
974 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
975 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
983 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
984 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
985 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
986 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
987 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
988 A4*>(a4.getA1()) == a4.getA4());
989 assert(dynamic_cast<A4*>(a4.getA2()) == 0);
990 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
991 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
992 assert(dynamic_cast<A4*>(a5.getA13()) == a5.getA4());
993 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
994 assert(dynamic_cast<A4*>(a5.getA3()) == a5.getA4());
995 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
996 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
1003 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
1004 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1005 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
1047 struct A4
1052 virtual ~A4() {}
1056 A4* getA4() {return this;}
1061 public A4
1066 A1* getA14() {return A4::getA1();}
1068 A2* getA2() {return A4::getA2();}
1070 A4* getA4() {return A4::getA4();}
1079 A4 a4;
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());
1101 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1102 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1103 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1116 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
1117 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1118 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
1126 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
1127 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1128 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
1129 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1130 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
1131 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
1132 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1133 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
1134 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
1135 assert(dynamic_cast<A4*>(a5.getA13()) == 0);
1136 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1137 assert(dynamic_cast<A4*>(a5.getA3()) == 0);
1138 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
1139 assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4());
1146 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
1147 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1148 assert(dynamic_cast<A5*>(a4.getA4()) == 0);
1190 struct A4
1195 virtual ~A4() {}
1199 A4* getA4() {return this;}
1204 protected A4
1209 A1* getA14() {return A4::getA1();}
1211 A2* getA2() {return A4::getA2();}
1213 A4* getA4() {return A4::getA4();}
1222 A4 a4;
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());
1244 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2());
1245 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2());
1246 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2());
1259 assert(dynamic_cast<A3*>(a4.getA1()) == 0);
1260 assert(dynamic_cast<A3*>(a4.getA2()) == 0);
1261 assert(dynamic_cast<A3*>(a4.getA4()) == 0);
1269 assert(dynamic_cast<A4*>(a1.getA1()) == 0);
1270 assert(dynamic_cast<A4*>(a2.getA2()) == 0);
1271 assert(dynamic_cast<A4*>(a3.getA1()) == 0);
1272 assert(dynamic_cast<A4*>(a3.getA2()) == 0);
1273 assert(dynamic_cast<A4*>(a3.getA3()) == 0);
1274 assert(dynamic_cast<A4*>(a4.getA1()) == a4.getA4());
1275 assert(dynamic_cast<A4*>(a4.getA2()) == a4.getA4());
1276 assert(dynamic_cast<A4*>(a4.getA4()) == a4.getA4());
1277 assert(dynamic_cast<A4*>(a5.getA14()) == a5.getA4());
1278 assert(dynamic_cast<A4*>(a5.getA13()) == 0);
1279 assert(dynamic_cast<A4*>(a5.getA2()) == a5.getA4());
1280 assert(dynamic_cast<A4*>(a5.getA3()) == 0);
1281 assert(dynamic_cast<A4*>(a5.getA4()) == a5.getA4());
1282 // assert(dynamic_cast<A4*>(a5.getA5()) == a5.getA4()); // cast to protected base
1289 assert(dynamic_cast<A5*>(a4.getA1()) == 0);
1290 assert(dynamic_cast<A5*>(a4.getA2()) == 0);
1291 assert(dynamic_cast<A5*>(a4.getA4()) == 0);