Navigation
API > API/Runtime > API/Runtime/VerseCompiler
The float type is a special form of CFloatType where _MaxInclusive is NaN. The only other way NaN can be encoded is for the NaN literal intrinsic. Given these constraints on NaN, we simpify our implementation by turning all doubles into a total order via CMath::FloatRanking.
| Name | CFloatType |
| Type | class |
| Header File | /Engine/Source/Runtime/VerseCompiler/Public/uLang/Semantics/SemanticTypes.h |
| Include Path | #include "uLang/Semantics/SemanticTypes.h" |
Syntax
class CFloatType : public uLang::CNormalType
Inheritance Hierarchy
- CTypeBase → CNormalType → CFloatType
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
CFloatType
(
CSemanticProgram& Program, |
uLang/Semantics/SemanticTypes.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| StaticTypeKind | ETypeKind | uLang/Semantics/SemanticTypes.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| _MaxInclusive | double | uLang/Semantics/SemanticTypes.h | ||
| _MaxRanking | int64_t | uLang/Semantics/SemanticTypes.h | ||
| _MinInclusive | double | uLang/Semantics/SemanticTypes.h | ||
| _MinRanking | int64_t | uLang/Semantics/SemanticTypes.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
double GetMax() |
uLang/Semantics/SemanticTypes.h | ||
double GetMin() |
uLang/Semantics/SemanticTypes.h | ||
bool IsInhabitable() |
uLang/Semantics/SemanticTypes.h | ||
bool IsIntrinsicFloatType() |
uLang/Semantics/SemanticTypes.h | ||
int64_t MaxRanking() |
uLang/Semantics/SemanticTypes.h | ||
int64_t MinRanking() |
uLang/Semantics/SemanticTypes.h |
Overridden from CNormalType
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual EComparability GetComparability() |
Returns whether this type is comparable for equality | uLang/Semantics/SemanticTypes.h | |
virtual bool IsExplicitlyCastable() |
uLang/Semantics/SemanticTypes.h | ||
virtual bool IsExplicitlyConcrete() |
uLang/Semantics/SemanticTypes.h | ||
virtual bool IsPersistable() |
Returns whether this type is `persistable_ | uLang/Semantics/SemanticTypes.h |
Overridden from CTypeBase
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual CUTF8String AsCodeRecursive
(
ETypeSyntaxPrecedence OuterPrecedence, |
The only reason we preserve the "original" doubles is for AsCode. | uLang/Semantics/SemanticTypes.h | |
virtual bool CanBeCustomAccessorDataType() |
uLang/Semantics/SemanticTypes.h | ||
virtual bool CanBePredictsVarDataType() |
uLang/Semantics/SemanticTypes.h |