#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 &) |
Assignment is private and not implemented. | |
Private Attributes | |
T & | theLevel |
A reference to the integer variable to be decremmmented when this object is destroyed. |
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.
Definition at line 27 of file Level.h.
ThePEG::Level< T >::Level | ( | T & | newLevel | ) | [inline] |
ThePEG::Level< T >::~Level | ( | ) | [inline] |
Destructor decrementing the associated integer variable.
Definition at line 36 of file Level.h.
References ThePEG::Level< T >::theLevel.
T& 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().