engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
FTextFilterExpressionEvaluator类 参考

Defines an expression evaluator that can be used to perform complex text filter queries 更多...

#include <TextFilterExpressionEvaluator.h>

Public 成员函数

void AddFunctionTokenCallback (FString InFunctionName, FTokenFunctionHandler InCallback)
 Helper function to add callbacks for function tokens
 
 FTextFilterExpressionEvaluator (const ETextFilterExpressionEvaluatorMode InMode)
 Construction and assignment
 
FText GetFilterErrorText () const
 Get the last error returned from lexing or compiling the current filter text
 
const TArray< FExpressionToken > & GetFilterExpressionTokens () const
 Get the filter expression tokens created from the current filter text
 
FText GetFilterText () const
 Get the filter terms that we're currently using
 
ETextFilterExpressionType GetFilterType () const
 Get the complexity of the current filter terms
 
bool SetFilterText (const FText &InFilterText)
 Set the filter terms to be compiled for evaluation later. 更多...
 
bool TestTextFilter (const ITextFilterExpressionContext &InContext) const
 Test our compiled filter using the given context
 

Protected 成员函数

virtual void ConstructExpressionParser ()
 Common function to construct the expression parser
 
virtual bool EvaluateCompiledExpression (const ExpressionParser::CompileResultType &InCompiledResult, const ITextFilterExpressionContext &InContext, FText *OutErrorText) const
 Evaluate the given compiled result, and optionally populate OutErrorText with any error information
 
void SetupGrammar ()
 Sets up grammar used for evaluation
 

Protected 属性

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
 
FTokenDefinitions TokenDefinitions
 Expression parser
 
TMap< FString, FTokenFunctionHandler > TokenFunctionHandlers
 Mapping of function names to their callbacks
 

详细描述

Defines an expression evaluator that can be used to perform complex text filter queries

成员函数说明

◆ SetFilterText()

bool FTextFilterExpressionEvaluator::SetFilterText ( const FText &  InFilterText)

Set the filter terms to be compiled for evaluation later.

Returns true if the filter was actually changed


该类的文档由以下文件生成: