9 #ifndef ThePEG_HoldFlag_H 10 #define ThePEG_HoldFlag_H 15 template <
typename T =
bool>
42 HoldFlag(T & newFlag,
const T & holdFlag,
const T & finalFlag)
107 HoldFlag(
bool & newFlag,
bool holdFlag,
bool finalFlag)
HoldFlag(T &newFlag, const T &holdFlag)
Constructor setting a temporary value for the given object.
T oldFlag
The value which will be restored when this is destroyed.
HoldFlag()
Default constructor is private and not implemented.
This is the main namespace within which all identifiers in ThePEG are declared.
HoldFlag(bool &newFlag, bool holdFlag=true)
Constructor setting the a temporary value for the bool variable.
HoldFlag(bool &newFlag, bool holdFlag, bool finalFlag)
Constructor setting the a temporary value for the bool variable.
bool oldFlag
The value which will be restored when this is destroyed.
bool & theFlag
The variable to be changed.
HoldFlag(T &newFlag, const T &holdFlag, const T &finalFlag)
Constructor setting the a temporary value for the given object.
HoldFlag objects are used to temporarily change the value of an object, restoring the original value ...
HoldFlag & operator=(const HoldFlag &)
Assignment is private and not implemented.
T & theFlag
The object to be changed.