Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
Attribute.h File Reference
+ Include dependency graph for Attribute.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TAttribute< ObjectType >
 

Functions

template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< TMakeAttributeRaw (SourceType *InObject, T(SourceTypeOrBase::*InMethod)(PayloadTypes...), typename TDecay< PayloadTypes >::Type... InputPayload)
 
template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< TMakeAttributeRaw (const SourceType *InObject, T(SourceTypeOrBase::*InMethod)(PayloadTypes...) const, typename TDecay< PayloadTypes >::Type... InputPayload)
 
template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< TMakeAttributeSP (SourceType *InObject, T(SourceTypeOrBase::*InMethod)(PayloadTypes...), typename TDecay< PayloadTypes >::Type... InputPayload)
 
template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< TMakeAttributeSP (const SourceType *InObject, T(SourceTypeOrBase::*InMethod)(PayloadTypes...) const, typename TDecay< PayloadTypes >::Type... InputPayload)
 
template<typename LambdaType , typename... PayloadTypes>
UE_NODISCARD decltype(autoMakeAttributeLambda (LambdaType &&InCallable, PayloadTypes &&... InputPayload)
 

Function Documentation

◆ MakeAttributeLambda()

template<typename LambdaType , typename... PayloadTypes>
UE_NODISCARD decltype(auto) MakeAttributeLambda ( LambdaType && InCallable,
PayloadTypes &&... InputPayload )

Helper function for creating TAttributes from a lambda TAttribute<float> FloatAttribute = MakeAttributeLambda([]{ return 10.f; });

Definition at line 507 of file Attribute.h.

◆ MakeAttributeRaw() [1/2]

template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< T > MakeAttributeRaw ( const SourceType * InObject,
T(SourceTypeOrBase::*)(PayloadTypes...) const InMethod,
typename TDecay< PayloadTypes >::Type... InputPayload )

Helper function for creating TAttributes from a const member function pointer, accessed through a raw pointer

Definition at line 478 of file Attribute.h.

◆ MakeAttributeRaw() [2/2]

template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< T > MakeAttributeRaw ( SourceType * InObject,
T(SourceTypeOrBase::*)(PayloadTypes...) InMethod,
typename TDecay< PayloadTypes >::Type... InputPayload )

Helper function for creating TAttributes from a non-const member function pointer, accessed through a raw pointer

Definition at line 469 of file Attribute.h.

◆ MakeAttributeSP() [1/2]

template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< T > MakeAttributeSP ( const SourceType * InObject,
T(SourceTypeOrBase::*)(PayloadTypes...) const InMethod,
typename TDecay< PayloadTypes >::Type... InputPayload )

Helper function for creating TAttributes from a const member function pointer, accessed through a weak pointer to the shared object

Definition at line 497 of file Attribute.h.

◆ MakeAttributeSP() [2/2]

template<typename T , typename SourceType , typename SourceTypeOrBase , typename... PayloadTypes>
UE_NODISCARD FORCEINLINE TAttribute< T > MakeAttributeSP ( SourceType * InObject,
T(SourceTypeOrBase::*)(PayloadTypes...) InMethod,
typename TDecay< PayloadTypes >::Type... InputPayload )

Helper function for creating TAttributes from a non-const member function pointer, accessed through a weak pointer to the shared object

Definition at line 488 of file Attribute.h.