Engine
Frameworkcreatedbymeusableforthecreationofsimplegames.CurrentlysupportsOpenGL(Verysimple)andVulkan.
Public Member Functions | List of all members
Sharp::EventHandlerImplForMemberFunction< void, U > Class Template Reference

#include <Event.hpp>

Inheritance diagram for Sharp::EventHandlerImplForMemberFunction< void, U >:
Sharp::EventHandlerImpl< void > Sharp::EventHandlerImplBase< void >

Public Member Functions

 EventHandlerImplForMemberFunction (void(U::*memberFunctionToCall)(), U *thisPtr)
 
virtual void OnEvent ()
 
virtual bool IsBindedToSameFunctionAs (EventHandlerImplBase< void > *pHandler2)
 
- Public Member Functions inherited from Sharp::EventHandlerImplBase< void >
 EventHandlerImplBase ()
 
virtual ~EventHandlerImplBase ()
 
bool IsSametype (EventHandlerImplBase< void > *pHandler2)
 

Detailed Description

template<typename U>
class Sharp::EventHandlerImplForMemberFunction< void, U >

A helper that handles void member function calls

Definition at line 244 of file Event.hpp.

Constructor & Destructor Documentation

template<typename U >
Sharp::EventHandlerImplForMemberFunction< void, U >::EventHandlerImplForMemberFunction ( void(U::*)()  memberFunctionToCall,
U *  thisPtr 
)
inline

Saves the passed function for use later when an event arrive

Definition at line 248 of file Event.hpp.

Member Function Documentation

template<typename U >
virtual bool Sharp::EventHandlerImplForMemberFunction< void, U >::IsBindedToSameFunctionAs ( EventHandlerImplBase< void > *  pHandler2)
inlinevirtual

verify if this handler will eventually call the same function as the passed handler.

Implements Sharp::EventHandlerImplBase< void >.

Definition at line 264 of file Event.hpp.

template<typename U >
virtual void Sharp::EventHandlerImplForMemberFunction< void, U >::OnEvent ( )
inlinevirtual

will be called eventually when an Event is raised

Implements Sharp::EventHandlerImpl< void >.

Definition at line 255 of file Event.hpp.


The documentation for this class was generated from the following file: