Geant4  10.01.p02
AddClone_def.hh File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define G4IT_TO_BE_CLONED(parent_class)   virtual parent_class* Clone() const { return 0;}
 
#define G4IT_ADD_CLONE(parent_class, kid_class)
 

Macro Definition Documentation

#define G4IT_ADD_CLONE (   parent_class,
  kid_class 
)
Value:
virtual parent_class* Clone() const {\
return new kid_class(*this);\
}

Definition at line 53 of file AddClone_def.hh.

#define G4IT_TO_BE_CLONED (   parent_class)    virtual parent_class* Clone() const { return 0;}

Definition at line 50 of file AddClone_def.hh.