|
resonance 1.0.1
|
Proxy for one element of a sequence, which SeqBase::operator[]() returns. More...
#include <seqref.h>
Public Member Functions | |
| seqref (SeqBase< T > &sequence, int nOffset) | |
| Address one element and fetch it. | |
| seqref & | operator= (const Object &value) |
| Store an element through the proxy. | |
| operator T () const | |
| Copy the fetched element out. | |
| bool | isTuple () const |
| Report whether the fetched element is a tuple. | |
Proxy for one element of a sequence, which SeqBase::operator[]() returns.
The class is inline throughout and emits no RTTI descriptor. The stack frame of MetNullRenderer::OnRawController() at 0x0030e4c0 lays it out as the sequence reference, the index, and a copy of the element, which the constructor fetches through SeqBase::getItem(). The name is released PyCXX's.
|
inline |
Address one element and fetch it.
| sequence | The sequence. |
| nOffset | The index. |
|
inline |
Store an element through the proxy.
The proxy's copy takes the value through Py::Object's assignment before the sequence stores it, as PythonExtension::getattr_methods() at 0x005ad5e0 expands it.
| value | The element to store. |
|
inline |
Copy the fetched element out.
|
inline |
Report whether the fetched element is a tuple.