Level is used to increment temporarily a given integer variable. More...
#include <Level.h>
Public Member Functions | |
Level (T &newLevel) | |
Constructor taking an integer variable which is incremented. | |
~Level () | |
Destructor decrementing the associated integer variable. | |
Private Member Functions | |
Level () | |
Default constructor is private and not implemented. | |
Level (const Level &) | |
Copy constructor is private and not implemented. | |
Level & | operator= (const Level &)=delete |
Assignment is private and not implemented. | |
Private Attributes | |
T & | theLevel |
A reference to the integer variable to be decremmmented when this object is destroyed. | |
Level is used to increment temporarily a given integer variable.
Everytime a Level object is created with a given integer variable as argument, the variable will be incremented. When the corresponding Level object is destroyed, the associated integer variable is decremented again.
|
inline |
|
inline |
Destructor decrementing the associated integer variable.
Definition at line 36 of file Level.h.
References ThePEG::Level< T >::theLevel.
|
private |
A reference to the integer variable to be decremmmented when this object is destroyed.
Definition at line 42 of file Level.h.
Referenced by ThePEG::Level< T >::~Level().