libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
libscratchcpp::CompilerConstant Class Reference

The CompilerConstant class represents a constant value in compiled code. More...

#include <scratchcpp/compilerconstant.h>

Inheritance diagram for libscratchcpp::CompilerConstant:
Collaboration diagram for libscratchcpp::CompilerConstant:

Public Member Functions

 CompilerConstant (Compiler::StaticType type, const Value &value)
 
 CompilerConstant (const CompilerConstant &)=delete
 
bool isConst () const override final
 
const Valuevalue () const
 
Compiler::StaticType type () const
 
void setType (Compiler::StaticType type)
 

Detailed Description

The CompilerConstant class represents a constant value in compiled code.

Constructor & Destructor Documentation

◆ CompilerConstant() [1/2]

CompilerConstant::CompilerConstant ( Compiler::StaticType type,
const Value & value )

Constructs CompilerConstant.

◆ CompilerConstant() [2/2]

libscratchcpp::CompilerConstant::CompilerConstant ( const CompilerConstant & )
delete

Member Function Documentation

◆ isConst()

bool libscratchcpp::CompilerConstant::isConst ( ) const
inlinefinaloverridevirtual

Reimplemented from libscratchcpp::CompilerValue.

◆ setType()

void CompilerValue::setType ( Compiler::StaticType type)
inherited

Sets the type of this value.

◆ type()

Compiler::StaticType CompilerValue::type ( ) const
inherited

Returns the type of this value.

◆ value()

const Value & CompilerConstant::value ( ) const

Returns the constant value.


The documentation for this class was generated from the following files: