![]() |
MCRO
C++23 utilities for Unreal Engine.
|
The extra layer of namespace InferDelegate is there for guarding common vocabulary (From) but still allowing the developer to use this namespace for a more terse syntax.
More...
Namespaces | |
| namespace | Detail |
Functions | |
| template<CFunctionPtr Function, typename... Captures> requires (!CFunction_IsMember<Function>) && (!CFunctorObject<Function>) | |
| TInferredDelegate< Function, Captures... > | From (Function func, Captures &&... captures) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. | |
| template<CFunctorObject Function> | |
| TDelegate< TFunction_Signature< Function > > | From (Function &&func) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. | |
| template<CSharedRef Object, CFunctorObject Function> | |
| TDelegate< TFunction_Signature< Function > > | From (Object const &self, Function &&func) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument. | |
| template<CSharedFromThis Object, CFunctorObject Function> | |
| TDelegate< TFunction_Signature< Function > > | From (Object *self, Function &&func) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument. | |
| template<CSharedFromThis Object, CFunctorObject Function> | |
| TDelegate< TFunction_Signature< Function > > | From (const Object *self, Function &&func) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument. | |
| template<CPlainClass Object, CFunctionPtr Function, typename... Captures> requires CFunction_IsMember<Function> | |
| TInferredDelegate< Function, Captures... > | From (Object *self, Function func, const Captures &... captures) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument. | |
| template<CPlainClass Object, CFunctionPtr Function, typename... Captures> requires CFunction_IsMember<Function> | |
| TInferredDelegate< Function, Captures... > | From (const Object *self, Function func, const Captures &... captures) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument. | |
| template<CSharedRef Object, CFunctionPtr Function, typename... Captures> requires CFunction_IsMember<Function> | |
| TInferredDelegate< Function, Captures... > | From (const Object &self, Function func, const Captures &... captures) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument. | |
| template<CUObject Object, CFunctionPtr Function, typename... Captures> requires CFunction_IsMember<Function> | |
| TInferredDelegate< Function, Captures... > | From (TObjectPtr< Object > self, Function func, const Captures &... captures) |
| Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument. | |
| template<typename... Args> | |
| TDelegate< void(Args...)> | From (TMulticastDelegate< void(Args...)> &multicast) |
| Broadcast a multicast delegate when the returned delegate is executed. | |
| template<typename Object , typename... Args> | |
| TDelegate< void(Args...)> | From (Object &&self, TMulticastDelegate< void(Args...)> &multicast) |
| Broadcast a multicast delegate when the returned delegate is executed with a binding object. | |
| template<CDynamicMulticastDelegate Dynamic> | |
| TNative< typename Dynamic::FDelegate > | From (Dynamic &multicast) |
| Broadcast a dynamic multicast delegate when the returned delegate is executed. | |
| template<typename Object , CDynamicMulticastDelegate Dynamic> | |
| TNative< typename Dynamic::FDelegate > | From (Object &&self, Dynamic &multicast) |
| Broadcast a dynamic multicast delegate when the returned delegate is executed. | |
The extra layer of namespace InferDelegate is there for guarding common vocabulary (From) but still allowing the developer to use this namespace for a more terse syntax.
| TInferredDelegate< Function, Captures... > Mcro::Delegates::InferDelegate::From | ( | const Object & | self, |
| Function | func, | ||
| const Captures &... | captures ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument.
This overload is equivalent to TDelegate::CreateSP (TSharedRef)
Definition at line 149 of file DelegateFrom.h.
| TDelegate< TFunction_Signature< Function > > Mcro::Delegates::InferDelegate::From | ( | const Object * | self, |
| Function && | func ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument.
This overload is equivalent to TDelegate::CreateSPLambda (TSharedFromThis const pointer)
Definition at line 107 of file DelegateFrom.h.
| TInferredDelegate< Function, Captures... > Mcro::Delegates::InferDelegate::From | ( | const Object * | self, |
| Function | func, | ||
| const Captures &... | captures ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument.
This overload is equivalent to TDelegate::CreateRaw (plain C++ const object pointer)
This overload is equivalent to TDelegate::CreateSP (TSharedFromThis const pointer)
This overload is equivalent to TDelegate::CreateUObject (UObject const pointer)
Definition at line 135 of file DelegateFrom.h.
| TNative< typename Dynamic::FDelegate > Mcro::Delegates::InferDelegate::From | ( | Dynamic & | multicast | ) |
Broadcast a dynamic multicast delegate when the returned delegate is executed.
| Dynamic | The type of the input dynamic multicast delegate |
| multicast | input dynamic multicast delegate |
Definition at line 297 of file DelegateFrom.h.
| TDelegate< TFunction_Signature< Function > > Mcro::Delegates::InferDelegate::From | ( | Function && | func | ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures.
This overload is equivalent to TDelegate::CreateLambda
Definition at line 68 of file DelegateFrom.h.
| TInferredDelegate< Function, Captures... > Mcro::Delegates::InferDelegate::From | ( | Function | func, |
| Captures &&... | captures ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures.
This overload is equivalent to TDelegate::CreateStatic
Definition at line 56 of file DelegateFrom.h.
| TNative< typename Dynamic::FDelegate > Mcro::Delegates::InferDelegate::From | ( | Object && | self, |
| Dynamic & | multicast ) |
Broadcast a dynamic multicast delegate when the returned delegate is executed.
| Dynamic | The type of the input dynamic multicast delegate |
| self | any type of binding object other From overloads accept |
| multicast | input dynamic multicast delegate |
Definition at line 317 of file DelegateFrom.h.
| TDelegate< void(Args...)> Mcro::Delegates::InferDelegate::From | ( | Object && | self, |
| TMulticastDelegate< void(Args...)> & | multicast ) |
Broadcast a multicast delegate when the returned delegate is executed with a binding object.
| self | any type of binding object other From overloads accept |
| multicast | input multicast delegate |
Definition at line 260 of file DelegateFrom.h.
| TDelegate< TFunction_Signature< Function > > Mcro::Delegates::InferDelegate::From | ( | Object * | self, |
| Function && | func ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument.
This overload is equivalent to TDelegate::CreateSPLambda (TSharedFromThis pointer)
This overload is equivalent to TDelegate::CreateWeakLambda (UObject)
Definition at line 94 of file DelegateFrom.h.
| TInferredDelegate< Function, Captures... > Mcro::Delegates::InferDelegate::From | ( | Object * | self, |
| Function | func, | ||
| const Captures &... | captures ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument.
This overload is equivalent to TDelegate::CreateRaw (plain C++ object pointer)
This overload is equivalent to TDelegate::CreateSP (TSharedFromThis pointer)
This overload is equivalent to TDelegate::CreateUObject (UObject pointer)
Definition at line 121 of file DelegateFrom.h.
| TDelegate< TFunction_Signature< Function > > Mcro::Delegates::InferDelegate::From | ( | Object const & | self, |
| Function && | func ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument.
This overload is equivalent to TDelegate::CreateSPLambda (TSharedRef)
Definition at line 81 of file DelegateFrom.h.
| TDelegate< void(Args...)> Mcro::Delegates::InferDelegate::From | ( | TMulticastDelegate< void(Args...)> & | multicast | ) |
Broadcast a multicast delegate when the returned delegate is executed.
| multicast | input multicast delegate |
Definition at line 244 of file DelegateFrom.h.
| TInferredDelegate< Function, Captures... > Mcro::Delegates::InferDelegate::From | ( | TObjectPtr< Object > | self, |
| Function | func, | ||
| const Captures &... | captures ) |
Instead of specifying manually a delegate type, infer it from the input function and the extra captures. Also infer the method of object binding based on the type traits of the object argument.
This overload is equivalent to TDelegate::CreateUObject (TObjectPtr)
Definition at line 232 of file DelegateFrom.h.