|
| | Tuple (PyObject *pyob) |
| | Take a borrowed reference to an existing tuple.
|
| | Tuple (int nSize) |
| | Create a tuple of a given length.
|
| | Tuple (const Object &ob) |
| | Take another handle's reference as a tuple.
|
| virtual void | setItem (int i, const Object &value) |
| | Write one element.
|
| virtual bool | accepts (PyObject *pyob) const |
| | Accept only a tuple.
|
| | SeqBase (const Object &ob) |
| | Take a new reference to an existing object as a sequence.
|
| virtual int | max_size () const |
| | Longest sequence this handle could address.
|
| virtual int | capacity () const |
| | Elements this handle could address without reallocating, which is its length.
|
| virtual void | swap (SeqBase< Object > &other) |
| | Exchange references with another handle of the same kind.
|
| virtual int | size () const |
| | Number of elements.
|
| virtual Object | getItem (int i) const |
| | Read one element.
|
| int | length () const |
| | Number of elements, read without the table.
|
| seqref< Object > | operator[] (int i) |
| | Address one element.
|
| iterator | begin () |
| | Address the first element.
|
| iterator | end () |
| | Address one past the last element.
|
| | 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.
|
Handle on a Python tuple.
Its RTTI descriptor is at 0x00901d80. It has Py::SeqBase<Py::Object> at offset 0 as its one base. Its accessor is at 0x004c67e8.
The vtable at 0x00821c18 has nine entries, and only the type function, the destructor, accepts (), and slot 8 differ from the base table.
| Slot | Member | Address |
| 0 | compiler-generated type function | 0x004c67e8 |
| 1 | compiler-generated destructor | 0x004c6770 |
| 2 | accepts | 0x004c75c0 |
| 3 | inherited max_size | 0x0012ad48 |
| 4 | inherited capacity | 0x0012b378 |
| 5 | inherited swap | 0x0012b3a0 |
| 6 | inherited size | 0x0012b358 |
| 7 | inherited getItem | 0x0012ac48 |
| 8 | setItem | 0x004c7428 |