Mantid
|
This is a struct to mark a token in a string expression. More...
Public Member Functions | |
Token (size_t i, size_t j, size_t k, size_t p) | |
Constructor. More... | |
Public Attributes | |
size_t | ie |
The index of the last symbol of the token. More... | |
size_t | is |
The index of the first symbol of the token. More... | |
size_t | is1 |
The index of the first symbol of the next token. More... | |
size_t | prec |
The precedence of the connecting operator. More... | |
This is a struct to mark a token in a string expression.
Tokens in an expressions are separated by operators. A token is either a symbolic name (not containing operators and empty spaces) or another expression.
Definition at line 131 of file Expression.h.
|
inline |
Constructor.
i | :: The index of the first symbol of the token. |
j | :: The index of the last symbol of the token. |
k | :: The index of the first symbol of the next token. The substring between j and k contains the operator connecting the next token to this one. |
p | :: The precedence of the connecting operator. |
Definition at line 142 of file Expression.h.
size_t Mantid::API::Expression::Token::ie |
The index of the last symbol of the token.
Definition at line 144 of file Expression.h.
Referenced by Mantid::API::Expression::GetOp(), Mantid::API::Expression::GetToken(), and Mantid::API::Expression::tokenize().
size_t Mantid::API::Expression::Token::is |
The index of the first symbol of the token.
Definition at line 143 of file Expression.h.
Referenced by Mantid::API::Expression::GetToken().
size_t Mantid::API::Expression::Token::is1 |
The index of the first symbol of the next token.
Definition at line 145 of file Expression.h.
Referenced by Mantid::API::Expression::GetOp(), Mantid::API::Expression::GetToken(), and Mantid::API::Expression::tokenize().
size_t Mantid::API::Expression::Token::prec |
The precedence of the connecting operator.
Definition at line 146 of file Expression.h.