Geant4  10.00.p03
filter.cc File Reference
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include <unistd.h>
#include "memoryprotection/filter.h"
+ Include dependency graph for filter.cc:

Go to the source code of this file.

Classes

struct  AddressTable
 

Functions

int bSearchAddress (unsigned long address, int head, int tail)
 
int findAddress (unsigned long address)
 
int insertAddress (unsigned long address)
 
void outputAddresses (char *cmd)
 
void generategdbscripts ()
 

Variables

int position = -1
 
struct AddressTable Detected
 

Function Documentation

int bSearchAddress ( unsigned long  address,
int  head,
int  tail 
)

Definition at line 18 of file filter.cc.

References AddressTable::addresses, Detected, and position.

Referenced by findAddress().

+ Here is the caller graph for this function:

int findAddress ( unsigned long  address)

Definition at line 38 of file filter.cc.

References bSearchAddress(), AddressTable::counter, Detected, and position.

Referenced by insertAddress().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

void generategdbscripts ( )

Definition at line 97 of file filter.cc.

References AddressTable::addresses, AddressTable::counter, and Detected.

int insertAddress ( unsigned long  address)

Definition at line 44 of file filter.cc.

References AddressTable::addresses, assert, AddressTable::counter, Detected, findAddress(), malloc(), position, realloc(), and AddressTable::space.

+ Here is the call graph for this function:

void outputAddresses ( char *  cmd)

Definition at line 84 of file filter.cc.

References AddressTable::addresses, AddressTable::counter, and Detected.

Variable Documentation

int position = -1

Definition at line 7 of file filter.cc.

Referenced by G4ArrayOps::Add(), G4eLowEnergyLoss::AlongStepDoIt(), G4OpenInventorXtExaminerViewer::animateRefParticleCB(), G4AntiNeutronAnnihilationAtRest::AtRestDoIt(), G4MuonMinusCaptureAtRest::AtRestDoIt(), G4GDMLReadSolids::BooleanRead(), bSearchAddress(), G4SafetyHelper::CheckNextStep(), G4SafetyHelper::ComputeSafety(), G4MultiNavigator::ComputeSafety(), G4PathFinder::ComputeSafety(), G4GDMLParameterisation::ComputeTransformation(), RE02NestedPhantomParameterisation::ComputeTransformation(), B3DetectorConstruction::Construct(), G02DetectorConstruction::ConstructAssembly(), G4ArrayOps::Copy(), G3Division::CreatePVReplica(), G4KineticTrack::Decay(), G4LowEnergyIonisation::DeexciteAtom(), G4INCL::CoulombNonRelativistic::distortOut(), G4ArrayOps::Divide(), Par01PiModel::DoIt(), exGPSEventAction::EndOfEventAction(), findAddress(), G4DNAIndirectHit::G4DNAIndirectHit(), G4Poisson(), GammaRayTelPrimaryGeneratorAction::GammaRayTelPrimaryGeneratorAction(), ExN02PrimaryGeneratorAction::GeneratePrimaries(), ExP01PrimaryGeneratorAction::GeneratePrimaries(), RE02PrimaryGeneratorAction::GeneratePrimaries(), XrayFluoPlanePrimaryGeneratorAction::GeneratePrimaries(), XrayFluoPrimaryGeneratorAction::GeneratePrimaries(), G4PAIPhotonModel::GetAlongStepTransfer(), G4PAIxSection::GetCerenkovEnergyTransfer(), F03FieldSetup::GetConstantFieldValue(), XrayFluoDetectorConstruction::GetDetectorPosition(), G4PAIxSection::GetEnergyTransfer(), G4PAIxSection::GetMMEnergyTransfer(), G4Pythia6Decayer::GetParticlePosition(), G4PAIxSection::GetPlasmonEnergyTransfer(), G4PAIPhotonModel::GetPostStepTransfer(), G4VXTRenergyLoss::GetRandomAngle(), G4SynchrotronRadiationInMat::GetRandomEnergySR(), G4PAIxSection::GetResonanceEnergyTransfer(), G4PAIxSection::GetRutherfordEnergyTransfer(), G4PAIySection::GetStepCerenkovLoss(), G4PAIySection::GetStepEnergyLoss(), G4PAIySection::GetStepPlasmonLoss(), G4MesonAbsorption::GetTimeToAbsorption(), G4Scatterer::GetTimeToInteraction(), G4VXTRenergyLoss::GetXTRrandomEnergy(), HepMCG4Interface::HepMC2G4(), insertAddress(), G4PathFinder::Locate(), G4MultiNavigator::LocateGlobalPointWithinVolume(), G4ArrayOps::Multiply(), G4GDMLReadParamvol::ParametersRead(), G4INCL::ParticleEntryChannel::particleEnters(), G4INCL::TransmissionChannel::particleLeaves(), G4GDMLReadStructure::PhysvolRead(), DetectorConstruction::PlaceWithReflections(), G4GDMLReadDefine::PositionRead(), G4VXTRenergyLoss::PostStepDoIt(), G4PathFinder::PrepareNewTrack(), G4MCTSimVertex::Print(), G4PSCylinderSurfaceFlux::ProcessHits(), CexmcTrackPoints::ProcessHits(), G4FastStep::ProposePrimaryTrackFinalPosition(), RE02PrimaryGeneratorAction::RE02PrimaryGeneratorAction(), CexmcSetup::ReadTransforms(), G4GDMLReadSolids::ReflectedSolidRead(), G4PathFinder::ReLocate(), G4GDMLReadStructure::ReplicaRead(), CexmcPhysicsList< BasePhysics, StudiedPhysics, ProductionModel >::ResampleTrackLengthInTarget(), G4PAIPhotData::SampleAlongStepPhotonTransfer(), G4PAIPhotData::SampleAlongStepPlasmonTransfer(), G4PAIModelData::SampleAlongStepTransfer(), G4PAIPhotData::SampleAlongStepTransfer(), G4INCL::ParticleSampler::sampleOneParticleWithoutRPCorrelation(), G4PAIPhotData::SamplePostStepPhotonTransfer(), G4PAIPhotData::SamplePostStepPlasmonTransfer(), G4PAIModelData::SamplePostStepTransfer(), G4PAIPhotData::SamplePostStepTransfer(), G4NuclNuclDiffuseElastic::SampleTableThetaCMS(), G4DiffuseElastic::SampleTableThetaCMS(), G4ArrayOps::Set(), PrimaryGeneratorAction::SetDefaultKinematic(), F01FieldSetup::SetFieldValue(), CexmcParticleGun::SetOrigPosition(), G4INCL::Particle::setPosition(), G4INCL::StandardPropagationModel::shootComposite(), G4INCL::StandardPropagationModel::shootParticle(), G4CoupledTransportation::StartTracking(), G4ArrayOps::Subtract(), EventAction::WritePixels(), XrayFluoMercuryPrimaryGeneratorAction::XrayFluoMercuryPrimaryGeneratorAction(), XrayFluoPlanePrimaryGeneratorAction::XrayFluoPlanePrimaryGeneratorAction(), and XrayFluoPrimaryGeneratorAction::XrayFluoPrimaryGeneratorAction().