/* -*- C++ -*- */ /************************************************************************* * Copyright(c) 1995~2005 Masaharu Goto (root-cint@cern.ch) * * For the licensing terms see the file COPYING * ************************************************************************/ #include #ifdef __CINT__ #include #else #include #endif template class A { T* t; B* b; C* c; }; // A a1; A a2; A a3; template class S> class X { S s1; }; X a4; main() { G__ClassInfo c1("A"); disp(c1); G__ClassInfo c2("A"); disp(c2); //G__ClassInfo c3old("X::A"); disp(c3old); G__ClassInfo c3old("A"); disp(c3old); G__ClassInfo c3new("A"); disp(c3new); G__ClassInfo c4("X"); disp(c4); } void disp(G__ClassInfo& c) { G__DataMemberInfo d(c); while(d.Next()) { printf("%s %s\n",d.Type()->Name(),d.Name()); } }