Geant4  10.02.p03
G4TrackStateManager Class Reference

#include <G4TrackState.hh>

Collaboration diagram for G4TrackStateManager:

Public Member Functions

void SetTrackState (void *adress, G4VTrackStateHandle state)
 
G4VTrackStateHandle GetTrackState (void *adress) const
 
template<class T >
G4VTrackStateHandle GetTrackState (T *adress) const
 
void SetTrackState (G4VTrackStateHandle state)
 
template<typename T >
G4VTrackStateHandle GetTrackState () const
 

Private Attributes

std::map< int, G4VTrackStateHandlefTrackStates
 
std::map< void *, G4VTrackStateHandlefMultipleTrackStates
 

Detailed Description

Definition at line 159 of file G4TrackState.hh.

Member Function Documentation

◆ GetTrackState() [1/3]

G4VTrackStateHandle G4TrackStateManager::GetTrackState ( void *  adress) const
inline

Definition at line 171 of file G4TrackState.hh.

172  {
173  std::map<void*, G4VTrackStateHandle>::const_iterator it =
174  fMultipleTrackStates.find(adress);
175  if (it == fMultipleTrackStates.end())
176  {
177  return G4VTrackStateHandle();
178  }
179  return it->second;
180  }
G4shared_ptr< G4VTrackState > G4VTrackStateHandle
Definition: G4TrackState.hh:89
std::map< void *, G4VTrackStateHandle > fMultipleTrackStates
Here is the caller graph for this function:

◆ GetTrackState() [2/3]

template<class T >
G4VTrackStateHandle G4TrackStateManager::GetTrackState ( T *  adress) const
inline

Definition at line 183 of file G4TrackState.hh.

184  {
185  std::map<void*, G4VTrackStateHandle>::const_iterator it =
186  fMultipleTrackStates.find((void*) adress);
187  if (it == fMultipleTrackStates.end())
188  {
189  return G4VTrackStateHandle();
190  }
191  return it->second;
192  }
G4shared_ptr< G4VTrackState > G4VTrackStateHandle
Definition: G4TrackState.hh:89
std::map< void *, G4VTrackStateHandle > fMultipleTrackStates

◆ GetTrackState() [3/3]

template<typename T >
G4VTrackStateHandle G4TrackStateManager::GetTrackState ( ) const
inline

Definition at line 198 of file G4TrackState.hh.

199  {
200  std::map<int, G4VTrackStateHandle>::const_iterator it = fTrackStates.find(
202  if (it == fTrackStates.end())
203  {
204  return G4VTrackStateHandle();
205  }
206  return it->second;
207  }
G4shared_ptr< G4VTrackState > G4VTrackStateHandle
Definition: G4TrackState.hh:89
std::map< int, G4VTrackStateHandle > fTrackStates

◆ SetTrackState() [1/2]

void G4TrackStateManager::SetTrackState ( void *  adress,
G4VTrackStateHandle  state 
)
inline

Definition at line 166 of file G4TrackState.hh.

167  {
168  fMultipleTrackStates[adress] = state;
169  }
std::map< void *, G4VTrackStateHandle > fMultipleTrackStates
Here is the caller graph for this function:

◆ SetTrackState() [2/2]

void G4TrackStateManager::SetTrackState ( G4VTrackStateHandle  state)
inline

Definition at line 193 of file G4TrackState.hh.

194  {
195  fTrackStates[state->GetID()] = state;
196  }
std::map< int, G4VTrackStateHandle > fTrackStates

Member Data Documentation

◆ fMultipleTrackStates

std::map<void*, G4VTrackStateHandle> G4TrackStateManager::fMultipleTrackStates
private

Definition at line 162 of file G4TrackState.hh.

◆ fTrackStates

std::map<int, G4VTrackStateHandle> G4TrackStateManager::fTrackStates
private

Definition at line 161 of file G4TrackState.hh.


The documentation for this class was generated from the following file: