|
Mechanics of Defect Evolution Library
|
A class template that implements a counter of the number of instances of Derived type that are created at runtime. It also provides a unique increasing static identifier (sID) for each instance. More...
#include <StaticID.h>
Public Member Functions | |
| StaticID () | |
| StaticID (const StaticID &) | |
Static Public Member Functions | |
| static size_t | nextID () |
| static size_t & | get_count () |
| static void | set_count (const size_t &newCount) |
| static void | force_count (const size_t &newCount) |
| static void | set_increment (const size_t &newIncrement) |
Public Attributes | |
| const size_t | sID |
| The static ID of this. | |
A class template that implements a counter of the number of instances of Derived type that are created at runtime. It also provides a unique increasing static identifier (sID) for each instance.
Example:
Output:
Definition at line 28 of file StaticID.h.
|
inline |
Definition at line 43 of file StaticID.h.
|
inline |
Definition at line 49 of file StaticID.h.
|
inlinestatic |
Definition at line 79 of file StaticID.h.
|
inlinestatic |
Definition at line 60 of file StaticID.h.
|
inlinestatic |
Definition at line 55 of file StaticID.h.
|
inlinestatic |
Definition at line 65 of file StaticID.h.
|
inlinestatic |
Definition at line 85 of file StaticID.h.
| const size_t model::StaticID< Derived >::sID |
The static ID of this.
Definition at line 41 of file StaticID.h.