UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
TDefaultNumericTypeInterface< NumericType > Struct Template Reference

#include <NumericTypeInterface.h>

+ Inheritance diagram for TDefaultNumericTypeInterface< NumericType >:

Public Member Functions

virtual int32 GetMinFractionalDigits () const override
 
virtual int32 GetMaxFractionalDigits () const override
 
virtual bool GetIndicateNearlyInteger () const override
 
virtual void SetMinFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue) override
 
virtual void SetMaxFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue) override
 
virtual void SetIndicateNearlyInteger (const TAttribute< TOptional< bool > > &NewValue) override
 
virtual FString ToString (const NumericType &Value) const override
 
virtual TOptional< NumericType > FromString (const FString &InString, const NumericType &InExistingValue) override
 
virtual bool IsCharacterValid (TCHAR InChar) const override
 
- Public Member Functions inherited from INumericTypeInterface< NumericType >
virtual ~INumericTypeInterface ()
 
virtual FOnSettingChangedGetOnSettingChanged ()
 

Public Attributes

int16 MinFractionalDigits = DefaultMinFractionalDigits
 
int16 MaxFractionalDigits = DefaultMaxFractionalDigits
 
bool bIndicateNearlyInteger = false
 

Static Public Attributes

static const int16 DefaultMinFractionalDigits = 1
 
static const int16 DefaultMaxFractionalDigits = 6
 
static const bool DefaultIndicateNearlyInteger = false
 

Detailed Description

template<typename NumericType>
struct TDefaultNumericTypeInterface< NumericType >

Default numeric type interface

Member Function Documentation

◆ FromString()

template<typename NumericType >
virtual TOptional< NumericType > TDefaultNumericTypeInterface< NumericType >::FromString ( const FString &  InString,
const NumericType &  InExistingValue 
)
inlineoverridevirtual

◆ GetIndicateNearlyInteger()

template<typename NumericType >
virtual bool TDefaultNumericTypeInterface< NumericType >::GetIndicateNearlyInteger ( ) const
inlineoverridevirtual

Get if we should indicate nearly integer values

Reimplemented from INumericTypeInterface< NumericType >.

◆ GetMaxFractionalDigits()

template<typename NumericType >
virtual int32 TDefaultNumericTypeInterface< NumericType >::GetMaxFractionalDigits ( ) const
inlineoverridevirtual

◆ GetMinFractionalDigits()

template<typename NumericType >
virtual int32 TDefaultNumericTypeInterface< NumericType >::GetMinFractionalDigits ( ) const
inlineoverridevirtual

Gets the minimum and maximum fractional digits.

Implements INumericTypeInterface< NumericType >.

◆ IsCharacterValid()

template<typename NumericType >
virtual bool TDefaultNumericTypeInterface< NumericType >::IsCharacterValid ( TCHAR  InChar) const
inlineoverridevirtual

Check whether the typed character is valid

Implements INumericTypeInterface< NumericType >.

Reimplemented in TNumericUnitTypeInterface< NumericType >.

◆ SetIndicateNearlyInteger()

template<typename NumericType >
virtual void TDefaultNumericTypeInterface< NumericType >::SetIndicateNearlyInteger ( const TAttribute< TOptional< bool > > &  NewValue)
inlineoverridevirtual

Sets if we should indicate that a value is being rounded to an integer via '...' (Ex: 0.0 shown, real value 1e-18).

Reimplemented from INumericTypeInterface< NumericType >.

◆ SetMaxFractionalDigits()

template<typename NumericType >
virtual void TDefaultNumericTypeInterface< NumericType >::SetMaxFractionalDigits ( const TAttribute< TOptional< int32 > > &  NewValue)
inlineoverridevirtual

◆ SetMinFractionalDigits()

template<typename NumericType >
virtual void TDefaultNumericTypeInterface< NumericType >::SetMinFractionalDigits ( const TAttribute< TOptional< int32 > > &  NewValue)
inlineoverridevirtual

Sets the minimum and maximum fractional digits - A minimum greater than 0 will always have that many trailing zeros

Implements INumericTypeInterface< NumericType >.

◆ ToString()

template<typename NumericType >
virtual FString TDefaultNumericTypeInterface< NumericType >::ToString ( const NumericType &  Value) const
inlineoverridevirtual

Convert the type to/from a string

Implements INumericTypeInterface< NumericType >.

Reimplemented in TNumericUnitTypeInterface< NumericType >.

Member Data Documentation

◆ bIndicateNearlyInteger

template<typename NumericType >
bool TDefaultNumericTypeInterface< NumericType >::bIndicateNearlyInteger = false

True implies indicate when a value is displayed as rounded via '...'

◆ DefaultIndicateNearlyInteger

template<typename NumericType >
const bool TDefaultNumericTypeInterface< NumericType >::DefaultIndicateNearlyInteger = false
static

The default indicate nearly integer

◆ DefaultMaxFractionalDigits

template<typename NumericType >
const int16 TDefaultNumericTypeInterface< NumericType >::DefaultMaxFractionalDigits = 6
static

The default maximum fractional digits

◆ DefaultMinFractionalDigits

template<typename NumericType >
const int16 TDefaultNumericTypeInterface< NumericType >::DefaultMinFractionalDigits = 1
static

The default minimum fractional digits

◆ MaxFractionalDigits

template<typename NumericType >
int16 TDefaultNumericTypeInterface< NumericType >::MaxFractionalDigits = DefaultMaxFractionalDigits

The current maximum fractional digits

◆ MinFractionalDigits

template<typename NumericType >
int16 TDefaultNumericTypeInterface< NumericType >::MinFractionalDigits = DefaultMinFractionalDigits

The current minimum fractional digits


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