Geant4-11
Public Member Functions | Data Fields
G4GMocrenFileSceneHandler::Index3D Class Reference

Public Member Functions

 Index3D ()
 
 Index3D (const Index3D &_index3D)
 
 Index3D (G4int _x, G4int _y, G4int _z)
 
G4bool operator< (const Index3D &_right) const
 
G4bool operator== (const Index3D &_right) const
 
 ~Index3D ()
 

Data Fields

G4int x
 
G4int y
 
G4int z
 

Detailed Description

Definition at line 161 of file G4GMocrenFileSceneHandler.hh.

Constructor & Destructor Documentation

◆ Index3D() [1/3]

G4GMocrenFileSceneHandler::Index3D::Index3D ( )

◆ Index3D() [2/3]

G4GMocrenFileSceneHandler::Index3D::Index3D ( const Index3D _index3D)

Definition at line 2102 of file G4GMocrenFileSceneHandler.cc.

2103 : x(_index3D.x), y(_index3D.y), z(_index3D.z) {
2104 //: x(_index3D.X()),
2105 //y(_index3D.Y()),
2106 //z(_index3D.Z()) {
2107 // : x(static_cast<Index3D>(_index3D).x),
2108 // y(static_cast<Index3D>(_index3D).y),
2109 // z(static_cast<Index3D>(_index3D).z) {
2110 ;
2111}

◆ Index3D() [3/3]

G4GMocrenFileSceneHandler::Index3D::Index3D ( G4int  _x,
G4int  _y,
G4int  _z 
)

Definition at line 2113 of file G4GMocrenFileSceneHandler.cc.

2114 : x(_x), y(_y), z(_z) {
2115 ;
2116}

◆ ~Index3D()

G4GMocrenFileSceneHandler::Index3D::~Index3D ( )
inline

Definition at line 168 of file G4GMocrenFileSceneHandler.hh.

168{;}

Member Function Documentation

◆ operator<()

G4bool G4GMocrenFileSceneHandler::Index3D::operator< ( const Index3D _right) const

Definition at line 2117 of file G4GMocrenFileSceneHandler.cc.

2117 {
2118 if(z < static_cast<Index3D>(_right).z) {
2119 return true;
2120 } else if(z == _right.z) {
2121 if(y < static_cast<Index3D>(_right).y) return true;
2122 else if(y == _right.y)
2123 if(x < static_cast<Index3D>(_right).x) return true;
2124 }
2125 return false;
2126}

References y, and z.

◆ operator==()

G4bool G4GMocrenFileSceneHandler::Index3D::operator== ( const Index3D _right) const

Definition at line 2127 of file G4GMocrenFileSceneHandler.cc.

2127 {
2128 if(z == _right.z && y == _right.y && x == _right.x) return true;
2129 return false;
2130}

References x, y, and z.

Field Documentation

◆ x

G4int G4GMocrenFileSceneHandler::Index3D::x

◆ y

G4int G4GMocrenFileSceneHandler::Index3D::y

◆ z

G4int G4GMocrenFileSceneHandler::Index3D::z

The documentation for this class was generated from the following files: