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