engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
FAnalyticsEventAttribute结构体 参考

Struct to hold key/value pairs that will be sent as attributes along with analytics events. 更多...

#include <AnalyticsEventAttribute.h>

Public 成员函数

 FAnalyticsEventAttribute ()
 Default ctor since we declare a custom ctor.
 
 FAnalyticsEventAttribute (const FAnalyticsEventAttribute &RHS)
 Reinstate the default copy ctor because that one still works fine.
 
 FAnalyticsEventAttribute (FAnalyticsEventAttribute &&RHS)
 Hack to allow copy ctor using an rvalue-ref. 更多...
 
FAnalyticsEventAttribute & operator= (const FAnalyticsEventAttribute &RHS)
 Hack to allow assignment. 更多...
 
FAnalyticsEventAttribute & operator= (FAnalyticsEventAttribute &&RHS)
 Hack to allow assignment. 更多...
 
template<typename ValueType >
void SetValue (ValueType &&InValue)
 Allow setting value for any type that supports LexToString
 
void SwitchToJsonFragment ()
 Legacy support for old RecordEventJson API. 更多...
 
FString ToString () const
 If you need the old AttrValue behavior (i.e. 更多...
 

详细描述

Struct to hold key/value pairs that will be sent as attributes along with analytics events.

All values are actually strings, but we provide a convenient constructor that relies on ToStringForAnalytics() to convert common types.

构造及析构函数说明

◆ FAnalyticsEventAttribute()

FAnalyticsEventAttribute::FAnalyticsEventAttribute ( FAnalyticsEventAttribute &&  RHS)
inline

Hack to allow copy ctor using an rvalue-ref.

This class only "sort of" acts like an immutable class because the const members prevents assignment, which was not intended when this code was changed.

成员函数说明

◆ operator=() [1/2]

FAnalyticsEventAttribute & FAnalyticsEventAttribute::operator= ( const FAnalyticsEventAttribute &  RHS)
inline

Hack to allow assignment.

This class only "sort of" acts like an immutable class because the const members prevents assignment, which was not intended when this code was changed.

◆ operator=() [2/2]

FAnalyticsEventAttribute & FAnalyticsEventAttribute::operator= ( FAnalyticsEventAttribute &&  RHS)
inline

Hack to allow assignment.

This class only "sort of" acts like an immutable class because the const members prevents assignment, which was not intended when this code was changed.

◆ SwitchToJsonFragment()

void FAnalyticsEventAttribute::SwitchToJsonFragment ( )
inline

Legacy support for old RecordEventJson API.

Don't call this directly.

◆ ToString()

FString FAnalyticsEventAttribute::ToString ( ) const
inline

If you need the old AttrValue behavior (i.e.

stringify everything), call this function instead.


该结构体的文档由以下文件生成: