G3RotTableEntry Class Reference

#include <G3RotTableEntry.hh>


Public Member Functions

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


Detailed Description

Definition at line 47 of file G3RotTableEntry.hh.


Constructor & Destructor Documentation

G3RotTableEntry::G3RotTableEntry ( G4int  id,
G4RotationMatrix matrix 
)

Definition at line 35 of file G3RotTableEntry.cc.

00036   : fID(id),
00037     fMatrix(matrix)
00038 {}

G3RotTableEntry::G3RotTableEntry ( const G3RotTableEntry right  ) 

Definition at line 40 of file G3RotTableEntry.cc.

00041   : fID(right.GetID()),
00042     fMatrix(right.GetMatrix())
00043 {}    

G3RotTableEntry::~G3RotTableEntry (  )  [virtual]

Definition at line 45 of file G3RotTableEntry.cc.

00046 {}


Member Function Documentation

G4int G3RotTableEntry::GetID (  )  const [inline]

Definition at line 73 of file G3RotTableEntry.hh.

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

00074 { return fID; }

G4RotationMatrix * G3RotTableEntry::GetMatrix (  )  const [inline]

Definition at line 76 of file G3RotTableEntry.hh.

Referenced by operator=().

00077 { return fMatrix; }

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

Definition at line 64 of file G3RotTableEntry.cc.

00065 { 
00066   if (*this == right) 
00067     return 0;
00068   else
00069     return 1;
00070 }

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

Definition at line 48 of file G3RotTableEntry.cc.

References GetID(), and GetMatrix().

00049 { 
00050   if (&right == this)  { return *this; }
00051   fID = right.GetID();
00052   fMatrix = right.GetMatrix();     
00053   return *this;
00054 }

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

Definition at line 56 of file G3RotTableEntry.cc.

References GetID().

00057 { 
00058   if (fID == right.GetID()) 
00059     return 1;
00060   else
00061     return 0;
00062 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:51:23 2013 for Geant4 by  doxygen 1.4.7