Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4BiasingOperationManager Class Reference

#include <G4BiasingOperationManager.hh>

Public Member Functions

const std::vector< G4VBiasingOperation * > GetBiasingOperations ()
 
G4VBiasingOperationGetBiasingOperation (std::size_t optionID)
 
 ~G4BiasingOperationManager ()
 
std::size_t Register (G4VBiasingOperation *)
 

Static Public Member Functions

static G4BiasingOperationManagerGetInstance ()
 

Friends

class G4ThreadLocalSingleton< G4BiasingOperationManager >
 

Detailed Description

Definition at line 50 of file G4BiasingOperationManager.hh.

Constructor & Destructor Documentation

◆ ~G4BiasingOperationManager()

G4BiasingOperationManager::~G4BiasingOperationManager ( )

Definition at line 35 of file G4BiasingOperationManager.cc.

36{}

Member Function Documentation

◆ GetBiasingOperation()

G4VBiasingOperation * G4BiasingOperationManager::GetBiasingOperation ( std::size_t optionID)

Definition at line 57 of file G4BiasingOperationManager.cc.

58{
59 if (optionID < fBiasingOperationVector.Size())
60 return fBiasingOperationVector[(G4int)optionID];
61 else
62 return nullptr;
63}
int G4int
Definition G4Types.hh:85
size_type Size()
Definition G4Cache.hh:166

◆ GetBiasingOperations()

const std::vector< G4VBiasingOperation * > G4BiasingOperationManager::GetBiasingOperations ( )
inline

Definition at line 54 of file G4BiasingOperationManager.hh.

54{return fBiasingOperationVector.Get();}
value_type & Get() const
Definition G4Cache.hh:315

◆ GetInstance()

G4BiasingOperationManager * G4BiasingOperationManager::GetInstance ( )
static

Definition at line 38 of file G4BiasingOperationManager.cc.

39{
40 //Create an instance for each thread.
42 return instance.Instance();
43// if (fInstance == 0) fInstance = new G4BiasingOperationManager();
44// return fInstance;
45}

Referenced by G4VBiasingOperation::G4VBiasingOperation().

◆ Register()

std::size_t G4BiasingOperationManager::Register ( G4VBiasingOperation * option)

Definition at line 47 of file G4BiasingOperationManager.cc.

48{
49 std::size_t optionUniqueID = fBiasingOperationVector.Size();
50
51 fBiasingOperationVector.Push_back(option);
52 fBiasingOperationIDtoPointerMap[option] = optionUniqueID;
53
54 return optionUniqueID;
55}
void Push_back(const value_type &val)
Definition G4Cache.hh:374

Referenced by G4VBiasingOperation::G4VBiasingOperation().

Friends And Related Symbol Documentation

◆ G4ThreadLocalSingleton< G4BiasingOperationManager >

Definition at line 1 of file G4BiasingOperationManager.hh.


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