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

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

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

Public Member Functions

 CallIfAnd (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 AND" to two callif conditions.

Constructor & Destructor Documentation

◆ CallIfAnd()

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

Member Function Documentation

◆ getCallIf1()

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

◆ getCallIf2()

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

◆ operator()()

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