ThePEG 2.3.0
|
This is a wrapper class to be used to temporarily make a Lorentz transform of an object. More...
#include <TmpTransform.h>
Public Member Functions | |
TmpTransform (Ptr p, const LorentzRotation &r) | |
The contructor will call the transform(const LorentzRotation &) of an object pointed to by p with r as argument. | |
~TmpTransform () | |
The destructor performs the inverse of the transformation done in the constructor. | |
Private Member Functions | |
TmpTransform & | operator= (const TmpTransform &)=delete |
The assignment operator is private and must never be called. | |
TmpTransform () | |
The default constructor is private and must never be called. | |
TmpTransform (const TmpTransform &) | |
The copy constructor is private and must never be called. | |
Private Attributes | |
Ptr | ptr |
A pointer to the object being transformed. | |
LorentzRotation | rot |
The rotation performed in the constructor. | |
This is a wrapper class to be used to temporarily make a Lorentz transform of an object.
When created a pointer to an object and a LorentzRotation is provided, and the objects transform(const LorentzRotation &) function is called. When the destructed the inverse tansformation is performed. In this way one can make sure that the inverse transformation is performed even if the function where the TmpTransform is created returns or throws an exception.
Definition at line 29 of file TmpTransform.h.
|
inline |
The contructor will call the transform(const LorentzRotation &) of an object pointed to by p with r as argument.
Definition at line 38 of file TmpTransform.h.
References ThePEG::TmpTransform< Ptr >::ptr, and ThePEG::TmpTransform< Ptr >::rot.
|
inline |
The destructor performs the inverse of the transformation done in the constructor.
Definition at line 47 of file TmpTransform.h.
References ThePEG::LorentzRotation::invert(), ThePEG::TmpTransform< Ptr >::ptr, and ThePEG::TmpTransform< Ptr >::rot.
|
private |
The default constructor is private and must never be called.
In fact, it should not even be implemented.
|
private |
The copy constructor is private and must never be called.
In fact, it should not even be implemented.
|
privatedelete |
The assignment operator is private and must never be called.
In fact, it should not even be implemented.
|
private |
A pointer to the object being transformed.
Definition at line 58 of file TmpTransform.h.
Referenced by ThePEG::TmpTransform< Ptr >::TmpTransform(), and ThePEG::TmpTransform< Ptr >::~TmpTransform().
|
private |
The rotation performed in the constructor.
Definition at line 63 of file TmpTransform.h.
Referenced by ThePEG::TmpTransform< Ptr >::TmpTransform(), and ThePEG::TmpTransform< Ptr >::~TmpTransform().