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>

List of all members.

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 &)
 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

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.

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

template<typename Ptr>
TmpTransform& ThePEG::TmpTransform< Ptr >::operator= ( const TmpTransform< Ptr > &   )  [private]

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:

Generated on Thu Apr 29 12:43:02 2010 for ThePEG by  doxygen 1.5.5