Ark Server API (ASA) - Wiki
Loading...
Searching...
No Matches
FExpressionTokenConsumer Class Reference

#include <ExpressionParserTypes.h>

+ Collaboration diagram for FExpressionTokenConsumer:

Public Member Functions

 FExpressionTokenConsumer (const TCHAR *InExpression)
 
TArray< FExpressionTokenExtract ()
 
void Add (const FStringToken &SourceToken, FExpressionNode &&Node)
 
FTokenStreamGetStream ()
 

Private Member Functions

 FExpressionTokenConsumer (const FExpressionTokenConsumer &)
 
FExpressionTokenConsumeroperator= (const FExpressionTokenConsumer &)
 

Private Attributes

TArray< FExpressionTokenTokens
 
FTokenStream Stream
 

Detailed Description

Class used to consume tokens from a string

Definition at line 421 of file ExpressionParserTypes.h.

Constructor & Destructor Documentation

◆ FExpressionTokenConsumer() [1/2]

FExpressionTokenConsumer::FExpressionTokenConsumer ( const TCHAR * InExpression)

Construction from a raw string. The consumer is only valid as long as the string is valid

◆ FExpressionTokenConsumer() [2/2]

FExpressionTokenConsumer::FExpressionTokenConsumer ( const FExpressionTokenConsumer & )
private

Member Function Documentation

◆ Add()

void FExpressionTokenConsumer::Add ( const FStringToken & SourceToken,
FExpressionNode && Node )

Add an expression node to the consumer, specifying the FStringToken this node relates to. Adding a node to the consumer will move its stream read position to the end of the added token.

◆ Extract()

TArray< FExpressionToken > FExpressionTokenConsumer::Extract ( )

Extract the list of tokens from this consumer

◆ GetStream()

FTokenStream & FExpressionTokenConsumer::GetStream ( )
inline

Get the expression stream

Definition at line 436 of file ExpressionParserTypes.h.

◆ operator=()

FExpressionTokenConsumer & FExpressionTokenConsumer::operator= ( const FExpressionTokenConsumer & )
private

Member Data Documentation

◆ Stream

FTokenStream FExpressionTokenConsumer::Stream
private

Stream that looks at the constructed expression

Definition at line 446 of file ExpressionParserTypes.h.

◆ Tokens

TArray<FExpressionToken> FExpressionTokenConsumer::Tokens
private

Array of added tokens

Definition at line 443 of file ExpressionParserTypes.h.


The documentation for this class was generated from the following file: