muParserX
2.0.0
|
Generic token interface for expression tokens. More...
Public Member Functions | |
ECmdCode | GetCode () const |
return the token code. More... | |
const string_type & | GetIdent () const |
Return the token identifier string. | |
Protected Member Functions | |
virtual | ~IToken () |
Destructor (trivial). | |
IToken (const IToken &ref) | |
Copy constructor. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &a_Stream, const IToken &a_Val) |
Overloaded streaming operator for outputting the value type into an std::ostream. More... | |
Generic token interface for expression tokens.
Tokens can either be Functions, operators, values, variables or necessary base tokens like brackets. ´The IToken baseclass implements reference counting. Only TokenPtr<...> templates may be used as pointers to tokens.
|
protected |
Copy constructor.
ref | The token to copy basic state information from. |
The copy constructor must be implemented in order not to screw up the reference count of the created object. CC's are used in the Clone function and they would start with a reference count != 0 introducing memory leaks if the default CC where used.
|
friend |
Overloaded streaming operator for outputting the value type into an std::ostream.
a_Stream | The stream object |
a_Val | The value object to be streamed |
This function is only present if _UNICODE is not defined.