Geant4  10.01
G4Cache< VALTYPE > Class Template Reference

#include <G4Cache.hh>

+ Inheritance diagram for G4Cache< VALTYPE >:
+ Collaboration diagram for G4Cache< VALTYPE >:

Public Types

typedef VALTYPE value_type
 

Public Member Functions

 G4Cache ()
 
 G4Cache (const value_type &v)
 
virtual ~G4Cache ()
 
value_typeGet () const
 
void Put (const value_type &val) const
 
value_type Pop ()
 

Protected Member Functions

const int & GetId () const
 

Private Member Functions

value_typeGetCache () const
 
 G4Cache (const G4Cache &rhs)
 
G4Cacheoperator= (const G4Cache &rhs)
 

Private Attributes

int id
 
G4CacheReference< value_typetheCache
 

Static Private Attributes

static G4Mutex gMutex = G4MUTEX_INITIALIZER
 
static unsigned int instancesctr = 0
 
static unsigned int dstrctr = 0
 

Detailed Description

template<class VALTYPE>
class G4Cache< VALTYPE >

Definition at line 85 of file G4Cache.hh.

Member Typedef Documentation

template<class VALTYPE>
typedef VALTYPE G4Cache< VALTYPE >::value_type

Definition at line 87 of file G4Cache.hh.

Constructor & Destructor Documentation

template<class V >
G4Cache< V >::G4Cache ( )

Definition at line 216 of file G4Cache.hh.

template<class VALTYPE>
G4Cache< VALTYPE >::G4Cache ( const value_type v)
template<class V >
G4Cache< V >::~G4Cache ( )
virtual

Definition at line 237 of file G4Cache.hh.

template<class VALTYPE>
G4Cache< VALTYPE >::G4Cache ( const G4Cache< VALTYPE > &  rhs)
private

Member Function Documentation

template<class V >
V & G4Cache< V >::Get ( ) const
inline

Definition at line 253 of file G4Cache.hh.

