FVMReflectionParser

[FVMReflectionParser](API\Plugins\NetcodeUnitTest\FVMReflectionParser)

Windows
MacOS
Linux

References

Module

NetcodeUnitTest

Header

/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilReflectionParser.h

Include

#include "NUTUtilReflectionParser.h"

Syntax

class FVMReflectionParser

Remarks

Variables

Name Description

Protected variable

FExpressionGram...

 

Grammar

Used to define the lexical grammar for how an expression should be parsed, e.g. defining operators/preoperators etc.

Protected variable

TOperatorJumpTa...

 

OpJumpTable

Table for mapping operator definitions, to a function which should evaluate the operator

Protected variable

TOperatorJumpTa...

 

TestOpJumpTable

Table for test operators

Protected variable

FTokenDefinitio...

 

TokenDefinitions

A dictionary used for defining how tokens are lexed

Constructors

Name Description

Public function

FVMReflectionParser()

Base constructor

FVMReflectionParser

Functions

Name Description

Public function Const

TValueOrErro...

 

Evaluate

(
    const TCHAR* InExpression,
    UObject* InTargetObj
)

Evaluate the given reflection expression, into an FVMReflection instance

Public function Const

TValueOrErro...

 

EvaluateString

(
    const TCHAR* InExpression,
    UObject* InTargetObj
)

As above, except converts whatever the final reflection state points to, into a human readable string

Protected function Static

TOptional< F...

 

ParseArraySubscript

(
    const FTokenStream& InStream,
    FStringToken* Accumulate
)

Attempts to parse an array subscript operator, Array[Num], from the stream

Protected function Static

TOptional< F...

 

ParseIdentifier

(
    const FTokenStream& InStream,
    FStringToken* Accumulate
)

Attempts to parse an identifier token (variable/function name) from the stream

Public function

void

 

TestConstruct()

Initializes automated testing parser parameters.

Public function Const

TValueOrErro...

 

TestEvaluate

(
    const TCHAR* InExpression
)

Evaluates a test expression

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss