thepeg is hosted by Hepforge, IPPP Durham
ThePEG 2.3.0
ThePEG::TmpTransform< Ptr > Class Template Reference

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

TmpTransformoperator= (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.
 

Detailed Description

template<typename Ptr>
class ThePEG::TmpTransform< Ptr >

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.

Constructor & Destructor Documentation

◆ TmpTransform() [1/3]

template<typename Ptr >
ThePEG::TmpTransform< Ptr >::TmpTransform ( Ptr  p,
const LorentzRotation r 
)
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.

◆ ~TmpTransform()

template<typename Ptr >
ThePEG::TmpTransform< Ptr >::~TmpTransform ( )
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.

◆ TmpTransform() [2/3]

template<typename Ptr >
ThePEG::TmpTransform< Ptr >::TmpTransform ( )
private

The default constructor is private and must never be called.

In fact, it should not even be implemented.

◆ TmpTransform() [3/3]

template<typename Ptr >
ThePEG::TmpTransform< Ptr >::TmpTransform ( const TmpTransform< Ptr > &  )
private

The copy constructor is private and must never be called.

In fact, it should not even be implemented.

Member Function Documentation

◆ operator=()

template<typename Ptr >
TmpTransform & ThePEG::TmpTransform< Ptr >::operator= ( const TmpTransform< Ptr > &  )
privatedelete

The assignment operator is private and must never be called.

In fact, it should not even be implemented.

Member Data Documentation

◆ ptr

template<typename Ptr >
Ptr ThePEG::TmpTransform< Ptr >::ptr
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().

◆ rot

template<typename Ptr >
LorentzRotation ThePEG::TmpTransform< Ptr >::rot
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().


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