This built-in compiler plug-in of ALib Expressions, performs auto-casts only if two different types are given. In this case, the following casts are performed:
Definition at line 40 of file autocast.hpp.
#include <autocast.hpp>
Public Method Index: | |
ALIB_API | AutoCast (Compiler &compiler) |
virtual | ~AutoCast () override |
Virtual destructor. | |
virtual ALIB_API bool | TryCompilation (CIAutoCast &ciAutoCast) override |
Public Method Index: inherited from CompilerPlugin | |
CompilerPlugin (const NString &name, Compiler &compiler, CompilePriorities pPriority) | |
virtual | ~CompilerPlugin () |
Virtual destructor. | |
virtual bool | TryCompilation (CIBinaryOp &ciBinaryOp) |
virtual bool | TryCompilation (CIFunction &ciFunction) |
virtual bool | TryCompilation (CIUnaryOp &ciUnaryOp) |
Public Method Index: inherited from Plugin< Compiler, CompilePriorities > | |
PrioritiesType | GetPriority () const |
Additional Inherited Members | |
Public Type Index: inherited from Plugin< Compiler, CompilePriorities > | |
using | PluginType |
This exposes the template parameter TPlugin to the outer world. | |
using | PrioritiesType |
This exposes the template parameter pTPlugin to the outer world. | |
Public Field Index: inherited from CompilerPlugin | |
Compiler & | Cmplr |
The compiler that this plug-in is attached to. | |
const NString | Name |
Protected Field Index: inherited from Plugin< Compiler, CompilePriorities > | |
PrioritiesType | priority |
The priority of this plug-in. | |
Protected Method Index: inherited from Plugin< Compiler, CompilePriorities > | |
Plugin (PrioritiesType pPriority) | |
Constructor.
compiler | The compiler we will get attached to. |
|
inlineoverridevirtual |
Virtual destructor.
Definition at line 51 of file autocast.hpp.
|
overridevirtual |
Offers auto-cast functions for built-in types.
[out] | ciAutoCast | The compilation result. |
true
if an entry was found. false
otherwise. Reimplemented from CompilerPlugin.