Geant4-11
Public Member Functions | Private Attributes
G3RotTableEntry Class Reference

#include <G3RotTableEntry.hh>

Public Member Functions

 G3RotTableEntry (const G3RotTableEntry &right)
 
 G3RotTableEntry (G4int id, G4RotationMatrix *matrix)
 
G4int GetID () const
 
G4RotationMatrixGetMatrix () const
 
G4bool operator!= (const G3RotTableEntry &right) const
 
G3RotTableEntryoperator= (const G3RotTableEntry &right)
 
G4bool operator== (const G3RotTableEntry &right) const
 
virtual ~G3RotTableEntry ()
 

Private Attributes

G4int fID
 
G4RotationMatrixfMatrix
 

Detailed Description

Definition at line 46 of file G3RotTableEntry.hh.

Constructor & Destructor Documentation

◆ G3RotTableEntry() [1/2]

G3RotTableEntry::G3RotTableEntry ( G4int  id,
G4RotationMatrix matrix 
)

Definition at line 34 of file G3RotTableEntry.cc.

35 : fID(id),
36 fMatrix(matrix)
37{}
G4RotationMatrix * fMatrix

◆ G3RotTableEntry() [2/2]

G3RotTableEntry::G3RotTableEntry ( const G3RotTableEntry right)

Definition at line 39 of file G3RotTableEntry.cc.

40 : fID(right.GetID()),
41 fMatrix(right.GetMatrix())
42{}
G4RotationMatrix * GetMatrix() const
G4int GetID() const

◆ ~G3RotTableEntry()

G3RotTableEntry::~G3RotTableEntry ( )
virtual

Definition at line 44 of file G3RotTableEntry.cc.

45{}

Member Function Documentation

◆ GetID()

G4int G3RotTableEntry::GetID ( ) const
inline

Definition at line 72 of file G3RotTableEntry.hh.

73{ return fID; }

References fID.

Referenced by G3RotTable::Get(), operator=(), and operator==().

◆ GetMatrix()

G4RotationMatrix * G3RotTableEntry::GetMatrix ( ) const
inline

Definition at line 75 of file G3RotTableEntry.hh.

76{ return fMatrix; }

References fMatrix.

Referenced by G3RotTable::Get(), and operator=().

◆ operator!=()

G4bool G3RotTableEntry::operator!= ( const G3RotTableEntry right) const

Definition at line 63 of file G3RotTableEntry.cc.

64{
65 if (*this == right)
66 return false;
67 else
68 return true;
69}

◆ operator=()

G3RotTableEntry & G3RotTableEntry::operator= ( const G3RotTableEntry right)

Definition at line 47 of file G3RotTableEntry.cc.

48{
49 if (&right == this) { return *this; }
50 fID = right.GetID();
51 fMatrix = right.GetMatrix();
52 return *this;
53}

References fID, fMatrix, GetID(), and GetMatrix().

◆ operator==()

G4bool G3RotTableEntry::operator== ( const G3RotTableEntry right) const

Definition at line 55 of file G3RotTableEntry.cc.

56{
57 if (fID == right.GetID())
58 return true;
59 else
60 return false;
61}

References fID, and GetID().

Field Documentation

◆ fID

G4int G3RotTableEntry::fID
private

Definition at line 66 of file G3RotTableEntry.hh.

Referenced by GetID(), operator=(), and operator==().

◆ fMatrix

G4RotationMatrix* G3RotTableEntry::fMatrix
private

Definition at line 67 of file G3RotTableEntry.hh.

Referenced by GetMatrix(), and operator=().


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