Where is the implemetation of static function Class in Macro ClassDef?

Hi, guys, I’m reading the source code of root causing I want develop something based on root. But when I read the Macro ClassDef, I can find the implementation of ‘static TClass *Class();’. Almost every class has this member function, but where is the implementation?


It’s in the dictionary source file - the file created by rootcling.

Note that generally (except if you inherit from TObject - which often you don’t need) you don’t need ClassDef. And even then, in the current master you can use ClassDefInline which doesn’t need a dictionary to be generated anymore.

Cheers, Axel.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.