|
libscratchcpp
A library for C++ based Scratch project players
|
The CompilerConstant class represents a constant value in compiled code. More...
#include <scratchcpp/compilerconstant.h>


Public Member Functions | |
| CompilerConstant (Compiler::StaticType type, const Value &value) | |
| CompilerConstant (const CompilerConstant &)=delete | |
| bool | isConst () const override final |
| const Value & | value () const |
| Compiler::StaticType | type () const |
| void | setType (Compiler::StaticType type) |
The CompilerConstant class represents a constant value in compiled code.
| CompilerConstant::CompilerConstant | ( | Compiler::StaticType | type, |
| const Value & | value ) |
Constructs CompilerConstant.
|
delete |
|
inlinefinaloverridevirtual |
Reimplemented from libscratchcpp::CompilerValue.
|
inherited |
Sets the type of this value.
|
inherited |
Returns the type of this value.
| const Value & CompilerConstant::value | ( | ) | const |
Returns the constant value.