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 4694 of file SyFi_wrap.cc.


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 4695 of file SyFi_wrap.cc.

References swig::from().

04695                                                      {
04696         PyObject* obj = PyTuple_New(2);
04697         PyTuple_SetItem(obj,0,swig::from(val.first));
04698         PyTuple_SetItem(obj,1,swig::from(val.second));
04699         return obj;
04700       }


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

Generated on Mon Aug 31 16:17:06 2009 for SyFi by  doxygen 1.5.9