G4GeometryCell.cc File Reference

#include "G4GeometryCell.hh"

Go to the source code of this file.

Functions

G4bool operator== (const G4GeometryCell &k1, const G4GeometryCell &k2)
G4bool operator!= (const G4GeometryCell &k1, const G4GeometryCell &k2)


Function Documentation

G4bool operator!= ( const G4GeometryCell k1,
const G4GeometryCell k2 
)

Definition at line 87 of file G4GeometryCell.cc.

References G4GeometryCell::GetPhysicalVolume(), and G4GeometryCell::GetReplicaNumber().

00088 {
00089   G4bool unequal = false;
00090   if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
00091     unequal =  true;
00092   }
00093   else if (k1.GetReplicaNumber() != k2.GetReplicaNumber()) {
00094     unequal =  true;
00095   }
00096   return unequal;  
00097 }

G4bool operator== ( const G4GeometryCell k1,
const G4GeometryCell k2 
)

Definition at line 75 of file G4GeometryCell.cc.

References G4GeometryCell::GetPhysicalVolume(), and G4GeometryCell::GetReplicaNumber().

00076 {
00077   G4bool equal=true;
00078   if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
00079     equal = false;
00080   }
00081   else if (k1.GetReplicaNumber() != k2.GetReplicaNumber()) {
00082     equal = false;
00083   }
00084   return equal;
00085 }


Generated on Mon May 27 17:50:45 2013 for Geant4 by  doxygen 1.4.7