VR-Engage  2.2
Loading...
Searching...
No Matches
makRadarFx::Callback< Ret, Param0 > Class Template Referenceabstract

Detailed Description

template<typename Ret, typename Param0>
class makRadarFx::Callback< Ret, Param0 >
Template Parameters
RetReturn type of the callback function
Param0Type of the single parameter passed to the callback

This abstract base class defines the interface for all callback types used internally by the delegate system

#include <delegate.h>

Inheritance diagram for makRadarFx::Callback< Ret, Param0 >:
[legend]

Public Member Functions

virtual Ret invoke (Param0 param0)=0
 
virtual Callbackclone ()=0
 
virtual ~Callback ()
 
virtual bool operator== (const Callback &rhs)=0
 
virtual bool operator!= (const Callback &rhs)
 

Constructor & Destructor Documentation

◆ ~Callback()

template<typename Ret, typename Param0>
virtual makRadarFx::Callback< Ret, Param0 >::~Callback ( )
inlinevirtual

Virtual destructor for proper cleanup of derived classes.

Member Function Documentation

◆ invoke()

template<typename Ret, typename Param0>
virtual Ret makRadarFx::Callback< Ret, Param0 >::invoke ( Param0 param0)
pure virtual

Invokes the callback with the provided parameter.

Parameters
param0The parameter to pass to the callback
Returns
Result of the callback invocation

Pure virtual method that executes the actual callback code

Implemented in makRadarFx::MethodCallback< Ret, Param0, T, Method >, and makRadarFx::StaticFunctionCallback< Ret, Param0 >.

◆ clone()

template<typename Ret, typename Param0>
virtual Callback * makRadarFx::Callback< Ret, Param0 >::clone ( )
pure virtual

Creates a copy of this callback.

Returns
Pointer to a newly allocated copy of this callback

Pure virtual method that implements deep copying of callback objects

Implemented in makRadarFx::MethodCallback< Ret, Param0, T, Method >, and makRadarFx::StaticFunctionCallback< Ret, Param0 >.

◆ operator==()

template<typename Ret, typename Param0>
virtual bool makRadarFx::Callback< Ret, Param0 >::operator== ( const Callback< Ret, Param0 > & rhs)
pure virtual

Equality comparison operator.

Parameters
rhsThe right-hand side callback to compare with
Returns
True if the callbacks are functionally equivalent

Pure virtual method that implements equality comparison between callbacks

Implemented in makRadarFx::MethodCallback< Ret, Param0, T, Method >, and makRadarFx::StaticFunctionCallback< Ret, Param0 >.

◆ operator!=()

template<typename Ret, typename Param0>
virtual bool makRadarFx::Callback< Ret, Param0 >::operator!= ( const Callback< Ret, Param0 > & rhs)
inlinevirtual

Inequality comparison operator.

Parameters
rhsThe right-hand side callback to compare with
Returns
True if the callbacks are not functionally equivalent

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