3DRadSpace 0.1.0Alpha
3DRadSpace is a free, simple to use, rapid application development game engine.
Loading...
Searching...
No Matches
Engine3DRadSpace.Reflection::IEvent Class Referenceabstract

Base interface for an Event. More...

#include <IEvent.hpp>

Inheritance diagram for Engine3DRadSpace.Reflection::IEvent:

Public Member Functions

virtual void Bind (std::function< Any(std::vector< Any >)> callback)=0
 Binds an typeless function to this event.
virtual Any operator() (std::vector< Any > &args)=0
 Calls the bound functions with the given arguments and returns the result of the last function called.
virtual void Reset () noexcept=0
 Unbinds the functions.
virtual ~IEvent ()=default

Protected Member Functions

 IEvent ()=default

Detailed Description

Base interface for an Event.

Constructor & Destructor Documentation

◆ IEvent()

Engine3DRadSpace.Reflection::IEvent::IEvent ( )
protecteddefault

◆ ~IEvent()

virtual Engine3DRadSpace.Reflection::IEvent::~IEvent ( )
virtualdefault

Member Function Documentation

◆ Bind()

virtual void Engine3DRadSpace.Reflection::IEvent::Bind ( std::function< Any(std::vector< Any >)> callback)
pure virtual

Binds an typeless function to this event.

Parameters
callbacktypeless callback function

Implemented in Engine3DRadSpace.Reflection::CallbackEvent, Engine3DRadSpace.Reflection::Event, and Engine3DRadSpace.Reflection::MultiEvent.

◆ operator()()

virtual Any Engine3DRadSpace.Reflection::IEvent::operator() ( std::vector< Any > & args)
pure virtual

Calls the bound functions with the given arguments and returns the result of the last function called.

Parameters
argsargument pack
Returns
the result of the bound function

Implemented in Engine3DRadSpace.Reflection::CallbackEvent, Engine3DRadSpace.Reflection::Event, and Engine3DRadSpace.Reflection::MultiEvent.

◆ Reset()

virtual void Engine3DRadSpace.Reflection::IEvent::Reset ( )
pure virtualnoexcept

The documentation for this class was generated from the following file:
  • E:/3DRadSpace/Engine3DRadSpace/Reflection/IEvent.hpp