SatCat5
satcat5::poll::OnDemandHelper Class Referencefinal

Detailed Description

Global helper object that services all OnDemand objects.

There is a single global instance of the OnDemandHelper class. It is the object that issues callbacks to all OnDemand objects that have requested attention.

This class inherits from Always, meaning that it is polled every time the user calls service or service_all, which causes it to check the global queue of OnDemand requests.

Definition at line 64 of file polling.cc.

Inheritance diagram for satcat5::poll::OnDemandHelper:
[legend]
Collaboration diagram for satcat5::poll::OnDemandHelper:
[legend]

Public Member Functions

unsigned count () const
 
bool pre_test_reset ()
 
void remove (poll::OnDemand *ptr)
 

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.
 

Private Member Functions

void list_start ()
 
poll::OnDemandlist_pop ()
 
void poll_always () override
 Child class MUST override this method. More...
 

Private Attributes

poll::OnDemandm_item
 
satcat5::poll::Alwaysm_next
 

Member Function Documentation

◆ poll_always()

void satcat5::poll::OnDemandHelper::poll_always ( )
inlineoverrideprivatevirtual

Child class MUST override this method.

(This method should rarely be called directly.)

Implements satcat5::poll::Always.

Definition at line 121 of file polling.cc.


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