|
resonance 1.0.1
|
Handle on a Python float. More...
#include <float.h>


Public Member Functions | |
| Float (PyObject *pyob) | |
| Take a borrowed reference to an existing float. | |
| virtual bool | accepts (PyObject *pyob) const |
| Accept only a float. | |
| Public Member Functions inherited from Py::Object | |
| Object (PyObject *pyob=Py_None) | |
| Take a borrowed reference and add a count of its own. | |
| Object (const Object &other) | |
| Copy another handle and add a count of its own. | |
| virtual | ~Object () |
| Release the reference. | |
| Object & | operator= (const Object &other) |
| Replace the reference with another handle's. | |
| Object | getAttr (const HxStr &name) const |
| Read one attribute. | |
| String | str () const |
| Produce the text of str() applied to the object. | |
| HxStr | as_string () const |
| Produce the text of str() applied to the object, as a game string. | |
| Type | type () const |
| Produce the object's type. | |
| bool | isType (const Type &type) const |
| Report whether the object's type is a given type. | |
| bool | isTuple () const |
| Report whether the object is a tuple. | |
| bool | isList () const |
| Report whether the object is a list. | |
Additional Inherited Members | |
| Public Attributes inherited from Py::Object | |
| PyObject * | mPtr |
| Wrapped reference, null only between release() and the next assignment. | |
| Protected Member Functions inherited from Py::Object | |
| void | release () |
| Release the reference and empty the handle. | |
| void | set (PyObject *pyob) |
| Replace the reference with a borrowed one and add a count of its own. | |
| void | validate () |
| Enforce this type's accepts() test on the stored reference. | |
Handle on a Python float.
Its RTTI descriptor is at 0x00902170. It has Py::Object at offset 0 as its one base. Its accessor is at 0x00454290 and its destructor at 0x00454218.
Three translation units emit a copy of its vtable, the same shape as Py::Object, and each copy's accepts() slot points at the one body at 0x0040c418. The slots are at 0x0081734c, 0x00819464, and 0x0081b9f4, beside the type function copy at 0x0040c3a0.
|
inlineexplicit |
Take a borrowed reference to an existing float.
Inline. Every script command that converts an argument with PyNumber_Float() stores the new reference in a Py::FromAPI temporary and builds the handle this way, ScriptFadeActivator() at 0x0044b7a0 among them.
| pyob | The float to wrap. |
|
inlinevirtual |
Accept only a float.
| pyob | The reference to test. |
Reimplemented from Py::Object.