• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • Examples
  • File List
  • File Members

abc_function.h

Go to the documentation of this file.
00001 // 
00002 //   Copyright (C) 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
00003 // 
00004 // This program is free software; you can redistribute it and/or modify
00005 // it under the terms of the GNU General Public License as published by
00006 // the Free Software Foundation; either version 3 of the License, or
00007 // (at your option) any later version.
00008 // 
00009 // This program is distributed in the hope that it will be useful,
00010 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00011 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012 // GNU General Public License for more details.
00013 // 
00014 // You should have received a copy of the GNU General Public License
00015 // along with this program; if not, write to the Free Software
00016 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00017 
00018 #ifndef GNASH_ABC_FUNCTION_H
00019 #define GNASH_ABC_FUNCTION_H
00020 
00021 #ifdef HAVE_CONFIG_H
00022 #include "gnashconfig.h" // GNASH_USE_GC
00023 #endif
00024 
00025 #include "as_function.h"
00026 #include "Method.h"
00027 
00028 namespace gnash {
00029     class as_value;
00030     class CodeStream;
00031 }
00032 
00033 namespace gnash {
00034 namespace abc {
00035 
00036 class Machine;
00037 
00039 class abc_function : public as_function
00040 {
00041 
00042 public:
00043         abc_function(Method* methodInfo, Machine* machine);
00044 
00045         as_value call(const fn_call& fn);
00046 
00047         CodeStream* getCodeStream() const {
00048         return _methodInfo->getBody();
00049     }
00050 
00051         boost::uint32_t getMaxRegisters() const {
00052         return _methodInfo->getMaxRegisters();
00053     }
00054 
00055     bool needsActivation() const {
00056         return _methodInfo->needsActivation();
00057     }
00058 
00059 private:
00060 
00061     Method* _methodInfo;
00062 
00063     Machine* _machine;
00064 
00065 };
00066 
00067 } // namespace abc
00068 } // gnash namespace
00069 
00070 #endif

Generated on Thu Sep 30 2010 14:34:55 for Gnash by  doxygen 1.7.1