Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Types | Static Public Member Functions
swig::traits_asptr_stdseq< Seq, T > Struct Template Reference

List of all members.

Public Types

typedef Seq sequence
typedef T value_type

Static Public Member Functions

static int asptr (PyObject *obj, sequence **seq)

Detailed Description

template<class Seq, class T = typename Seq::value_type>
struct swig::traits_asptr_stdseq< Seq, T >

Definition at line 4262 of file arc_wrap.cpp.


Member Typedef Documentation

template<class Seq, class T = typename Seq::value_type>
typedef Seq swig::traits_asptr_stdseq< Seq, T >::sequence

Definition at line 4263 of file arc_wrap.cpp.

template<class Seq, class T = typename Seq::value_type>
typedef T swig::traits_asptr_stdseq< Seq, T >::value_type

Definition at line 4264 of file arc_wrap.cpp.


Member Function Documentation

template<class Seq, class T = typename Seq::value_type>
static int swig::traits_asptr_stdseq< Seq, T >::asptr ( PyObject *  obj,
sequence **  seq 
) [inline, static]

Definition at line 4266 of file arc_wrap.cpp.

                                                    {
      if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
       sequence *p;
       if (::SWIG_ConvertPtr(obj,(void**)&p,
                           swig::type_info<sequence>(),0) == SWIG_OK) {
         if (seq) *seq = p;
         return SWIG_OLDOBJ;
       }
      } else if (PySequence_Check(obj)) {
       try {
         PySequence_Cont<value_type> pyseq(obj);
         if (seq) {
           sequence *pseq = new sequence();
           assign(pyseq, pseq);
           *seq = pseq;
           return SWIG_NEWOBJ;
         } else {
           return pyseq.check() ? SWIG_OK : SWIG_ERROR;
         }
       } catch (std::exception& e) {
         if (seq) {
           if (!PyErr_Occurred()) {
             PyErr_SetString(PyExc_TypeError, e.what());
           }
         }
         return SWIG_ERROR;
       }
      }
      return SWIG_ERROR;
    }

Here is the call graph for this function:


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