SatCat5
satcat5::test::CountAlways Class Referencefinal

Detailed Description

Count calls to poll_always().

See also
poll::Always

Definition at line 131 of file sim_utils.h.

#include <sim_utils.h>

Inheritance diagram for satcat5::test::CountAlways:
[legend]
Collaboration diagram for satcat5::test::CountAlways:
[legend]

Public Member Functions

void poll_always () override
 Child class MUST override this method. More...
 
unsigned count () const
 Returns the current counter value.
 
void count_reset ()
 Reset the counter to zero.
 

Static Public Member Functions

static unsigned count_always ()
 Count active objects of this type.
 

Protected Member Functions

void poll_register ()
 Register this pollable object, called by the constructor.
 
void poll_unregister ()
 Unregister this pollable object, called by the destructor.
 

Protected Attributes

unsigned m_count
 

Private Attributes

satcat5::poll::Alwaysm_next
 

Member Function Documentation

◆ poll_always()

void satcat5::test::CountAlways::poll_always ( )
inlineoverridevirtual

Child class MUST override this method.

(This method should rarely be called directly.)

Implements satcat5::poll::Always.

Definition at line 135 of file sim_utils.h.


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