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

Applies a "NOT" to a callif condition. More...

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

Public Member Functions

 CallIfNot (const shared_ptr< CallIf > &refCallIf) noexcept
 Constructor. More...
 
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 > & getCallIf () const noexcept
 The negated callif. More...
 
- 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 "NOT" to a callif condition.

Constructor & Destructor Documentation

◆ CallIfNot()

stmi::CallIfNot::CallIfNot ( const shared_ptr< CallIf > &  refCallIf)
explicitnoexcept

Constructor.

Parameters
refCallIfThe negated callif. Cannot be null.

Member Function Documentation

◆ getCallIf()

const shared_ptr<CallIf>& stmi::CallIfNot::getCallIf ( ) const
inlinenoexcept

The negated callif.

◆ operator()()

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