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

Numeric interface that specifies how to interact with a number in a specific unit. 更多...

#include <NumericTypeInterface.h>

+ 类 TNumericUnitTypeInterface< NumericType > 继承关系图:

Public 成员函数

virtual TOptional< NumericType > FromString (const FString &ValueString, const NumericType &InExistingValue) override
 Attempt to parse a numeral with our units from the specified string.
 
virtual bool IsCharacterValid (TCHAR InChar) const override
 Check whether the specified typed character is valid
 
void SetupFixedDisplay (const NumericType &InValue)
 Set up this interface to use a fixed display unit based on the specified value
 
 TNumericUnitTypeInterface (EUnit InUnits)
 Constructor
 
virtual FString ToString (const NumericType &Value) const override
 Convert this type to a string
 
- Public 成员函数 继承自 TDefaultNumericTypeInterface< NumericType >
virtual int32 GetMinFractionalDigits () const override
 Gets the minimum and maximum fractional digits.
 
virtual bool IsCharacterValid (TCHAR InChar) const override
 Check whether the typed character is valid
 
virtual void SetMinFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue) override
 Sets the minimum and maximum fractional digits - A minimum greater than 0 will always have that many trailing zeros
 
virtual FString ToString (const NumericType &Value) const override
 Convert the type to/from a string
 
virtual int32 GetMinFractionalDigits () const =0
 Gets the minimum and maximum fractional digits.
 
virtual bool IsCharacterValid (TCHAR InChar) const =0
 Check whether the typed character is valid
 
virtual void SetMinFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue)=0
 Sets the minimum and maximum fractional digits - A minimum greater than 0 will always have that many trailing zeros
 
virtual FString ToString (const NumericType &Value) const =0
 Convert the type to/from a string
 

Public 属性

TOptional< EUnit > FixedDisplayUnits
 Optional units that this type interface will be fixed on
 
const EUnit UnderlyingUnits
 The underlying units which the numeric type are specified in.
 
- Public 属性 继承自 TDefaultNumericTypeInterface< NumericType >
int32 MaxFractionalDigits = DefaultMaxFractionalDigits
 The current maximum fractional digits
 
int32 MinFractionalDigits = DefaultMinFractionalDigits
 The current minimum fractional digits
 

额外继承的成员函数

- 静态 Public 属性 继承自 TDefaultNumericTypeInterface< NumericType >
static const int32 DefaultMaxFractionalDigits = 6
 The default maximum fractional digits
 
static const int32 DefaultMinFractionalDigits = 1
 The default minimum fractional digits
 

详细描述

template<typename NumericType>
struct TNumericUnitTypeInterface< NumericType >

Numeric interface that specifies how to interact with a number in a specific unit.

Include NumericUnitTypeInterface.inl for symbol definitions.


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