G4NavigationLevel.icc

Go to the documentation of this file.
00001 //
00002 // ********************************************************************
00003 // * License and Disclaimer                                           *
00004 // *                                                                  *
00005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
00006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
00007 // * conditions of the Geant4 Software License,  included in the file *
00008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
00009 // * include a list of copyright holders.                             *
00010 // *                                                                  *
00011 // * Neither the authors of this software system, nor their employing *
00012 // * institutes,nor the agencies providing financial support for this *
00013 // * work  make  any representation or  warranty, express or implied, *
00014 // * regarding  this  software system or assume any liability for its *
00015 // * use.  Please see the license in the file  LICENSE  and URL above *
00016 // * for the full disclaimer and the limitation of liability.         *
00017 // *                                                                  *
00018 // * This  code  implementation is the result of  the  scientific and *
00019 // * technical work of the GEANT4 collaboration.                      *
00020 // * By using,  copying,  modifying or  distributing the software (or *
00021 // * any work based  on the software)  you  agree  to acknowledge its *
00022 // * use  in  resulting  scientific  publications,  and indicate your *
00023 // * acceptance of all terms of the Geant4 Software license.          *
00024 // ********************************************************************
00025 //
00026 //
00027 // $Id$
00028 //
00029 // 30.09.97 J.Apostolakis Initial version. 
00030 //                        
00031 // ----------------------------------------------------------------------
00032 
00033 #if defined G4GEOM_ALLOC_EXPORT
00034   extern G4DLLEXPORT G4Allocator<G4NavigationLevel> aNavigationLevelAllocator;
00035 #else
00036   extern G4DLLIMPORT G4Allocator<G4NavigationLevel> aNavigationLevelAllocator;
00037 #endif
00038 
00039 inline
00040 G4VPhysicalVolume* G4NavigationLevel::GetPhysicalVolume() const 
00041 { 
00042   return fLevelRep->GetPhysicalVolume(); 
00043 }
00044 
00045 inline
00046 const G4AffineTransform& G4NavigationLevel::GetTransform() const 
00047 { 
00048   return fLevelRep->GetTransform() ; 
00049 } 
00050 
00051 inline
00052 const G4AffineTransform* G4NavigationLevel::GetPtrTransform() const 
00053 { 
00054   return fLevelRep->GetTransformPtr() ; 
00055 } 
00056 
00057 inline
00058 EVolume G4NavigationLevel::GetVolumeType() const 
00059 { 
00060   return fLevelRep->GetVolumeType() ; 
00061 }
00062 
00063 inline
00064 G4int G4NavigationLevel::GetReplicaNo() const 
00065 { 
00066   return fLevelRep->GetReplicaNo() ; 
00067 }
00068 
00069 // There is no provision in case this class is subclassed.
00070 // If it is subclassed, this will fail and may not give errors!
00071 //
00072 inline
00073 void* G4NavigationLevel::operator new(size_t)
00074 {
00075   return (void *) aNavigationLevelAllocator.MallocSingle();
00076 }
00077 
00078 // Added for use by STL (used for pre-allocation).
00079 //
00080 inline
00081 void* G4NavigationLevel::operator new(size_t,void *a)
00082 {
00083   return a;
00084 }
00085 
00086 inline
00087 void G4NavigationLevel::operator delete(void *aLevel)
00088 {
00089   aNavigationLevelAllocator.FreeSingle((G4NavigationLevel *) aLevel);
00090 }
00091 
00092 // Added for use by STL (used for free-ing pre-allocated?).
00093 //
00094 #ifndef G4NOT_ISO_DELETES
00095 inline
00096 void G4NavigationLevel::operator delete(void *, void *)
00097 {
00098 }
00099 #endif

Generated on Mon May 27 17:48:56 2013 for Geant4 by  doxygen 1.4.7