SyFi  0.3
swig::traits_from< std::pair< T, U > > Struct Template Reference

List of all members.

Static Public Member Functions

static PyObject * from (const std::pair< T, U > &val)

Detailed Description

template<class T, class U>
struct swig::traits_from< std::pair< T, U > >

Definition at line 5129 of file SyFiPYTHON_wrap.cxx.


Member Function Documentation

template<class T , class U >
static PyObject* swig::traits_from< std::pair< T, U > >::from ( const std::pair< T, U > &  val) [inline, static]

Definition at line 5130 of file SyFiPYTHON_wrap.cxx.

References swig::from().

                                                     {
        PyObject* obj = PyTuple_New(2);
        PyTuple_SetItem(obj,0,swig::from(val.first));
        PyTuple_SetItem(obj,1,swig::from(val.second));
        return obj;
      }

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines