G4LogicalSurface.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 //
00030 // Surface Class Inline Methods
00032 //
00033 // File:        G4LogicalSurface.icc
00034 // Description: A Surface class 
00035 // Created:     1997-06-26
00036 // Author:      John Apostolakis
00037 //
00038 // ------------------------------------------------------------------------
00039 
00040 inline G4SurfaceProperty*
00041 G4LogicalSurface::GetSurfaceProperty() const
00042 {
00043   return theSurfaceProperty;
00044 } 
00045 
00046 inline void
00047 G4LogicalSurface::SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty) 
00048 {
00049   theSurfaceProperty = ptrSurfaceProperty;
00050 } 
00051 
00052 inline const G4String&
00053 G4LogicalSurface::GetName() const
00054 {
00055   return theName;
00056 }
00057 
00058 inline void
00059 G4LogicalSurface::SetName(const G4String& name)
00060 {
00061   theName = name;
00062 }
00063 
00064 inline G4TransitionRadiationSurface*
00065 G4LogicalSurface::GetTransitionRadiationSurface() const
00066 {
00067   return theTransRadSurface;
00068 } 
00069 
00070 inline void
00071 G4LogicalSurface::SetTransitionRadiationSurface(G4TransitionRadiationSurface*
00072                                                 transRadSurf )
00073 {
00074   theTransRadSurface= transRadSurf;
00075 } 
00076 
00078   // Operators
00080 
00081 inline const G4LogicalSurface &
00082 G4LogicalSurface::operator=(const G4LogicalSurface &right)
00083 {
00084   if (&right == this)  { return *this; }
00085   theName = right.theName;
00086   theSurfaceProperty = right.theSurfaceProperty;
00087   theTransRadSurface = right.theTransRadSurface;
00088         
00089   return *this;
00090 }
00091 
00092 inline G4int
00093 G4LogicalSurface::operator==(const G4LogicalSurface &right) const
00094 {
00095   return (this == (G4LogicalSurface *) &right);
00096 }
00097 
00098 inline G4int
00099 G4LogicalSurface::operator!=(const G4LogicalSurface &right) const
00100 {
00101   return (this != (G4LogicalSurface *) &right);
00102 }

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