Referenced by G4NeutronHPFinalState::adjust_final_state(), G4NeutronHPD2AInelasticFS::ApplyYourself(), G4NeutronHPT2AInelasticFS::ApplyYourself(), G4NeutronHPDInelasticFS::ApplyYourself(), G4NeutronHPHe3InelasticFS::ApplyYourself(), G4NeutronHPN2AInelasticFS::ApplyYourself(), G4NeutronHPN2PInelasticFS::ApplyYourself(), G4NeutronHPN3AInelasticFS::ApplyYourself(), G4NeutronHPNAInelasticFS::ApplyYourself(), G4NeutronHPND2AInelasticFS::ApplyYourself(), G4NeutronHPNDInelasticFS::ApplyYourself(), G4NeutronHPNHe3InelasticFS::ApplyYourself(), G4NeutronHPNInelasticFS::ApplyYourself(), G4NeutronHPNPAInelasticFS::ApplyYourself(), G4NeutronHPNT2AInelasticFS::ApplyYourself(), G4NeutronHPNTInelasticFS::ApplyYourself(), G4NeutronHPNXInelasticFS::ApplyYourself(), G4NeutronHPPAInelasticFS::ApplyYourself(), G4NeutronHPPDInelasticFS::ApplyYourself(), G4NeutronHPPInelasticFS::ApplyYourself(), G4NeutronHPNPInelasticFS::ApplyYourself(), G4NeutronHPPTInelasticFS::ApplyYourself(), G4NeutronHPTInelasticFS::ApplyYourself(), G4NeutronHP2AInelasticFS::ApplyYourself(), G4NeutronHP2NAInelasticFS::ApplyYourself(), G4NeutronHP2NDInelasticFS::ApplyYourself(), G4NeutronHP2NInelasticFS::ApplyYourself(), G4NeutronHP2NPInelasticFS::ApplyYourself(), G4NeutronHP2PInelasticFS::ApplyYourself(), G4NeutronHP3AInelasticFS::ApplyYourself(), G4NeutronHP3NAInelasticFS::ApplyYourself(), G4NeutronHP2N2AInelasticFS::ApplyYourself(), G4NeutronHP3NPInelasticFS::ApplyYourself(), G4NeutronHP4NInelasticFS::ApplyYourself(), G4NeutronHPAInelasticFS::ApplyYourself(), G4NeutronHP3NInelasticFS::ApplyYourself(), G4NeutronHPDAInelasticFS::ApplyYourself(), G4NeutronHPFissionFS::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4NeutronHPInelasticBaseFS::BaseApply(), G4VectorCache< VALTYPE >::Begin(), G4MapCache< KEYTYPE, VALTYPE >::Begin(), G4VectorCache< VALTYPE >::Clear(), G4NeutronHPContAngularPar::ClearHistories(), G4NeutronHPInelasticCompFS::CompositeApply(), DetectorConstruction::ConstructSDandField(), ElectronBenchmarkDetector::ConstructSDandField(), LXeDetectorConstruction::ConstructSDandField(), F04DetectorConstruction::ConstructSDandField(), DMXDetectorConstruction::ConstructSDandField(), PurgMagDetectorConstruction::ConstructSDandField(), WLSDetectorConstruction::ConstructSDandField(), XrayFluoPlaneDetectorConstruction::ConstructSDandField(), F03DetectorConstruction::ConstructSDandField(), XrayFluoMercuryDetectorConstruction::ConstructSDandField(), F01DetectorConstruction::ConstructSDandField(), F02DetectorConstruction::ConstructSDandField(), XrayFluoDetectorConstruction::ConstructSDandField(), GammaRayTelDetectorConstruction::ConstructSDandField(), G4VectorCache< VALTYPE >::End(), G4MapCache< KEYTYPE, VALTYPE >::End(), G4BiasingProcessInterface::EndTracking(), G4MapCache< KEYTYPE, VALTYPE >::Erase(), G4MapCache< KEYTYPE, VALTYPE >::Find(), G4VBiasingOperator::G4VBiasingOperator(), G4VectorCache< VALTYPE >::G4VectorCache(), G4SPSPosDistribution::GeneratePointsInPlane(), G4SPSPosDistribution::GeneratePointsInVolume(), G4SPSPosDistribution::GeneratePointsOnSurface(), G4BiasingOperationManager::GetBiasingOperations(), G4VBiasingOperator::GetBiasingOperators(), G4SPSPosDistribution::GetParticlePos(), G4NeutronHPPhotonDist::GetPhotons(), G4SPSPosDistribution::GetSideRefVec1(), G4SPSPosDistribution::GetSideRefVec2(), G4SPSPosDistribution::GetSideRefVec3(), G4SPSPosDistribution::HandleThreadLocalCache(), G4SPSPosDistribution::InitThreadLocalCache(), G4MapCache< KEYTYPE, VALTYPE >::Insert(), G4ThreadLocalSingleton< T >::Instance(), G4NeutronHPContEnergyAngular::MeanEnergyOfThisInteraction(), G4VectorCache< VALTYPE >::operator[](), G4VectorCache< VALTYPE >::Pop_back(), G4VectorCache< VALTYPE >::Push_back(), G4PenelopeBremsstrahlungFS::SampleGammaEnergy(), G4VectorCache< G4VBiasingOperation * >::Size(), G4MapCache< const G4ProcessManager *, G4BiasingProcessSharedData * >::Size(), and G4BiasingProcessInterface::StartTracking().

template<class VALTYPE>
value_type& G4Cache< VALTYPE >::GetCache ( ) const
inlineprivate

Definition at line 117 of file G4Cache.hh.

template<class VALTYPE>
const int& G4Cache< VALTYPE >::GetId ( ) const
inlineprotected

Definition at line 109 of file G4Cache.hh.

Referenced by G4MapCache< KEYTYPE, VALTYPE >::~G4MapCache().

