stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmi::CallIfOr Class Referencefinal

Applies a "conditional OR" to two callif conditions. More...

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

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Applies a "conditional OR" to two callif conditions.

Constructor & Destructor Documentation

◆ CallIfOr()

stmi::CallIfOr::CallIfOr ( const shared_ptr< CallIf > &  refCallIf1,
const shared_ptr< CallIf > &  refCallIf2 
)
noexcept

Member Function Documentation

◆ getCallIf1()

const shared_ptr<CallIf>& stmi::CallIfOr::getCallIf1 ( ) const
inlinenoexcept

◆ getCallIf2()

const shared_ptr<CallIf>& stmi::CallIfOr::getCallIf2 ( ) const
inlinenoexcept

◆ operator()()

bool stmi::CallIfOr::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.