stmm-input-doc  0.17.0
Public Member Functions | Static Public Member Functions | List of all members
stmi::CallIfTrue Class Referencefinal

Always call back listener. More...

Inheritance diagram for stmi::CallIfTrue:
Inheritance graph
[legend]

Public Member Functions

bool operator() (const shared_ptr< const Event > &) const noexcept override
 Function that determines whether an event should be sent to a listener. More...
 
- Public Member Functions inherited from stmi::CallIf
virtual ~CallIf () noexcept=default
 

Static Public Member Functions

static const shared_ptr< CallIfTrue > & getInstance () noexcept
 The singleton CallIfTrue instance. More...
 

Additional Inherited Members

- Protected Member Functions inherited from stmi::CallIf
 CallIf () noexcept
 

Detailed Description

Always call back listener.

Member Function Documentation

◆ getInstance()

static const shared_ptr<CallIfTrue>& stmi::CallIfTrue::getInstance ( )
inlinestaticnoexcept

The singleton CallIfTrue instance.

Returns
The only instance. Cannot be null.

◆ operator()()

bool stmi::CallIfTrue::operator() ( const shared_ptr< const Event > &  refEvent) const
inlineoverridevirtualnoexcept

Function that determines whether an event should be sent to a listener.

Parameters
refEventThe event. Cannot be null.
Returns
true if the event is to be sent to the listener, false otherwise.

Implements stmi::CallIf.