Brunot
Loading...
Searching...
No Matches
KeyPressedMessage Struct Reference

#include <KeyPressedMessage.h>

Inheritance diagram for KeyPressedMessage:
[legend]
Collaboration diagram for KeyPressedMessage:
[legend]

Public Member Functions

 KeyPressedMessage (int inputtingDeviceID)
 KeyPressedMessage (const KeyPressedMessage &other)=default
 KeyPressedMessage (KeyPressedMessage &&other) noexcept=default
auto operator= (const KeyPressedMessage &other) -> KeyPressedMessage &=default
auto operator= (KeyPressedMessage &&other) noexcept -> KeyPressedMessage &=default
 ~KeyPressedMessage () override=default
auto clone () const -> std::unique_ptr< Message > override
auto getInputtingDeviceID () const -> int
Public Member Functions inherited from Message
 Message ()=default
 Message (const Message &other)=default
 Message (Message &&other) noexcept=default
auto operator= (const Message &other) -> Message &=default
auto operator= (Message &&other) noexcept -> Message &=default
virtual ~Message ()=default
virtual auto load (const Stream &stream) -> void
virtual auto save (Stream &stream) const -> void
template<typename T>
auto convertMessageTo () const -> const T *
 A function that converts messages to the specific type so you don't need to call static_cast yourself
Mainly exists for cleaner code.

Private Attributes

int inputtingDeviceID = -3

Constructor & Destructor Documentation

◆ KeyPressedMessage() [1/3]

KeyPressedMessage::KeyPressedMessage ( int inputtingDeviceID)
Here is the caller graph for this function:

◆ KeyPressedMessage() [2/3]

KeyPressedMessage::KeyPressedMessage ( const KeyPressedMessage & other)
default
Here is the call graph for this function:

◆ KeyPressedMessage() [3/3]

KeyPressedMessage::KeyPressedMessage ( KeyPressedMessage && other)
defaultnoexcept
Here is the call graph for this function:

◆ ~KeyPressedMessage()

KeyPressedMessage::~KeyPressedMessage ( )
overridedefault

Member Function Documentation

◆ clone()

auto KeyPressedMessage::clone ( ) const->std::unique_ptr< Message >
inlineoverridevirtual

Reimplemented from Message.

Here is the call graph for this function:

◆ getInputtingDeviceID()

auto KeyPressedMessage::getInputtingDeviceID ( ) const->int
Here is the caller graph for this function:

◆ operator=() [1/2]

auto KeyPressedMessage::operator= ( const KeyPressedMessage & other) ->KeyPressedMessage &=default
default
Here is the call graph for this function:

◆ operator=() [2/2]

auto KeyPressedMessage::operator= ( KeyPressedMessage && other) ->KeyPressedMessage &=default
defaultnoexcept
Here is the call graph for this function:

Member Data Documentation

◆ inputtingDeviceID

int KeyPressedMessage::inputtingDeviceID = -3
private

The documentation for this struct was generated from the following files: