Info struct for compiling an unary operator. This struct is used with method TryCompilation(CIUnaryOp&) to provide information to derived compiler plug-ins, as well as to receive information back.
Definition at line 260 of file compilerplugin.inl.
Public Field Index: | |
| bool | ArgIsConst |
| String & | Operator |
| Input/Output: The unary operator. | |
Public Field Index: inherited from alib::expressions::CompilerPlugin::CompilationInfo | |
| ArgIterator | ArgsBegin |
| ArgIterator | ArgsEnd |
| CallbackDecl | Callback = nullptr |
| Output: The native C++ callback function to be set by one of the plug-ins. | |
| MonoAllocator & | CompileTimeAllocator |
| Scope & | CompileTimeScope |
| const nchar * | DbgCallbackName = nullptr |
| Box | TypeOrValue = nullptr |
Public Method Index: | |
| CIUnaryOp (Scope &scope, MonoAllocator &compileTimeAllocator, String &op, bool argIsConst) | |
Public Method Index: inherited from alib::expressions::CompilerPlugin::CompilationInfo | |
| CompilationInfo (Scope &scope, MonoAllocator &allocator) | |
| bool alib::expressions::CompilerPlugin::CIUnaryOp::ArgIsConst |
Input: Denotes if the argument is a constant value. Operator callbacks that do not use context information from the scope, should calculate the then constant result and return this value instead of the callback method. (Compile-time optimization.)
Definition at line 267 of file compilerplugin.inl.
| String& alib::expressions::CompilerPlugin::CIUnaryOp::Operator |
Input/Output: The unary operator.
Definition at line 262 of file compilerplugin.inl.
|
inline |
Constructor.
| scope | Passed to parent. |
| compileTimeAllocator | Passed to parent. |
| op | Stored in Operator. |
| argIsConst | Passed to field ArgIsConst. |
Definition at line 275 of file compilerplugin.inl.