Navigation
Unreal Engine C++ API Reference > Runtime > Core > Misc
References
Module | Core |
Header | /Engine/Source/Runtime/Core/Public/Misc/TextFilterExpressionEvaluator.h |
Include | #include "Misc/TextFilterExpressionEvaluator.h" |
Syntax
class FTextFilterExpressionEvaluator
Remarks
Defines an expression evaluator that can be used to perform complex text filter queries
Variables
Type | Name | Description | |
---|---|---|---|
![]() |
TOptional< ExpressionParser::CompileResultType > | CompiledFilter | The compiled filter created from the current filter text (compiled from FilterText) |
![]() |
TOptional< TextFilterExpressionParser::FTextToken > | CompiledFilterSingleBasicStringTextToken | If there is only one token that is basic string it will be stored here to avoid recompile per item compared. |
![]() |
ETextFilterExpressionEvaluatorMode | ExpressionEvaluatorMode | Defines whether or not the expression parser can evaluate complex expressions |
![]() |
TArray< FExpressionToken > | ExpressionTokens | The filter expression tokens created from the current filter text (lexed from FilterText) |
![]() |
FText | FilterErrorText | The last error returned from lexing or compiling the current filter text |
![]() |
FText | FilterText | The the filter terms that we're currently using (compiled into CompiledFilter) |
![]() |
ETextFilterExpressionType | FilterType | The cached complexity of the current filter terms |
![]() |
FExpressionGrammar | Grammar | |
![]() |
TOperatorJumpTable< ITextFilterExpressionContext > | JumpTable | |
![]() |
FTokenDefinitions | TokenDefinitions | Expression parser |
![]() |
TMap< FString, FTokenFunctionHandler > | TokenFunctionHandlers | Mapping of function names to their callbacks |
Constructors
Type | Name | Description | |
---|---|---|---|
![]() |
FTextFilterExpressionEvaluator
(
const ETextFilterExpressionEvaluatorMode InMode |
Construction and assignment | |
![]() |
FTextFilterExpressionEvaluator
(
const FTextFilterExpressionEvaluator& Other |
Destructors
Type | Name | Description | |
---|---|---|---|
![]() ![]() |
Functions
Type | Name | Description | |
---|---|---|---|
![]() |
void | AddFunctionTokenCallback
(
FString InFunctionName, |
Helper function to add callbacks for function tokens |
![]() ![]() |
void | Common function to construct the expression parser | |
![]() ![]() ![]() |
bool | EvaluateCompiledExpression
(
const ExpressionParser::CompileResultType& InCompiledResult, |
Evaluate the given compiled result, and optionally populate OutErrorText with any error information |
![]() ![]() |
FText | Get the last error returned from lexing or compiling the current filter text | |
![]() ![]() |
const TArray< FExpressionToken > & | Get the filter expression tokens created from the current filter text | |
![]() ![]() |
FText | Get the filter terms that we're currently using | |
![]() ![]() |
ETextFilterExpressionType | Get the complexity of the current filter terms | |
![]() |
bool | SetFilterText
(
const FText& InFilterText |
Set the filter terms to be compiled for evaluation later. |
![]() |
void | SetupGrammar () |
Sets up grammar used for evaluation |
![]() ![]() |
bool | TestTextFilter
(
const ITextFilterExpressionContext& InContext |
Test our compiled filter using the given context |
Operators
Type | Name | Description | |
---|---|---|---|
![]() |
FTextFilterExpressionEvaluator & | operator=
(
const FTextFilterExpressionEvaluator& Other |