Mantid
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Mantid::API::Expression::Token Struct Reference

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Token()

Mantid::API::Expression::Token::Token ( size_t  i,
size_t  j,
size_t  k,
size_t  p 
)
inline

Constructor.

Parameters
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.

Member Data Documentation

◆ ie

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().

◆ is

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().

◆ is1

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().

◆ prec

size_t Mantid::API::Expression::Token::prec

The precedence of the connecting operator.

Definition at line 146 of file Expression.h.


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