SyFi  0.3
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 3952 of file SyFiPYTHON_wrap.cxx.


Member Function Documentation

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

Definition at line 3953 of file SyFiPYTHON_wrap.cxx.

References swig::asptr(), SyFi::p, run_all::res, and SWIG_IsOK.

                                                {
      if (val) {
        typedef typename noconst_traits<Type>::noconst_type noconst_type;
        noconst_type *p = 0;
        int res = traits_asptr<noconst_type>::asptr(obj,  &p);
        if (SWIG_IsOK(res)) {
          *(const_cast<noconst_type**>(val)) = p;
        }
        return res;
      } else {
        return traits_asptr<Type>::asptr(obj, (Type **)(0));
      }
    }

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