Geant4-11
Public Member Functions | Protected Member Functions | Private Attributes
G4DNAReactionTypeManager Class Reference

#include <G4DNAReactionTypeManager.hh>

Inheritance diagram for G4DNAReactionTypeManager:
G4VReactionTypeManager

Public Member Functions

 G4DNAReactionTypeManager ()
 
ReactionType GetReactionTypeByID (ReactionID iD)
 
const ReactionTypeTableGetReactionTypeTable () const override
 
void SetReactionTypeTable (G4VReactionType *process) override
 
void SetTypeTableByID (std::map< ReactionID, ReactionType > byIDMap) override
 
 ~G4DNAReactionTypeManager () override
 

Protected Member Functions

void Clear ()
 

Private Attributes

std::map< ReactionID, ReactionTypefReactionTypeByID
 
ReactionTypeTable fReactionTypeTable
 

Detailed Description

Definition at line 46 of file G4DNAReactionTypeManager.hh.

Constructor & Destructor Documentation

◆ G4DNAReactionTypeManager()

G4DNAReactionTypeManager::G4DNAReactionTypeManager ( )

Definition at line 31 of file G4DNAReactionTypeManager.cc.

33{}
G4VReactionTypeManager()=default

◆ ~G4DNAReactionTypeManager()

G4DNAReactionTypeManager::~G4DNAReactionTypeManager ( )
override

Definition at line 35 of file G4DNAReactionTypeManager.cc.

References Clear().

Member Function Documentation

◆ Clear()

void G4DNAReactionTypeManager::Clear ( )
protected

Definition at line 40 of file G4DNAReactionTypeManager.cc.

41{
42 for(auto it : fReactionTypeTable)
43 {
44 if(it.second != nullptr)
45 {
46 delete it.second;
47 it.second = nullptr;
48 }
49 }
50 fReactionTypeTable.clear();
51}

References fReactionTypeTable.

Referenced by ~G4DNAReactionTypeManager().

◆ GetReactionTypeByID()

ReactionType G4DNAReactionTypeManager::GetReactionTypeByID ( ReactionID  iD)

Definition at line 69 of file G4DNAReactionTypeManager.cc.

70{
71 return fReactionTypeByID[iD];
72}
std::map< ReactionID, ReactionType > fReactionTypeByID

References fReactionTypeByID.

Referenced by G4DNAIndependentReactionTimeStepper::GetReactionType().

◆ GetReactionTypeTable()

const ReactionTypeTable * G4DNAReactionTypeManager::GetReactionTypeTable ( ) const
overridevirtual

◆ SetReactionTypeTable()

void G4DNAReactionTypeManager::SetReactionTypeTable ( G4VReactionType process)
overridevirtual

Implements G4VReactionTypeManager.

Definition at line 53 of file G4DNAReactionTypeManager.cc.

54{
55 G4int index = fReactionTypeTable.size();
56 fReactionTypeTable[index] = process;
57}
int G4int
Definition: G4Types.hh:85

References fReactionTypeTable.

◆ SetTypeTableByID()

void G4DNAReactionTypeManager::SetTypeTableByID ( std::map< ReactionID, ReactionType byIDMap)
overridevirtual

Implements G4VReactionTypeManager.

Definition at line 64 of file G4DNAReactionTypeManager.cc.

65{
66 fReactionTypeByID = byIDMap;
67}

References fReactionTypeByID.

Field Documentation

◆ fReactionTypeByID

std::map<ReactionID, ReactionType> G4DNAReactionTypeManager::fReactionTypeByID
private

Definition at line 60 of file G4DNAReactionTypeManager.hh.

Referenced by GetReactionTypeByID(), and SetTypeTableByID().

◆ fReactionTypeTable

ReactionTypeTable G4DNAReactionTypeManager::fReactionTypeTable
private

Definition at line 59 of file G4DNAReactionTypeManager.hh.

Referenced by Clear(), GetReactionTypeTable(), and SetReactionTypeTable().


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