#include <HoldFlag.h>
Public Member Functions | |
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. | |
~HoldFlag () | |
Destructor. | |
Private Member Functions | |
HoldFlag () | |
Default constructor is private and not implemented. | |
HoldFlag (const HoldFlag &) | |
Copy constructor is private and not implemented. | |
HoldFlag & | operator= (const HoldFlag &) |
Assignment is private and not implemented. | |
Private Attributes | |
bool & | theFlag |
The variable to be changed. | |
bool | oldFlag |
The value which will be restored when this is destroyed. |
Definition at line 88 of file HoldFlag.h.
ThePEG::ThePEG::HoldFlag< bool >::~HoldFlag | ( | ) | [inline] |
Destructor.
Restores the corresponding variable to its original value.
Definition at line 114 of file HoldFlag.h.
References ThePEG::HoldFlag< T >::oldFlag, and ThePEG::HoldFlag< T >::theFlag.
ThePEG::ThePEG::HoldFlag< bool >::HoldFlag | ( | bool & | newFlag, | |
bool | holdFlag = true | |||
) | [inline] |
Constructor setting the a temporary value for the bool variable.
newFlag | the boolean variable which value is temporarily changed. | |
holdFlag | the temporary value for the newFlag variable. |
Definition at line 97 of file HoldFlag.h.
References ThePEG::HoldFlag< T >::theFlag.
ThePEG::ThePEG::HoldFlag< bool >::HoldFlag | ( | bool & | newFlag, | |
bool | holdFlag, | |||
bool | finalFlag | |||
) | [inline] |
Constructor setting the a temporary value for the bool variable.
newFlag | the boolean variable which value is temporarily changed. | |
holdFlag | the temporary value for the newFlag variable. | |
finalFlag | the newFlag variable will be given the value finalFlag when the HoldFlag object is destroyed. |
Definition at line 107 of file HoldFlag.h.
References ThePEG::HoldFlag< T >::theFlag.