Geant4  10.03.p01
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
G4GeometryCell.cc File Reference
#include "G4GeometryCell.hh"
Include dependency graph for G4GeometryCell.cc:

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.

88 {
89  G4bool unequal = false;
90  if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
91  unequal = true;
92  }
93  else if (k1.GetReplicaNumber() != k2.GetReplicaNumber()) {
94  unequal = true;
95  }
96  return unequal;
97 }
bool G4bool
Definition: G4Types.hh:79
G4int GetReplicaNumber() const
const G4VPhysicalVolume & GetPhysicalVolume() const

Here is the call graph for this function:

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

Definition at line 75 of file G4GeometryCell.cc.

76 {
77  G4bool equal=true;
78  if (&(k1.GetPhysicalVolume()) != &(k2.GetPhysicalVolume())) {
79  equal = false;
80  }
81  else if (k1.GetReplicaNumber() != k2.GetReplicaNumber()) {
82  equal = false;
83  }
84  return equal;
85 }
bool G4bool
Definition: G4Types.hh:79
G4int GetReplicaNumber() const
const G4VPhysicalVolume & GetPhysicalVolume() const

Here is the call graph for this function: