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

#include <NumericTypeInterface.h>

+ Inheritance diagram for INumericTypeInterface< NumericType >:

Public Member Functions

virtual ~INumericTypeInterface ()
 
virtual int32 GetMinFractionalDigits () const =0
 
virtual int32 GetMaxFractionalDigits () const =0
 
virtual bool GetIndicateNearlyInteger () const
 
virtual void SetMinFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue)=0
 
virtual void SetMaxFractionalDigits (const TAttribute< TOptional< int32 > > &NewValue)=0
 
virtual void SetIndicateNearlyInteger (const TAttribute< TOptional< bool > > &NewValue)
 
virtual FString ToString (const NumericType &Value) const =0
 
virtual TOptional< NumericType > FromString (const FString &InString, const NumericType &ExistingValue)=0
 
virtual bool IsCharacterValid (TCHAR InChar) const =0
 
virtual FOnSettingChangedGetOnSettingChanged ()
 

Detailed Description

template<typename NumericType>
struct INumericTypeInterface< NumericType >

Interface to provide specific functionality for dealing with a numeric type. Currently includes string conversion functionality.

Constructor & Destructor Documentation

◆ ~INumericTypeInterface()

template<typename NumericType >
virtual INumericTypeInterface< NumericType >::~INumericTypeInterface ( )
inlinevirtual

Member Function Documentation

◆ FromString()

template<typename NumericType >
virtual TOptional< NumericType > INumericTypeInterface< NumericType >::FromString ( const FString &  InString,
const NumericType &  ExistingValue 
)
pure virtual

◆ GetIndicateNearlyInteger()

template<typename NumericType >
virtual bool INumericTypeInterface< NumericType >::GetIndicateNearlyInteger ( ) const
inlinevirtual

◆ GetMaxFractionalDigits()

template<typename NumericType >
virtual int32 INumericTypeInterface< NumericType >::GetMaxFractionalDigits ( ) const
pure virtual

◆ GetMinFractionalDigits()

template<typename NumericType >
virtual int32 INumericTypeInterface< NumericType >::GetMinFractionalDigits ( ) const
pure virtual

Gets the minimum and maximum fractional digits.

Implemented in TDefaultNumericTypeInterface< NumericType >, and FFrameNumberInterface.

◆ GetOnSettingChanged()

template<typename NumericType >
virtual FOnSettingChanged * INumericTypeInterface< NumericType >::GetOnSettingChanged ( )
inlinevirtual

Optional callback to broadcast when a setting in the type interface changes

Reimplemented in FFrameNumberInterface.

◆ IsCharacterValid()

template<typename NumericType >
virtual bool INumericTypeInterface< NumericType >::IsCharacterValid ( TCHAR  InChar) const
pure virtual

◆ SetIndicateNearlyInteger()

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

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

Reimplemented in TDefaultNumericTypeInterface< NumericType >.

◆ SetMaxFractionalDigits()

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

◆ SetMinFractionalDigits()

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

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

Implemented in TDefaultNumericTypeInterface< NumericType >, and FFrameNumberInterface.

◆ ToString()

template<typename NumericType >
virtual FString INumericTypeInterface< NumericType >::ToString ( const NumericType &  Value) const
pure virtual

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