| OpcUaCanOpen
    CANopen OPC-UA server | 
Encapsulation of the data for a single formula token. More...
#include <muParserToken.h>
| Public Member Functions | |
| ParserToken () | |
| Constructor (default).  More... | |
| ParserToken (const ParserToken &a_Tok) | |
| Create token from another one.  More... | |
| ParserToken & | operator= (const ParserToken &a_Tok) | 
| Assignment operator.  More... | |
| void | Assign (const ParserToken &a_Tok) | 
| Copy token information from argument.  More... | |
| ParserToken & | Set (ECmdCode a_iType, const TString &a_strTok=TString()) | 
| Assign a token type.  More... | |
| ParserToken & | Set (const ParserCallback &a_pCallback, const TString &a_sTok) | 
| Set Callback type.  More... | |
| ParserToken & | SetVal (TBase a_fVal, const TString &a_strTok=TString()) | 
| Make this token a value token.  More... | |
| ParserToken & | SetVar (TBase *a_pVar, const TString &a_strTok) | 
| make this token a variable token.  More... | |
| ParserToken & | SetString (const TString &a_strTok, std::size_t a_iSize) | 
| Make this token a variable token.  More... | |
| void | SetIdx (int a_iIdx) | 
| Set an index associated with the token related data.  More... | |
| int | GetIdx () const | 
| Return Index associated with the token related data.  More... | |
| ECmdCode | GetCode () const | 
| Return the token type.  More... | |
| ETypeCode | GetType () const | 
| int | GetPri () const | 
| EOprtAssociativity | GetAssociativity () const | 
| generic_fun_type | GetFuncAddr () const | 
| Return the address of the callback function assoziated with function and operator tokens.  More... | |
| TBase | GetVal () const | 
| Get value of the token.  More... | |
| TBase * | GetVar () const | 
| Get address of a variable token.  More... | |
| int | GetArgCount () const | 
| Return the number of function arguments.  More... | |
| const TString & | GetAsString () const | 
| Return the token identifier.  More... | |
| Private Attributes | |
| ECmdCode | m_iCode | 
| Type of the token; The token type is a constant of type ECmdCode.  More... | |
| ETypeCode | m_iType | 
| void * | m_pTok | 
| Stores Token pointer; not applicable for all tokens.  More... | |
| int | m_iIdx | 
| An otional index to an external buffer storing the token data.  More... | |
| TString | m_strTok | 
| Token string.  More... | |
| TString | m_strVal | 
| Value for string variables.  More... | |
| value_type | m_fVal | 
| the value  More... | |
| std::unique_ptr< ParserCallback > | m_pCallback | 
Encapsulation of the data for a single formula token.
Formula token implementation. Part of the Math Parser Package. Formula tokens can be either one of the following:
Definition at line 61 of file muParserToken.h.
| 
 | inline | 
Constructor (default).
Sets token to an neutral state of type cmUNKNOWN.
| nothrow | 
Definition at line 83 of file muParserToken.h.
| 
 | inline | 
Create token from another one.
Implemented by calling Assign(...)
| nothrow | 
Definition at line 102 of file muParserToken.h.
| 
 | inline | 
Copy token information from argument.
| nothrow | 
Definition at line 125 of file muParserToken.h.
| 
 | inline | 
Return the number of function arguments.
Valid only if m_iType==CmdFUNC.
Definition at line 375 of file muParserToken.h.
| 
 | inline | 
Definition at line 312 of file muParserToken.h.
| 
 | inline | 
Return the token identifier.
If m_iType is cmSTRING the token identifier is the value of the string argument for a string function.
| nothrow | 
Definition at line 394 of file muParserToken.h.
| 
 | inline | 
Return the token type.
| nothrow | 
Definition at line 274 of file muParserToken.h.
| 
 | inline | 
Return the address of the callback function assoziated with function and operator tokens.
| exception_type | if token type is non of: 
 | 
Definition at line 335 of file muParserToken.h.
| 
 | inline | 
Return Index associated with the token related data.
In cmSTRFUNC - This is the index to a string table in the main parser.
Definition at line 260 of file muParserToken.h.
| 
 | inline | 
Definition at line 300 of file muParserToken.h.
| 
 | inline | 
Definition at line 287 of file muParserToken.h.
| 
 | inline | 
Get value of the token.
Only applicable to variable and value tokens.
| exception_type | if token is no value/variable token. | 
Definition at line 346 of file muParserToken.h.
| 
 | inline | 
Get address of a variable token.
Valid only if m_iType==CmdVar.
| exception_type | if token is no variable token. | 
Definition at line 362 of file muParserToken.h.
| 
 | inline | 
Assignment operator.
Copy token state from another token and return this. Implemented by calling Assign(...).
| nothrow | 
Definition at line 114 of file muParserToken.h.
| 
 | inline | 
Assign a token type.
Token may not be of type value, variable or function. Those have separate set functions.
Definition at line 149 of file muParserToken.h.
| 
 | inline | 
Set Callback type.
Definition at line 167 of file muParserToken.h.
| 
 | inline | 
Set an index associated with the token related data.
In cmSTRFUNC - This is the index to a string table in the main parser.
| a_iIdx | The index the string function result will take in the bytecode parser. | 
| exception_type | if #a_iIdx<0 or m_iType!=cmSTRING | 
Definition at line 244 of file muParserToken.h.
| 
 | inline | 
Make this token a variable token.
Member variables not necessary for variable tokens will be invalidated.
| nothrow | 
Definition at line 225 of file muParserToken.h.
| 
 | inline | 
Make this token a value token.
Member variables not necessary for value tokens will be invalidated.
| nothrow | 
Definition at line 188 of file muParserToken.h.
| 
 | inline | 
make this token a variable token.
Member variables not necessary for variable tokens will be invalidated.
| nothrow | 
Definition at line 208 of file muParserToken.h.
| 
 | private | 
the value
Definition at line 71 of file muParserToken.h.
| 
 | private | 
Type of the token; The token type is a constant of type ECmdCode.
Definition at line 65 of file muParserToken.h.
| 
 | private | 
An otional index to an external buffer storing the token data.
Definition at line 68 of file muParserToken.h.
| 
 | private | 
Definition at line 66 of file muParserToken.h.
| 
 | private | 
Definition at line 72 of file muParserToken.h.
| 
 | private | 
Stores Token pointer; not applicable for all tokens.
Definition at line 67 of file muParserToken.h.
| 
 | private | 
Token string.
Definition at line 69 of file muParserToken.h.
| 
 | private | 
Value for string variables.
Definition at line 70 of file muParserToken.h.