#include <G4ShortLivedTable.hh>
Definition at line 50 of file G4ShortLivedTable.hh.
◆ G4ShortLivedList
◆ G4ShortLivedTable() [1/2]
G4ShortLivedTable::G4ShortLivedTable |
( |
| ) |
|
Definition at line 45 of file G4ShortLivedTable.cc.
46{
48}
std::vector< const G4ParticleDefinition * > G4ShortLivedList
◆ G4ShortLivedTable() [2/2]
◆ ~G4ShortLivedTable()
G4ShortLivedTable::~G4ShortLivedTable |
( |
| ) |
|
|
virtual |
Definition at line 50 of file G4ShortLivedTable.cc.
51{
52 if (fShortLivedList ==0) return;
53
54
55
56 fShortLivedList->clear();
57 delete fShortLivedList;
58 fShortLivedList =0;
59}
◆ clear()
void G4ShortLivedTable::clear |
( |
| ) |
|
Definition at line 90 of file G4ShortLivedTable.cc.
91{
95 "No effects because readyToUse is true.");
96 return;
97 }
98
99 fShortLivedList->clear();
100}
static G4ParticleTable * GetParticleTable()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
Referenced by G4ParticleTable::RemoveAllParticles().
◆ Contains()
Definition at line 107 of file G4ShortLivedTable.hh.
108{
109 G4ShortLivedList::iterator i;
110 for (i = fShortLivedList->begin(); i!= fShortLivedList->end(); ++i) {
111 if (**i==*particle) return true;
112 }
113 return false;
114}
◆ DumpTable()
void G4ShortLivedTable::DumpTable |
( |
const G4String & |
particle_name = "ALL" | ) |
const |
Definition at line 150 of file G4ShortLivedTable.cc.
151{
153
154 G4ShortLivedList::iterator idx;
155 for (idx = fShortLivedList->begin(); idx!= fShortLivedList->end(); ++idx) {
156 particle = *idx;
157 if (( particle_name == "ALL" ) || (particle_name == "all")){
161 }
162 }
163}
const G4String & GetParticleName() const
◆ Entries()
G4int G4ShortLivedTable::Entries |
( |
| ) |
const |
|
inline |
◆ GetParticle()
◆ GetVerboseLevel()
G4int G4ShortLivedTable::GetVerboseLevel |
( |
| ) |
const |
|
protected |
◆ Insert()
◆ IsShortLived()
◆ operator=()
Definition at line 66 of file G4ShortLivedTable.cc.
67{
68 if (this != & right) {
69 if (fShortLivedList !=0){
70 fShortLivedList->clear();
71 delete fShortLivedList;
73 } else {
75 }
76 }
77 return *this;
78}
◆ Remove()
Definition at line 109 of file G4ShortLivedTable.cc.
110{
115 G4String msg =
"Request of removing ";
117 msg += " has No effects other than Pre_Init";
120 return;
121 } else {
122#ifdef G4VERBOSE
125 <<
" will be removed from the ShortLivedTable " <<
G4endl;
126 }
127#endif
128 }
129 }
130
132 G4ShortLivedList::iterator idx;
133 for (idx = fShortLivedList->begin(); idx!= fShortLivedList->end(); ++idx) {
134 if ( particle == *idx) {
135 fShortLivedList->erase(idx);
136 break;
137 }
138 }
139 } else {
140#ifdef G4VERBOSE
144 }
145#endif
146 }
147}
G4DLLIMPORT std::ostream G4cout
G4int GetVerboseLevel() const
G4ApplicationState GetCurrentState() const
static G4StateManager * GetStateManager()
Referenced by G4ParticleTable::Remove().
◆ size()
G4int G4ShortLivedTable::size |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: