Back to index

nordugrid-arc-nox  1.1.0~rc6
Static Public Member Functions
swig::traits_as< Type, value_category > Struct Template Reference

List of all members.

Static Public Member Functions

static Type as (PyObject *obj, bool throw_error)

Detailed Description

template<class Type>
struct swig::traits_as< Type, value_category >

Definition at line 3381 of file arc_wrap.cpp.

Member Function Documentation

template<class Type >
static Type swig::traits_as< Type, value_category >::as ( PyObject *  obj,
bool  throw_error 
) [inline, static]

Definition at line 3382 of file arc_wrap.cpp.

      Type v;
      int res = asval(obj, &v);
      if (!obj || !SWIG_IsOK(res)) {
       if (!PyErr_Occurred()) {
         ::SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
       if (throw_error) throw std::invalid_argument("bad type");
      return v;

Here is the call graph for this function:

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