ALib C++ Library
Library Version: 2312 R0
Documentation generated by doxygen
Public Fields | Public Methods | List of all members
CompilerPlugin::CIUnaryOp Struct Reference

#include <compilerplugin.hpp>

Inheritance diagram for CompilerPlugin::CIUnaryOp:
[legend]
Collaboration diagram for CompilerPlugin::CIUnaryOp:
[legend]

Class 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 318 of file compilerplugin.hpp.

Public Fields

bool ArgIsConst
 
StringOperator
 Input/Output: The unary operator.
 
- Public Fields inherited from CompilerPlugin::CompilationInfo
ArgIterator ArgsBegin
 
ArgIterator ArgsEnd
 
CallbackDecl Callback = nullptr
 
MonoAllocatorCompileTimeAllocator
 
ScopeCompileTimeScope
 
const ncharDbgCallbackName = nullptr
 
Box TypeOrValue = nullptr
 

Public Methods

 CIUnaryOp (Scope &scope, MonoAllocator &compileTimeAllocator, String &op, bool argIsConst)
 
- Public Methods inherited from CompilerPlugin::CompilationInfo
 CompilationInfo (Scope &scope, MonoAllocator &allocator)
 

Constructor & Destructor Documentation

◆ 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 338 of file compilerplugin.hpp.

Member Data Documentation

◆ ArgIsConst

bool 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 327 of file compilerplugin.hpp.


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