Ark Server API (ASA) - Wiki
|
#include <TextFilterExpressionEvaluator.h>
Protected Member Functions | |
void | SetupGrammar () |
virtual void | ConstructExpressionParser () |
virtual bool | EvaluateCompiledExpression (const ExpressionParser::CompileResultType &InCompiledResult, const ITextFilterExpressionContext &InContext, FText *OutErrorText) const |
Defines an expression evaluator that can be used to perform complex text filter queries
Definition at line 197 of file TextFilterExpressionEvaluator.h.
FTextFilterExpressionEvaluator::FTextFilterExpressionEvaluator | ( | const ETextFilterExpressionEvaluatorMode | InMode | ) |
Construction and assignment
FTextFilterExpressionEvaluator::FTextFilterExpressionEvaluator | ( | const FTextFilterExpressionEvaluator & | Other | ) |
|
inlinevirtual |
Definition at line 204 of file TextFilterExpressionEvaluator.h.
void FTextFilterExpressionEvaluator::AddFunctionTokenCallback | ( | FString | InFunctionName, |
FTokenFunctionHandler | InCallback ) |
Helper function to add callbacks for function tokens
Common function to construct the expression parser
|
protectedvirtual |
Evaluate the given compiled result, and optionally populate OutErrorText with any error information
FText FTextFilterExpressionEvaluator::GetFilterErrorText | ( | ) | const |
Get the last error returned from lexing or compiling the current filter text
const TArray< FExpressionToken > & FTextFilterExpressionEvaluator::GetFilterExpressionTokens | ( | ) | const |
Get the filter expression tokens created from the current filter text
FText FTextFilterExpressionEvaluator::GetFilterText | ( | ) | const |
Get the filter terms that we're currently using
ETextFilterExpressionType FTextFilterExpressionEvaluator::GetFilterType | ( | ) | const |
Get the complexity of the current filter terms
FTextFilterExpressionEvaluator & FTextFilterExpressionEvaluator::operator= | ( | const FTextFilterExpressionEvaluator & | Other | ) |
Set the filter terms to be compiled for evaluation later. Returns true if the filter was actually changed
|
protected |
Sets up grammar used for evaluation
bool FTextFilterExpressionEvaluator::TestTextFilter | ( | const ITextFilterExpressionContext & | InContext | ) | const |
Test our compiled filter using the given context
|
protected |
The compiled filter created from the current filter text (compiled from FilterText)
Definition at line 253 of file TextFilterExpressionEvaluator.h.
|
protected |
If there is only one token that is basic string it will be stored here to avoid recompile per item compared.
Definition at line 256 of file TextFilterExpressionEvaluator.h.
|
protected |
Defines whether or not the expression parser can evaluate complex expressions
Definition at line 238 of file TextFilterExpressionEvaluator.h.
|
protected |
The filter expression tokens created from the current filter text (lexed from FilterText)
Definition at line 250 of file TextFilterExpressionEvaluator.h.
|
protected |
The last error returned from lexing or compiling the current filter text
Definition at line 247 of file TextFilterExpressionEvaluator.h.
|
protected |
The the filter terms that we're currently using (compiled into CompiledFilter)
Definition at line 244 of file TextFilterExpressionEvaluator.h.
|
protected |
The cached complexity of the current filter terms
Definition at line 241 of file TextFilterExpressionEvaluator.h.
|
protected |
Definition at line 263 of file TextFilterExpressionEvaluator.h.
|
protected |
Definition at line 264 of file TextFilterExpressionEvaluator.h.
|
protected |
Expression parser
Definition at line 262 of file TextFilterExpressionEvaluator.h.
|
protected |
Mapping of function names to their callbacks
Definition at line 259 of file TextFilterExpressionEvaluator.h.