engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
TOptional< OptionalType > 模板结构体 参考

When we have an optional value IsSet() returns true, and GetValue() is meaningful. 更多...

#include <Optional.h>

Public 成员函数

const OptionalType & Get (const OptionalType &DefaultValue) const
 
const OptionalType & GetValue () const
 
bool IsSet () const
 
 TOptional ()
 Construct an OptionalType with no value; i.e. 更多...
 
 TOptional (const OptionalType &InValue)
 Construct an OptionaType with a valid value.
 
 TOptional (const TOptional &InValue)
 Copy/Move construction
 

详细描述

template<typename OptionalType>
struct TOptional< OptionalType >

When we have an optional value IsSet() returns true, and GetValue() is meaningful.

Otherwise GetValue() is not meaningful.

示例
/github/workspace/Engine/Source/Runtime/UMG/Public/Components/Widget.h.

构造及析构函数说明

◆ TOptional()

template<typename OptionalType >
TOptional< OptionalType >::TOptional ( )
inline

Construct an OptionalType with no value; i.e.

unset

成员函数说明

◆ Get()

template<typename OptionalType >
const OptionalType & TOptional< OptionalType >::Get ( const OptionalType &  DefaultValue) const
inline
返回
The optional value when set; DefaultValue otherwise.

◆ GetValue()

template<typename OptionalType >
const OptionalType & TOptional< OptionalType >::GetValue ( ) const
inline
返回
The optional value; undefined when IsSet() returns false.

◆ IsSet()

template<typename OptionalType >
bool TOptional< OptionalType >::IsSet ( ) const
inline
返回
true when the value is meaningful; false if calling GetValue() is undefined.

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