Base delegate type.
More...
#include <delegates.hpp>
|
| | ITypedDelegate (const bool &isMemberDelegate) noexcept |
| | Constructor accepting a boolean. More...
|
| |
| virtual bool | callsMethod (const StaticMethodPointerType methodPointer) const noexcept=0 |
| | Returns whether or not this delegate calls the given static method. More...
|
| |
| template<typename className > |
| bool | callsMethod (const MemberDelegateFuncPtr< className > methodPointer) const noexcept |
| | Returns whether or not this delegate calls the given class member method address. More...
|
| |
| virtual bool | hasThisPointer (const void *thisPointer) const noexcept=0 |
| | Returns whether or not this delegate calls against the given this pointer. More...
|
| |
| virtual returnType | invoke (parameters...params)=0 |
| | Invoke the delegate with the given arguments and return a value, if any. More...
|
| |
|
|
const bool | mIsMemberDelegate |
| | A boolean representing whether or not this delegate is a member delegate.
|
| |
| | IDelegate (const bool &isMemberDelegate) noexcept |
| | Constructor accepting a boolean. More...
|
| |
template<typename returnType, typename... parameters>
class EasyDelegate::ITypedDelegate< returnType, parameters >
Base delegate type.
Inheritance from this type allows for both the StaticDelegate and MemberDelegate instances to be used in the DelegateSet type as it specifies a common interface for the two types to be sharing.
template<typename returnType, typename... parameters>
Constructor accepting a boolean.
- Parameters
-
| isMemberDelegate | A boolean representing whether or not this delegate is a member delegate. |
template<typename returnType, typename... parameters>
Returns whether or not this delegate calls the given static method.
- Parameters
-
| methodPointer | A pointer to the static method to be checked against. |
- Returns
- A boolean representing whether or not this delegate calls the given proc address.
- Note
- Always returns false for MemeberDelegate types because a MemberDelegate cannot invoke static functions.
Implemented in EasyDelegate::StaticDelegate< returnType, parameters >.
template<typename returnType, typename... parameters>
template<typename className >
Returns whether or not this delegate calls the given class member method address.
- Parameters
-
| methodPointer | A pointer to a member function to be checked against. |
- Returns
- A boolean representing whether or not this delegate calls the given class member method address.
This is not declared as a wholly virtual function because a templated function cannot be virtual.
- Note
- Always returns false for StaticDelegate types because a StaticDelegate cannot call member functions.
template<typename returnType, typename... parameters>
template<typename returnType, typename... parameters>
The documentation for this class was generated from the following file: