G4NavigationLevel Class Reference

#include <G4NavigationLevel.hh>


Public Member Functions

 G4NavigationLevel (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &newT, EVolume newVolTp, G4int newRepNo=-1)
 G4NavigationLevel (G4VPhysicalVolume *newPtrPhysVol, const G4AffineTransform &levelAbove, const G4AffineTransform &relativeCurrent, EVolume newVolTp, G4int newRepNo=-1)
 G4NavigationLevel ()
 G4NavigationLevel (const G4NavigationLevel &)
 ~G4NavigationLevel ()
G4NavigationLeveloperator= (const G4NavigationLevel &right)
G4VPhysicalVolumeGetPhysicalVolume () const
const G4AffineTransformGetTransformPtr () const
const G4AffineTransformGetTransform () const
EVolume GetVolumeType () const
G4int GetReplicaNo () const
const G4AffineTransformGetPtrTransform () const
void * operator new (size_t)
void operator delete (void *aLevel)
void * operator new (size_t, void *)
void operator delete (void *ptr, void *)


Detailed Description

Definition at line 52 of file G4NavigationLevel.hh.


Constructor & Destructor Documentation

G4NavigationLevel::G4NavigationLevel ( G4VPhysicalVolume newPtrPhysVol,
const G4AffineTransform newT,
EVolume  newVolTp,
G4int  newRepNo = -1 
)

Definition at line 37 of file G4NavigationLevel.cc.

00041 {
00042   fLevelRep = new G4NavigationLevelRep( pPhysVol, afTransform, volTp, repNo );
00043 }

G4NavigationLevel::G4NavigationLevel ( G4VPhysicalVolume newPtrPhysVol,
const G4AffineTransform levelAbove,
const G4AffineTransform relativeCurrent,
EVolume  newVolTp,
G4int  newRepNo = -1 
)

Definition at line 45 of file G4NavigationLevel.cc.

00050 {
00051   fLevelRep = new G4NavigationLevelRep( pPhysVol, 
00052                                         levelAbove, 
00053                                         relativeCurrent, 
00054                                         volTp, 
00055                                         repNo );
00056 }

G4NavigationLevel::G4NavigationLevel (  ) 

Definition at line 58 of file G4NavigationLevel.cc.

00059 {
00060   fLevelRep = new G4NavigationLevelRep();
00061 }

G4NavigationLevel::G4NavigationLevel ( const G4NavigationLevel  ) 

Definition at line 63 of file G4NavigationLevel.cc.

References G4NavigationLevelRep::AddAReference().

00064   : fLevelRep( right.fLevelRep )
00065 {
00066   fLevelRep->AddAReference(); 
00067 }

G4NavigationLevel::~G4NavigationLevel (  ) 

Definition at line 69 of file G4NavigationLevel.cc.

References G4NavigationLevelRep::RemoveAReference().

00070 {
00071   if( fLevelRep->RemoveAReference() )  { delete fLevelRep; }
00072 }


Member Function Documentation

G4VPhysicalVolume * G4NavigationLevel::GetPhysicalVolume (  )  const [inline]

Definition at line 40 of file G4NavigationLevel.icc.

References G4NavigationLevelRep::GetPhysicalVolume().

00041 { 
00042   return fLevelRep->GetPhysicalVolume(); 
00043 }

const G4AffineTransform * G4NavigationLevel::GetPtrTransform (  )  const [inline]

Definition at line 52 of file G4NavigationLevel.icc.

References G4NavigationLevelRep::GetTransformPtr().

00053 { 
00054   return fLevelRep->GetTransformPtr() ; 
00055 } 

G4int G4NavigationLevel::GetReplicaNo (  )  const [inline]

Definition at line 64 of file G4NavigationLevel.icc.

References G4NavigationLevelRep::GetReplicaNo().

00065 { 
00066   return fLevelRep->GetReplicaNo() ; 
00067 }

const G4AffineTransform & G4NavigationLevel::GetTransform (  )  const [inline]

Definition at line 46 of file G4NavigationLevel.icc.

References G4NavigationLevelRep::GetTransform().

00047 { 
00048   return fLevelRep->GetTransform() ; 
00049 } 

const G4AffineTransform* G4NavigationLevel::GetTransformPtr (  )  const [inline]

EVolume G4NavigationLevel::GetVolumeType (  )  const [inline]

Definition at line 58 of file G4NavigationLevel.icc.

References G4NavigationLevelRep::GetVolumeType().

00059 { 
00060   return fLevelRep->GetVolumeType() ; 
00061 }

void G4NavigationLevel::operator delete ( void *  ptr,
void *   
) [inline]

Definition at line 96 of file G4NavigationLevel.icc.

00097 {
00098 }

void G4NavigationLevel::operator delete ( void *  aLevel  )  [inline]

Definition at line 87 of file G4NavigationLevel.icc.

References aNavigationLevelAllocator.

00088 {
00089   aNavigationLevelAllocator.FreeSingle((G4NavigationLevel *) aLevel);
00090 }

void * G4NavigationLevel::operator new ( size_t  ,
void *   
) [inline]

Definition at line 81 of file G4NavigationLevel.icc.

00082 {
00083   return a;
00084 }

void * G4NavigationLevel::operator new ( size_t   )  [inline]

Definition at line 73 of file G4NavigationLevel.icc.

References aNavigationLevelAllocator.

00074 {
00075   return (void *) aNavigationLevelAllocator.MallocSingle();
00076 }

G4NavigationLevel & G4NavigationLevel::operator= ( const G4NavigationLevel right  ) 

Definition at line 74 of file G4NavigationLevel.cc.

References G4NavigationLevelRep::AddAReference(), fLevelRep, and G4NavigationLevelRep::RemoveAReference().

00075 { 
00076   if ( &right != this )
00077   {
00078     right.fLevelRep->AddAReference(); 
00079     if( fLevelRep->RemoveAReference() )  { delete fLevelRep; }
00080     fLevelRep = right.fLevelRep;
00081   }
00082   return *this;
00083 } 


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:33 2013 for Geant4 by  doxygen 1.4.7