Geant4  10.00.p03
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 45 of file AddClone_def.hh.

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

Definition at line 42 of file AddClone_def.hh.