ThePEG::ThePEG::HoldFlag< bool > Class Template Reference

Specialization of HoldFlag for boolean variables. More...

#include <HoldFlag.h>

List of all members.

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


Detailed Description

template<>
class ThePEG::ThePEG::HoldFlag< bool >

Specialization of HoldFlag for boolean variables.

Definition at line 88 of file HoldFlag.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

ThePEG::ThePEG::HoldFlag< bool >::HoldFlag ( bool &  newFlag,
bool  holdFlag = true 
) [inline]

Constructor setting the a temporary value for the bool variable.

Parameters:
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.

Parameters:
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.


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

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