Lines Matching refs:A2
23 struct A2 struct
26 virtual ~A2() {} in ~A2() argument
28 A2* getA2() {return this;} in getA2() argument
33 private A2
39 A2* getA2() {return A2::getA2();} in getA2()
45 public A2
51 A2* getA2() {return A3::getA2();} in getA2()
64 A2* getA2() {return A4::getA2();} in getA2()
73 A2 a2; in test()
93 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
94 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
95 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
96 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
98 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
99 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
102 assert(dynamic_cast<A2*>(a5.getA1()) == 0); in test()
103 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
167 struct A2 struct
170 virtual ~A2() {} in ~A2() argument
172 A2* getA2() {return this;} in getA2() argument
177 public A2
183 A2* getA2() {return A2::getA2();} in getA2()
189 public A2
195 A2* getA2() {return A3::getA2();} in getA2()
208 A2* getA2() {return A4::getA2();} in getA2()
217 A2 a2; in test()
237 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
238 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
239 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
240 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
241 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
242 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
243 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
244 assert(dynamic_cast<A2*>(a4.getA3()) == a4.getA2()); in test()
246 assert(dynamic_cast<A2*>(a5.getA1()) == 0); in test()
247 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
248 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
311 struct A2 struct
314 virtual ~A2() {} in ~A2() argument
316 A2* getA2() {return this;} in getA2() argument
321 public virtual A2
327 A2* getA2() {return A2::getA2();} in getA2()
333 public virtual A2
339 A2* getA2() {return A2::getA2();} in getA2()
352 A2* getA2() {return A4::getA2();} in getA2()
361 A2 a2; in test()
380 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
381 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
382 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
383 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
384 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
385 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
386 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
387 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
388 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
389 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
390 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
391 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
392 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
393 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
454 struct A2 struct
457 virtual ~A2() {} in ~A2() argument
459 A2* getA2() {return this;} in getA2() argument
464 public virtual A2
470 A2* getA2() {return A2::getA2();} in getA2()
476 public virtual A2
482 A2* getA2() {return A2::getA2();} in getA2()
495 A2* getA2() {return A4::getA2();} in getA2()
504 A2 a2; in test()
523 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
524 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
525 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
526 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
527 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
528 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
529 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
530 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
531 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
532 assert(dynamic_cast<A2*>(a5.getA13()) == 0); in test()
533 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
534 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
535 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
536 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
597 struct A2 struct
600 virtual ~A2() {} in ~A2() argument
602 A2* getA2() {return this;} in getA2() argument
607 protected virtual A2
613 A2* getA2() {return A2::getA2();} in getA2()
619 public virtual A2
625 A2* getA2() {return A2::getA2();} in getA2()
638 A2* getA2() {return A4::getA2();} in getA2()
647 A2 a2; in test()
666 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
667 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
668 assert(dynamic_cast<A2*>(a3.getA1()) == 0); in test()
669 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
671 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
672 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
673 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
674 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
675 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
676 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
678 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
679 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
740 struct A2 struct
743 virtual ~A2() {} in ~A2() argument
745 A2* getA2() {return this;} in getA2() argument
750 public virtual A2
756 A2* getA2() {return A2::getA2();} in getA2()
762 public virtual A2
768 A2* getA2() {return A2::getA2();} in getA2()
781 A2* getA2() {return A4::getA2();} in getA2()
790 A2 a2; in test()
809 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
810 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
811 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
812 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
813 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
814 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
815 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
816 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
817 assert(dynamic_cast<A2*>(a5.getA14()) == 0); in test()
818 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
819 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
820 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
821 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
822 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
883 struct A2 struct
886 virtual ~A2() {} in ~A2() argument
888 A2* getA2() {return this;} in getA2() argument
893 public virtual A2
899 A2* getA2() {return A2::getA2();} in getA2()
905 protected virtual A2
911 A2* getA2() {return A2::getA2();} in getA2()
924 A2* getA2() {return A4::getA2();} in getA2()
933 A2 a2; in test()
952 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
953 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
954 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
955 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
956 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
957 assert(dynamic_cast<A2*>(a4.getA1()) == 0); in test()
958 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
960 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
961 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
962 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
963 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
965 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
1026 struct A2 struct
1029 virtual ~A2() {} in ~A2() argument
1031 A2* getA2() {return this;} in getA2() argument
1036 public virtual A2
1042 A2* getA2() {return A2::getA2();} in getA2()
1048 public virtual A2
1054 A2* getA2() {return A2::getA2();} in getA2()
1067 A2* getA2() {return A4::getA2();} in getA2()
1076 A2 a2; in test()
1095 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1096 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1097 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1098 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1099 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1100 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
1101 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
1102 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
1103 assert(dynamic_cast<A2*>(a5.getA14()) == a5.getA2()); in test()
1104 assert(dynamic_cast<A2*>(a5.getA13()) == 0); in test()
1105 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
1106 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
1107 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
1108 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()
1169 struct A2 struct
1172 virtual ~A2() {} in ~A2() argument
1174 A2* getA2() {return this;} in getA2() argument
1179 public virtual A2
1185 A2* getA2() {return A2::getA2();} in getA2()
1191 public virtual A2
1197 A2* getA2() {return A2::getA2();} in getA2()
1210 A2* getA2() {return A4::getA2();} in getA2()
1219 A2 a2; in test()
1238 assert(dynamic_cast<A2*>(a1.getA1()) == 0); in test()
1239 assert(dynamic_cast<A2*>(a2.getA2()) == a2.getA2()); in test()
1240 assert(dynamic_cast<A2*>(a3.getA1()) == a3.getA2()); in test()
1241 assert(dynamic_cast<A2*>(a3.getA2()) == a3.getA2()); in test()
1242 assert(dynamic_cast<A2*>(a3.getA3()) == a3.getA2()); in test()
1243 assert(dynamic_cast<A2*>(a4.getA1()) == a4.getA2()); in test()
1244 assert(dynamic_cast<A2*>(a4.getA2()) == a4.getA2()); in test()
1245 assert(dynamic_cast<A2*>(a4.getA4()) == a4.getA2()); in test()
1246 assert(dynamic_cast<A2*>(a5.getA14()) == 0); in test()
1247 assert(dynamic_cast<A2*>(a5.getA13()) == a5.getA2()); in test()
1248 assert(dynamic_cast<A2*>(a5.getA2()) == a5.getA2()); in test()
1249 assert(dynamic_cast<A2*>(a5.getA3()) == a5.getA2()); in test()
1250 assert(dynamic_cast<A2*>(a5.getA4()) == a5.getA2()); in test()
1251 assert(dynamic_cast<A2*>(a5.getA5()) == a5.getA2()); in test()