1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-18 04:10:06 +00:00
OpenMW/components/compiler/output.hpp

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
786 B
C++
Raw Normal View History

#ifndef COMPILER_OUTPUT_H_INCLUDED
#define COMPILER_OUTPUT_H_INCLUDED
#include "literals.hpp"
#include <vector>
#include <components/interpreter/program.hpp>
#include <components/interpreter/types.hpp>
namespace Compiler
{
class Locals;
class Output
{
Literals mLiterals;
std::vector<Interpreter::Type_Code> mCode;
Locals& mLocals;
2022-09-22 18:26:05 +00:00
public:
Output(Locals& locals);
2022-09-22 18:26:05 +00:00
Interpreter::Program getProgram() const;
2022-09-22 18:26:05 +00:00
const Literals& getLiterals() const;
2022-09-22 18:26:05 +00:00
const Locals& getLocals() const;
2022-09-22 18:26:05 +00:00
const std::vector<Interpreter::Type_Code>& getCode() const;
2022-09-22 18:26:05 +00:00
Literals& getLiterals();
2022-09-22 18:26:05 +00:00
std::vector<Interpreter::Type_Code>& getCode();
2022-09-22 18:26:05 +00:00
Locals& getLocals();
2022-09-22 18:26:05 +00:00
void clear();
};
}
#endif