swig::traits_asval< Type * > Struct Template Reference

List of all members.

Static Public Member Functions

static int asval (PyObject *obj, Type **val)


Detailed Description

template<class Type>
struct swig::traits_asval< Type * >

Definition at line 3656 of file SyFi_wrap.cc.


Member Function Documentation

template<class Type >
static int swig::traits_asval< Type * >::asval ( PyObject *  obj,
Type **  val 
) [inline, static]

Definition at line 3657 of file SyFi_wrap.cc.

References swig::traits_asptr< Type >::asptr(), SyFi::p, run_all::res, and SWIG_IsOK.

03657                                                 {
03658       if (val) {
03659         typedef typename noconst_traits<Type>::noconst_type noconst_type;
03660         noconst_type *p = 0;
03661         int res = traits_asptr<noconst_type>::asptr(obj,  &p);
03662         if (SWIG_IsOK(res)) {
03663           *(const_cast<noconst_type**>(val)) = p;
03664         }
03665         return res;
03666       } else {
03667         return traits_asptr<Type>::asptr(obj, (Type **)(0));
03668       }
03669     }


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