Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Data Structures | Macros | Functions
G4GeometryCell.hh File Reference
#include "globals.hh"

Go to the source code of this file.

Data Structures

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.

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

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
G4bool operator== ( const G4GeometryCell k1,
const G4GeometryCell k2 
)

Definition at line 75 of file G4GeometryCell.cc.

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

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