Marlin
01.17.01
|
Helper class for LogicalExpressions that splits the expression into subexpressions - needs to be apllied iteratively. More...
#include <LogicalExpressions.h>
Public Member Functions | |
Tokenizer (std::vector< Expression > &tokens) | |
void | operator() (const char &c) |
Save the current character and change state if necessary. More... | |
~Tokenizer () | |
std::vector< Expression > & | result () |
Private Types | |
enum | state { newtoken, parenthesis, operation } |
Private Attributes | |
std::vector< Expression > & | _tokens |
char | _last |
bool | needToken |
int | openPar |
int | closedPar |
state | _state |
Helper class for LogicalExpressions that splits the expression into subexpressions - needs to be apllied iteratively.
Definition at line 39 of file LogicalExpressions.h.
|
private |
Enumerator | |
---|---|
newtoken | |
parenthesis | |
operation |
Definition at line 41 of file LogicalExpressions.h.
|
inline |
Definition at line 56 of file LogicalExpressions.h.
|
inline |
Definition at line 130 of file LogicalExpressions.h.
|
inline |
Save the current character and change state if necessary.
Definition at line 63 of file LogicalExpressions.h.
References _last, _state, _tokens, marlin::Expression::AND, closedPar, needToken, newtoken, openPar, operation, marlin::Expression::OR, and parenthesis.
|
inline |
Definition at line 133 of file LogicalExpressions.h.
References _tokens.
|
private |
Definition at line 48 of file LogicalExpressions.h.
Referenced by operator()().
|
private |
Definition at line 52 of file LogicalExpressions.h.
Referenced by operator()().
|
private |
Definition at line 47 of file LogicalExpressions.h.
Referenced by operator()(), and result().
|
private |
Definition at line 51 of file LogicalExpressions.h.
Referenced by operator()().
|
private |
Definition at line 49 of file LogicalExpressions.h.
Referenced by operator()().
|
private |
Definition at line 50 of file LogicalExpressions.h.
Referenced by operator()().