libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
compilerconstant.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2
3#pragma once
4
5#include "compilervalue.h"
6
7namespace libscratchcpp
8{
9
10class CompilerConstantPrivate;
11
14{
15 public:
18
19 bool isConst() const override final { return true; };
20
21 const Value &value() const;
22
23 private:
24 spimpl::unique_impl_ptr<CompilerConstantPrivate> impl;
25};
26
27} // namespace libscratchcpp
CompilerConstant(Compiler::StaticType type, const Value &value)
Definition compilerconstant.cpp:10
CompilerConstant(const CompilerConstant &)=delete
const Value & value() const
Definition compilerconstant.cpp:17
bool isConst() const override final
Definition compilerconstant.h:19
Compiler::StaticType type() const
Definition compilervalue.cpp:16
CompilerValue(Compiler::StaticType type)
Definition compilervalue.cpp:10
StaticType
Definition compiler.h:36
The Value class represents a Scratch value.
Definition value.h:22
#define LIBSCRATCHCPP_EXPORT
Definition global.h:17
The main namespace of the library.
Definition asset.h:10