Navigation
Unreal Engine C++ API Reference > Runtime > Core > GenericPlatform
Inheritance Hierarchy
- TFunctionRefBase
- TFunction
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMisc.h |
Include | #include "GenericPlatform/GenericPlatformMisc.h" |
Syntax
template<typename FuncType>
class TFunction : public UE::Core::Private::Function::TFunctionRefBase< UE::Core::Private::Function::TFunctionStorage< false >, FuncType >
Remarks
TFunction
See the class definition for intended usage.
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
TFunction
(
TYPE_OF_NULLPTR |
Default constructor. | |
![]() |
TFunction
(
FunctorType&& InFunc |
Constructor which binds a TFunction to any function object. | |
![]() |
|||
![]() |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() |
~TFunction () |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | Reset () |
Removes any bound callable from the TFunction, restoring it to the default 'empty' state. |
Operators
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
FORCEINLINE | Tests if the TFunction is callable. | |
![]() ![]() |
FORCEINLINEbool | operator!=
(
TYPE_OF_NULLPTR |
Nullptr inequality operator. |
![]() |
TFunction & | Move assignment operator. | |
![]() |
TFunction & | Copy assignment operator. | |
![]() ![]() |
FORCEINLINEbool | operator==
(
TYPE_OF_NULLPTR |
Nullptr equality operator. |
Typedefs
Name | Description |
---|---|
Super |