![]() |
ATLAS Offline Software
|
A simple class to retrofit overflow protection into the existing code. More...
#include <SubDetHitStatistics.h>
Public Member Functions | |
| OverflowControlledRef (unsigned char &c) | |
| constructor from a ref to the storage we control More... | |
| operator unsigned int () const | |
| conversion to a number More... | |
| unsigned int | value () const |
| OverflowControlledRef | operator= (unsigned int rhs) |
| protected assignment More... | |
| OverflowControlledRef | operator++ () |
| protected (prefix) increment More... | |
| OverflowControlledRef | operator+= (unsigned int rhs) |
| protected add-to More... | |
Static Public Attributes | |
| static const unsigned int | OVERFLOW_VALUE = 255 |
Private Attributes | |
| unsigned char * | m_p |
A simple class to retrofit overflow protection into the existing code.
The intention is not to provide a full-blown "tiny int" facility but rather a class that is sufficiently functional to compile existing code in other packages without modifications.
Definition at line 43 of file SubDetHitStatistics.h.
|
inline |
constructor from a ref to the storage we control
Definition at line 49 of file SubDetHitStatistics.h.
|
inline |
|
inline |
protected (prefix) increment
Definition at line 59 of file SubDetHitStatistics.h.
|
inline |
|
inline |
|
inline |
Definition at line 53 of file SubDetHitStatistics.h.
|
private |
Definition at line 44 of file SubDetHitStatistics.h.
|
static |
Definition at line 46 of file SubDetHitStatistics.h.
1.8.18