ALib C++ Framework
by
Library Version: 2511 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::expressions::CompilerPlugin::CIUnaryOp Struct Reference

Description:

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 245 of file compilerplugin.inl.

Inheritance diagram for alib::expressions::CompilerPlugin::CIUnaryOp:
alib::expressions::CompilerPlugin::CompilationInfo

Public Field Index:

bool ArgIsConst
StringOperator
 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.
MonoAllocatorCompileTimeAllocator
ScopeCompileTimeScope
const ncharDbgCallbackName =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)

Field Details:

◆ ArgIsConst

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 252 of file compilerplugin.inl.

◆ Operator

String& alib::expressions::CompilerPlugin::CIUnaryOp::Operator

Input/Output: The unary operator.

Definition at line 247 of file compilerplugin.inl.

Constructor(s) / Destructor Details:

◆ CIUnaryOp()

alib::expressions::CompilerPlugin::CIUnaryOp::CIUnaryOp ( Scope & scope,
MonoAllocator & compileTimeAllocator,
String & op,
bool argIsConst )
inline

Constructor.

Parameters
scopePassed to parent.
compileTimeAllocatorPassed to parent.
opStored in Operator.
argIsConstPassed to field ArgIsConst.

Definition at line 260 of file compilerplugin.inl.


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