Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
AddClone_def.hh File Reference

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

◆ G4IT_ADD_CLONE

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

Definition at line 52 of file AddClone_def.hh.

◆ G4IT_TO_BE_CLONED

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

Definition at line 49 of file AddClone_def.hh.