Geant4.10
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions
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.

36  : fID(id),
37  fMatrix(matrix)
38 {}
G3RotTableEntry::G3RotTableEntry ( const G3RotTableEntry right)

Definition at line 40 of file G3RotTableEntry.cc.

41  : fID(right.GetID()),
42  fMatrix(right.GetMatrix())
43 {}
G4RotationMatrix * GetMatrix() const
G4int GetID() const
G3RotTableEntry::~G3RotTableEntry ( )
virtual

Definition at line 45 of file G3RotTableEntry.cc.

46 {}

Member Function Documentation

G4int G3RotTableEntry::GetID ( ) const
inline

Definition at line 73 of file G3RotTableEntry.hh.

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

74 { return fID; }
G4RotationMatrix * G3RotTableEntry::GetMatrix ( ) const
inline

Definition at line 76 of file G3RotTableEntry.hh.

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

77 { return fMatrix; }
G4int G3RotTableEntry::operator!= ( const G3RotTableEntry right) const

Definition at line 64 of file G3RotTableEntry.cc.

65 {
66  if (*this == right)
67  return 0;
68  else
69  return 1;
70 }
G3RotTableEntry & G3RotTableEntry::operator= ( const G3RotTableEntry right)

Definition at line 48 of file G3RotTableEntry.cc.

References GetID(), and GetMatrix().

49 {
50  if (&right == this) { return *this; }
51  fID = right.GetID();
52  fMatrix = right.GetMatrix();
53  return *this;
54 }
G4RotationMatrix * GetMatrix() const
G4int GetID() const
G4int G3RotTableEntry::operator== ( const G3RotTableEntry right) const

Definition at line 56 of file G3RotTableEntry.cc.

References GetID().

57 {
58  if (fID == right.GetID())
59  return 1;
60  else
61  return 0;
62 }
G4int GetID() const

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