Geant4-11
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Attributes | Friends
G4BiasingOperationManager Class Reference

#include <G4BiasingOperationManager.hh>

Public Member Functions

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

Static Public Member Functions

static G4BiasingOperationManagerGetInstance ()
 

Private Member Functions

 G4BiasingOperationManager ()
 

Static Private Attributes

static G4MapCache< G4VBiasingOperation *, std::size_t > fBiasingOperationIDtoPointerMap
 
static G4VectorCache< G4VBiasingOperation * > fBiasingOperationVector
 

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{}

◆ G4BiasingOperationManager()

G4BiasingOperationManager::G4BiasingOperationManager ( )
private

Definition at line 32 of file G4BiasingOperationManager.cc.

33{}

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()) return fBiasingOperationVector[optionID];
60 else return 0;
61}
static G4VectorCache< G4VBiasingOperation * > fBiasingOperationVector
size_type Size()
Definition: G4Cache.hh:166

References fBiasingOperationVector, and G4VectorCache< VALTYPE >::Size().

◆ GetBiasingOperations()

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

Definition at line 54 of file G4BiasingOperationManager.hh.

value_type & Get() const
Definition: G4Cache.hh:315

References fBiasingOperationVector, and G4Cache< VALTYPE >::Get().

◆ 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}

References G4ThreadLocalSingleton< T >::Instance().

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
52 fBiasingOperationIDtoPointerMap[option] = optionUniqueID;
53
54 return optionUniqueID;
55}
static G4MapCache< G4VBiasingOperation *, std::size_t > fBiasingOperationIDtoPointerMap
void Push_back(const value_type &val)
Definition: G4Cache.hh:375

References fBiasingOperationIDtoPointerMap, fBiasingOperationVector, G4VectorCache< VALTYPE >::Push_back(), and G4VectorCache< VALTYPE >::Size().

Referenced by G4VBiasingOperation::G4VBiasingOperation().

Friends And Related Function Documentation

◆ G4ThreadLocalSingleton< G4BiasingOperationManager >

Definition at line 1 of file G4BiasingOperationManager.hh.

Field Documentation

◆ fBiasingOperationIDtoPointerMap

G4MapCache< G4VBiasingOperation *, std::size_t > G4BiasingOperationManager::fBiasingOperationIDtoPointerMap
staticprivate

Definition at line 65 of file G4BiasingOperationManager.hh.

Referenced by Register().

◆ fBiasingOperationVector

G4VectorCache< G4VBiasingOperation * > G4BiasingOperationManager::fBiasingOperationVector
staticprivate

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