Geant4 11.2.2
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)
 
#define G4IT_ADD_CLONE(parent_class, kid_class)
 

Macro Definition Documentation

◆ G4IT_ADD_CLONE

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

Definition at line 52 of file AddClone_def.hh.

52#define G4IT_ADD_CLONE(parent_class, kid_class) \
53 parent_class* Clone() const override {\
54 return new kid_class(*this);\
55 }

◆ G4IT_TO_BE_CLONED

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

Definition at line 49 of file AddClone_def.hh.

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