Static Public Member Functions | |
static int | asptr (PyObject *obj, Type **val) |
Definition at line 3616 of file SyFi_wrap.cc.
static int swig::traits_asptr< Type >::asptr | ( | PyObject * | obj, | |
Type ** | val | |||
) | [inline, static] |
Definition at line 3617 of file SyFi_wrap.cc.
References SyFi::p, run_all::res, SWIG_ConvertPtr, and SWIG_IsOK.
Referenced by swig::traits_as< Type *, pointer_category >::as(), swig::traits_asptr< std::set< T > >::asptr(), swig::traits_asptr< std::list< T > >::asptr(), swig::traits_asptr< std::map< K, T > >::asptr(), swig::traits_asptr< std::vector< T > >::asptr(), swig::asptr(), and swig::traits_asval< Type * >::asval().
03617 { 03618 Type *p; 03619 int res = SWIG_ConvertPtr(obj, (void**)&p, type_info<Type>(), 0); 03620 if (SWIG_IsOK(res)) { 03621 if (val) *val = p; 03622 } 03623 return res; 03624 }