Geant4  10.03.p02
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
G4GeometryCell.hh File Reference
#include "globals.hh"
Include dependency graph for G4GeometryCell.hh:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  G4GeometryCell
 

Macros

#define G4GeometryCell_hh   G4GeometryCell_hh
 

Functions

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

Macro Definition Documentation

#define G4GeometryCell_hh   G4GeometryCell_hh

Definition at line 43 of file G4GeometryCell.hh.

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: