SatCat5
satcat5::test::CountHelper Class Reference

Detailed Description

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>

Inheritance diagram for satcat5::test::CountHelper:
[legend]

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
 

The documentation for this class was generated from the following file: