|
SyFi
0.3
|
Public Member Functions | |
| SwigPySequence_Ref (PyObject *seq, int index) | |
| operator T () const | |
| SwigPySequence_Ref & | operator= (const T &v) |
Private Attributes | |
| PyObject * | _seq |
| int | _index |
Definition at line 4591 of file SyFiPYTHON_wrap.cxx.
| swig::SwigPySequence_Ref< T >::SwigPySequence_Ref | ( | PyObject * | seq, |
| int | index | ||
| ) | [inline] |
Definition at line 4593 of file SyFiPYTHON_wrap.cxx.
| swig::SwigPySequence_Ref< T >::operator T | ( | ) | const [inline] |
Definition at line 4598 of file SyFiPYTHON_wrap.cxx.
References SWIG_Error, SWIG_Python_AddErrorMsg(), and SWIG_TypeError.
{
swig::SwigVar_PyObject item = PySequence_GetItem(_seq, _index);
try {
return swig::as<T>(item, true);
} catch (std::exception& e) {
char msg[1024];
sprintf(msg, "in sequence element %d ", _index);
if (!PyErr_Occurred()) {
::SWIG_Error(SWIG_TypeError, swig::type_name<T>());
}
SWIG_Python_AddErrorMsg(msg);
SWIG_Python_AddErrorMsg(e.what());
throw;
}
}
| SwigPySequence_Ref& swig::SwigPySequence_Ref< T >::operator= | ( | const T & | v | ) | [inline] |
Definition at line 4615 of file SyFiPYTHON_wrap.cxx.
int swig::SwigPySequence_Ref< T >::_index [private] |
Definition at line 4623 of file SyFiPYTHON_wrap.cxx.
PyObject* swig::SwigPySequence_Ref< T >::_seq [private] |
Definition at line 4622 of file SyFiPYTHON_wrap.cxx.