Back to index

nordugrid-arc-nox  1.1.0~rc6
Static Public Member Functions
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 3336 of file arc_wrap.cpp.

Member Function Documentation

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

Definition at line 3337 of file arc_wrap.cpp.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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