OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
output.hpp
Go to the documentation of this file.
1 #ifndef COMPILER_OUTPUT_H_INCLUDED
2 #define COMPILER_OUTPUT_H_INCLUDED
3 
4 #include "literals.hpp"
5 
6 #include <vector>
7 
9 
10 namespace Compiler
11 {
12  class Locals;
13 
14  class Output
15  {
17  std::vector<Interpreter::Type_Code> mCode;
19 
20  public:
21 
22  Output (Locals& locals);
23 
24  void getCode (std::vector<Interpreter::Type_Code>& code) const;
26 
27  const Literals& getLiterals() const;
28 
29  const Locals& getLocals() const;
30 
31  const std::vector<Interpreter::Type_Code>& getCode() const;
32 
34 
35  std::vector<Interpreter::Type_Code>& getCode();
36 
37  Locals& getLocals();
38 
39  void clear();
40  };
41 }
42 
43 #endif
44 
void clear()
Definition: output.cpp:66
Definition: output.hpp:14
std::vector< Interpreter::Type_Code > mCode
Definition: output.hpp:17
Literals mLiterals
Definition: output.hpp:16
const Literals & getLiterals() const
Definition: output.cpp:36
int code
Definition: crashcatcher.cpp:70
Literal values.
Definition: literals.hpp:13
Locals & mLocals
Definition: output.hpp:18
Output(Locals &locals)
Definition: output.cpp:11
const std::vector< Interpreter::Type_Code > & getCode() const
Definition: output.cpp:41
const Locals & getLocals() const
Definition: output.cpp:46
Local variable declarations.
Definition: locals.hpp:12