Lines Matching refs:A2
30 struct A2 struct
33 virtual ~A2() {} in ~A2() argument
35 A2* getA2() {return this;} in getA2() argument
40 private A2
46 A2* getA2() {return A2::getA2();} in getA2()
52 public A2
58 A2* getA2() {return A3::getA2();} in getA2()
71 A2* getA2() {return A4::getA2();} in getA2()
80 A2 a2; in test()
100 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
101 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
102 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
103 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
105 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
106 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
109 assert(dynamic_cast<A2*>(a5.getA1()) == 0); in test()
110 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
174 struct A2 struct
177 virtual ~A2() {} in ~A2() argument
179 A2* getA2() {return this;} in getA2() argument
184 public A2
190 A2* getA2() {return A2::getA2();} in getA2()
196 public A2
202 A2* getA2() {return A3::getA2();} in getA2()
215 A2* getA2() {return A4::getA2();} in getA2()
224 A2 a2; in test()
244 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
245 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
246 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
247 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
248 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
249 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
250 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
251 assert(dynamic_cast<A2*>(a4.getA3()) == a4.getA2()); in test()
253 assert(dynamic_cast<A2*>(a5.getA1()) == 0); in test()
254 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
255 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
318 struct A2 struct
321 virtual ~A2() {} in ~A2() argument
323 A2* getA2() {return this;} in getA2() argument
328 public virtual A2
334 A2* getA2() {return A2::getA2();} in getA2()
340 public virtual A2
346 A2* getA2() {return A2::getA2();} in getA2()
359 A2* getA2() {return A4::getA2();} in getA2()
368 A2 a2; in test()
387 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
388 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
389 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
390 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
391 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
392 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
393 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
394 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
395 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
396 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
397 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
398 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
399 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
400 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
461 struct A2 struct
464 virtual ~A2() {} in ~A2() argument
466 A2* getA2() {return this;} in getA2() argument
471 public virtual A2
477 A2* getA2() {return A2::getA2();} in getA2()
483 public virtual A2
489 A2* getA2() {return A2::getA2();} in getA2()
502 A2* getA2() {return A4::getA2();} in getA2()
511 A2 a2; in test()
530 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
531 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
532 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
533 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
534 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
535 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
536 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
537 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
538 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
539 assert(dynamic_cast<A2*>(a5.getA13()) == 0); in test()
540 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
541 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
542 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
543 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
604 struct A2 struct
607 virtual ~A2() {} in ~A2() argument
609 A2* getA2() {return this;} in getA2() argument
614 protected virtual A2
620 A2* getA2() {return A2::getA2();} in getA2()
626 public virtual A2
632 A2* getA2() {return A2::getA2();} in getA2()
645 A2* getA2() {return A4::getA2();} in getA2()
654 A2 a2; in test()
673 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
674 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
675 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
676 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
678 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
679 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
680 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
681 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
682 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
683 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
685 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
686 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
747 struct A2 struct
750 virtual ~A2() {} in ~A2() argument
752 A2* getA2() {return this;} in getA2() argument
757 public virtual A2
763 A2* getA2() {return A2::getA2();} in getA2()
769 public virtual A2
775 A2* getA2() {return A2::getA2();} in getA2()
788 A2* getA2() {return A4::getA2();} in getA2()
797 A2 a2; in test()
816 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
817 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
818 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
819 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
820 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
821 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
822 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
823 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
824 assert(dynamic_cast<A2*>(a5.getA14()) == 0); in test()
825 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
826 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
827 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
828 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
829 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
890 struct A2 struct
893 virtual ~A2() {} in ~A2() argument
895 A2* getA2() {return this;} in getA2() argument
900 public virtual A2
906 A2* getA2() {return A2::getA2();} in getA2()
912 protected virtual A2
918 A2* getA2() {return A2::getA2();} in getA2()
931 A2* getA2() {return A4::getA2();} in getA2()
940 A2 a2; in test()
959 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
960 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
961 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
962 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
963 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
964 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
965 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
967 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
968 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
969 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
970 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
972 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
1033 struct A2 struct
1036 virtual ~A2() {} in ~A2() argument
1038 A2* getA2() {return this;} in getA2() argument
1043 public virtual A2
1049 A2* getA2() {return A2::getA2();} in getA2()
1055 public virtual A2
1061 A2* getA2() {return A2::getA2();} in getA2()
1074 A2* getA2() {return A4::getA2();} in getA2()
1083 A2 a2; in test()
1102 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1103 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1104 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1105 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1106 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1107 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
1108 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
1109 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
1110 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
1111 assert(dynamic_cast<A2*>(a5.getA13()) == 0); in test()
1112 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
1113 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
1114 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
1115 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
1176 struct A2 struct
1179 virtual ~A2() {} in ~A2() argument
1181 A2* getA2() {return this;} in getA2() argument
1186 public virtual A2
1192 A2* getA2() {return A2::getA2();} in getA2()
1198 public virtual A2
1204 A2* getA2() {return A2::getA2();} in getA2()
1217 A2* getA2() {return A4::getA2();} in getA2()
1226 A2 a2; in test()
1245 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1246 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1247 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1248 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1249 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1250 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
1251 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
1252 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
1253 assert(dynamic_cast<A2*>(a5.getA14()) == 0); in test()
1254 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
1255 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
1256 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
1257 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
1258 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()