OpenMW
components/compiler/output.hpp
Go to the documentation of this file.
00001 #ifndef COMPILER_OUTPUT_H_INCLUDED
00002 #define COMPILER_OUTPUT_H_INCLUDED
00003 
00004 #include "literals.hpp"
00005 
00006 #include <vector>
00007 
00008 #include <components/interpreter/types.hpp>
00009 
00010 namespace Compiler
00011 {
00012     class Locals;
00013 
00014     class Output
00015     {
00016             Literals mLiterals;
00017             std::vector<Interpreter::Type_Code> mCode;            
00018             Locals& mLocals;
00019                 
00020         public:
00021         
00022             Output (Locals& locals);
00023     
00024             void getCode (std::vector<Interpreter::Type_Code>& code) const;
00026 
00027             const Literals& getLiterals() const;
00028 
00029             const Locals& getLocals() const;
00030             
00031             const std::vector<Interpreter::Type_Code>& getCode() const;
00032             
00033             Literals& getLiterals();
00034 
00035             std::vector<Interpreter::Type_Code>& getCode();
00036             
00037             Locals& getLocals();
00038             
00039             void clear();
00040     };
00041 }
00042 
00043 #endif
00044