|
SatCat5
|
Base object for counting specific callback or event types.
Provides accessors for the internal counter m_count. The child object inherits from the callback type of interest and manipulates the counter directly.
Definition at line 117 of file sim_utils.h.
#include <sim_utils.h>
Public Member Functions | |
| unsigned | count () const |
| Returns the current counter value. | |
| void | count_reset () |
| Reset the counter to zero. | |
Protected Member Functions | |
| CountHelper () | |
| Constructor is only accessible to the child object. | |
Protected Attributes | |
| unsigned | m_count |