+ Here is the caller graph for this function:

template<class VALTYPE>
G4Cache& G4Cache< VALTYPE >::operator= ( const G4Cache< VALTYPE > &  rhs)
private
template<class V >
V G4Cache< V >::Pop ( )
inline

Definition at line 262 of file G4Cache.hh.

template<class VALTYPE>
void G4Cache< V >::Put ( const value_type val) const
inline

Definition at line 257 of file G4Cache.hh.

Referenced by G4NeutronHPFissionFS::ApplyYourself(), G4NeutronHPCaptureFS::ApplyYourself(), G4NeutronHPElasticFS::ApplyYourself(), G4FissionLibrary::ApplyYourself(), G4NeutronHPInelasticBaseFS::BaseApply(), G4NeutronHPContAngularPar::cacheInit(), G4NeutronHPInelasticCompFS::CompositeApply(), DetectorConstruction::ConstructSDandField(), LXeDetectorConstruction::ConstructSDandField(), F04DetectorConstruction::ConstructSDandField(), PurgMagDetectorConstruction::ConstructSDandField(), WLSDetectorConstruction::ConstructSDandField(), DMXDetectorConstruction::ConstructSDandField(), XrayFluoPlaneDetectorConstruction::ConstructSDandField(), XrayFluoMercuryDetectorConstruction::ConstructSDandField(), F03DetectorConstruction::ConstructSDandField(), F01DetectorConstruction::ConstructSDandField(), F02DetectorConstruction::ConstructSDandField(), XrayFluoDetectorConstruction::ConstructSDandField(), GammaRayTelDetectorConstruction::ConstructSDandField(), DMXDetectorConstruction::DMXDetectorConstruction(), G4BiasingProcessInterface::EndTracking(), G4BiasingProcessInterface::G4BiasingProcessInterface(), G4NeutronHPContEnergyAngular::G4NeutronHPContEnergyAngular(), G4NeutronHPFinalState::G4NeutronHPFinalState(), G4NeutronHPPhotonDist::G4NeutronHPPhotonDist(), G4PenelopeBremsstrahlungFS::G4PenelopeBremsstrahlungFS(), G4ThreadLocalSingleton< T >::G4ThreadLocalSingleton(), G4VBiasingOperator::G4VBiasingOperator(), GammaRayTelDetectorConstruction::GammaRayTelDetectorConstruction(), G4SPSPosDistribution::GenerateOne(), G4SPSPosDistribution::InitThreadLocalCache(), G4ThreadLocalSingleton< T >::Instance(), G4NeutronHPContEnergyAngular::MeanEnergyOfThisInteraction(), PurgMagDetectorConstruction::PurgMagDetectorConstruction(), G4NeutronHPContEnergyAngular::Sample(), G4PenelopeBremsstrahlungFS::SampleGammaEnergy(), G4BiasingProcessInterface::StartTracking(), and XrayFluoDetectorConstruction::XrayFluoDetectorConstruction().

+ Here is the caller graph for this function:

Member Data Documentation

template<class VALTYPE>
unsigned int G4Cache< V >::dstrctr = 0
staticprivate

Definition at line 115 of file G4Cache.hh.

template<class VALTYPE>
G4Mutex G4Cache< V >::gMutex = G4MUTEX_INITIALIZER
staticprivate

Definition at line 113 of file G4Cache.hh.

template<class VALTYPE>
int G4Cache< VALTYPE >::id
private

Definition at line 111 of file G4Cache.hh.

Referenced by G4Cache< F02ElectricFieldSetup * >::GetId().

template<class VALTYPE>
unsigned int G4Cache< V >::instancesctr = 0
staticprivate

Definition at line 114 of file G4Cache.hh.

template<class VALTYPE>
G4CacheReference<value_type> G4Cache< VALTYPE >::theCache
mutableprivate

Definition at line 112 of file G4Cache.hh.


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