Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Attributes
swig::PySequence_Ref< T > Struct Template Reference

List of all members.

Public Member Functions

 PySequence_Ref (PyObject *seq, int index)
 operator T () const
PySequence_Refoperator= (const T &v)

Private Attributes

PyObject * _seq
int _index

Detailed Description

template<class T>
struct swig::PySequence_Ref< T >

Definition at line 3857 of file arc_wrap.cpp.


Constructor & Destructor Documentation

template<class T >
swig::PySequence_Ref< T >::PySequence_Ref ( PyObject *  seq,
int  index 
) [inline]

Definition at line 3859 of file arc_wrap.cpp.

      : _seq(seq), _index(index)
    {
    }

Member Function Documentation

template<class T >
swig::PySequence_Ref< T >::operator T ( ) const [inline]

Definition at line 3864 of file arc_wrap.cpp.

    {
      swig::PyObject_var 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;
      }
    }

Here is the call graph for this function:

template<class T >
PySequence_Ref& swig::PySequence_Ref< T >::operator= ( const T &  v) [inline]

Definition at line 3881 of file arc_wrap.cpp.

    {
      PySequence_SetItem(_seq, _index, swig::from<T>(v));
      return *this;
    }

Member Data Documentation

template<class T >
int swig::PySequence_Ref< T >::_index [private]

Definition at line 3889 of file arc_wrap.cpp.

template<class T >
PyObject* swig::PySequence_Ref< T >::_seq [private]

Definition at line 3888 of file arc_wrap.cpp.


The documentation for this struct was generated from the following file: