UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TAnalyticsProperty< T > Class Template Reference

#include <IAnalyticsPropertyStore.h>

Public Member Functions

 TAnalyticsProperty (const TCHAR *InKey)
 
IAnalyticsPropertyStore::EStatusCode Set (IAnalyticsPropertyStore *Store, const T &Value) const
 
IAnalyticsPropertyStore::EStatusCode Set (IAnalyticsPropertyStore *Store, const T &Value, const TFunction< bool(const T *, const T &)> &ConditionFn) const
 
IAnalyticsPropertyStore::EStatusCode Get (IAnalyticsPropertyStore *Store, T &OutValue) const
 
IAnalyticsPropertyStore::EStatusCode Update (IAnalyticsPropertyStore *Store, const TFunction< bool(T &InOutValue)> &UpdateFn) const
 

Public Attributes

const FString Key
 

Detailed Description

template<typename T>
class TAnalyticsProperty< T >

Utility class to remember the key value type and let the compiler implicitly convert type or fail if such conversion is not possible. Usage:

static const TAnalyticsProperty<uint32> MyProperty = TEXT("MyProperty");
MyProperty.SetValue(MyStore, 10); // Ok.
MyProperty.SetValue(MyStore, TEXT("No")); // Compile error, not convertible.
#define TEXT(x)
Definition Platform.h:1272
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition IAnalyticsPropertyStore.h:14
Definition IAnalyticsPropertyStore.h:159

Constructor & Destructor Documentation

◆ TAnalyticsProperty()

template<typename T >
TAnalyticsProperty< T >::TAnalyticsProperty ( const TCHAR InKey)
inline

Member Function Documentation

◆ Get()

template<typename T >
IAnalyticsPropertyStore::EStatusCode TAnalyticsProperty< T >::Get ( IAnalyticsPropertyStore Store,
T &  OutValue 
) const
inline

◆ Set() [1/2]

template<typename T >
IAnalyticsPropertyStore::EStatusCode TAnalyticsProperty< T >::Set ( IAnalyticsPropertyStore Store,
const T &  Value 
) const
inline

◆ Set() [2/2]

template<typename T >
IAnalyticsPropertyStore::EStatusCode TAnalyticsProperty< T >::Set ( IAnalyticsPropertyStore Store,
const T &  Value,
const TFunction< bool(const T *, const T &)> &  ConditionFn 
) const
inline

◆ Update()

template<typename T >
IAnalyticsPropertyStore::EStatusCode TAnalyticsProperty< T >::Update ( IAnalyticsPropertyStore Store,
const TFunction< bool(T &InOutValue)> &  UpdateFn 
) const
inline

Member Data Documentation

◆ Key

template<typename T >
const FString TAnalyticsProperty< T >::Key

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