thepeg is hosted by Hepforge, IPPP Durham
ThePEG  2.2.1
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. More...
 
 TmpTransform ()
 The default constructor is private and must never be called. More...
 
 TmpTransform (const TmpTransform &)
 The copy constructor is private and must never be called. More...
 

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/2]

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() [2/2]

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.


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