Gnash  0.8.11dev
Math_as.h
Go to the documentation of this file.
1 //
2 // Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012
3 // Free Software Foundation, Inc
4 //
5 // This program is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU General Public License as published by
7 // the Free Software Foundation; either version 3 of the License, or
8 // (at your option) any later version.
9 
10 // This program is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU General Public License for more details.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with this program; if not, write to the Free Software
17 // Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18 //
19 
20 #ifndef GNASH_ASOBJ_MATH_H
21 #define GNASH_ASOBJ_MATH_H
22 
23 namespace gnash {
24  class as_object;
25 }
26 
27 namespace gnash {
28 
29 // Math isn't a proper class, so doesn't need a constructor.
30 
31 void registerMathNative(as_object& global);
32 void math_class_init(as_object& global, const ObjectURI& uri);
33 
34 } // end of gnash namespace
35 
36 // __GMATH_H__
37 #endif
38 
Math_as.h
gnash::toNumber
double toNumber(const as_value &v, const VM &vm)
Convert an as_value to a double.
Definition: VM.cpp:451
gnash::isNaN
bool isNaN(const T &num)
Definition: GnashNumeric.h:62
gnash::key::d
@ d
Definition: GnashKey.h:150
gnash::as_object
The base class for all ActionScript objects.
Definition: as_object.h:162
gnash::VM
The AVM1 virtual machine.
Definition: VM.h:72
gnash
Anonymous namespace for callbacks, local functions, event handlers etc.
Definition: dbus_ext.cpp:41
gnash::registerBuiltinObject
as_object * registerBuiltinObject(as_object &where, Global_as::Properties p, const ObjectURI &uri)
Register a built-in object.
Definition: Global_as.h:114
gnash::PropFlags::dontEnum
@ dontEnum
Protect from enumeration.
Definition: PropFlags.h:36
gnash::PropFlags::dontDelete
@ dontDelete
Protect from deletion.
Definition: PropFlags.h:39
NativeFunction.h
Global_as.h
gnash::getVM
VM & getVM(const as_environment &env)
Definition: as_environment.h:222
gnash::VM::RNG
boost::mt11213b RNG
Definition: VM.h:152
gnash::isFinite
bool isFinite(double d)
Definition: GnashNumeric.h:47
gnash::registerMathNative
void registerMathNative(as_object &proto)
Definition: Math_as.cpp:61
gnash::VM::registerNative
void registerNative(as_c_function_ptr fun, unsigned int x, unsigned int y)
Definition: VM.cpp:268
GnashNumeric.h
VM.h
gnash::VM::randomNumberGenerator
RNG & randomNumberGenerator()
Definition: VM.cpp:80
log.h
fn_call.h
gnash::math_class_init
void math_class_init(as_object &where, const ObjectURI &uri)
Definition: Math_as.cpp:87
test.uri
uri
Definition: test.py:12
gnash::PropFlags::readOnly
@ readOnly
Protect from assigning a value.
Definition: PropFlags.h:42
gnash::ObjectURI
A URI for describing as_objects.
Definition: ObjectURI.h:45