/* ----------------------------------------------------------------------------
 * This file was automatically generated by SWIG (https://www.swig.org).
 * Version 4.4.0
 *
 * Do not make changes to this file unless you know what you are doing - modify
 * the SWIG interface file instead.
 * ----------------------------------------------------------------------------- */


#define SWIG_VERSION 0x040400
#define SWIGPYTHON
#define SWIG_PYTHON_THREADS
#define SWIG_PYTHON_DIRECTOR_NO_VTABLE

#define SWIG_name    "_classes"
/* -----------------------------------------------------------------------------
 *  This section contains generic SWIG labels for method/variable
 *  declarations/attributes, and other compiler dependent labels.
 * ----------------------------------------------------------------------------- */

/* template workaround for compilers that cannot correctly implement the C++ standard */
#ifndef SWIGTEMPLATEDISAMBIGUATOR
# if defined(__SUNPRO_CC) && (__SUNPRO_CC <= 0x560)
#  define SWIGTEMPLATEDISAMBIGUATOR template
# elif defined(__HP_aCC)
/* Needed even with `aCC -AA' when `aCC -V' reports HP ANSI C++ B3910B A.03.55 */
/* If we find a maximum version that requires this, the test would be __HP_aCC <= 35500 for A.03.55 */
#  define SWIGTEMPLATEDISAMBIGUATOR template
# else
#  define SWIGTEMPLATEDISAMBIGUATOR
# endif
#endif

/* inline attribute */
#ifndef SWIGINLINE
# if defined(__cplusplus) || (defined(__GNUC__) && !defined(__STRICT_ANSI__))
#   define SWIGINLINE inline
# else
#   define SWIGINLINE
# endif
#endif

/* attribute recognised by some compilers to avoid 'unused' warnings */
#ifndef SWIGUNUSED
# if defined(__GNUC__)
#   if !(defined(__cplusplus)) || (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4))
#     define SWIGUNUSED __attribute__ ((__unused__))
#   else
#     define SWIGUNUSED
#   endif
# elif defined(__ICC)
#   define SWIGUNUSED __attribute__ ((__unused__))
# else
#   define SWIGUNUSED
# endif
#endif

#ifndef SWIG_MSC_UNSUPPRESS_4505
# if defined(_MSC_VER)
#   pragma warning(disable : 4505) /* unreferenced local function has been removed */
# endif
#endif

#ifndef SWIGUNUSEDPARM
# ifdef __cplusplus
#   define SWIGUNUSEDPARM(p)
# else
#   define SWIGUNUSEDPARM(p) p SWIGUNUSED
# endif
#endif

/* internal SWIG method */
#ifndef SWIGINTERN
# define SWIGINTERN static SWIGUNUSED
#endif

/* internal inline SWIG method */
#ifndef SWIGINTERNINLINE
# define SWIGINTERNINLINE SWIGINTERN SWIGINLINE
#endif

/* exporting methods */
#if defined(__GNUC__)
#  if (__GNUC__ >= 4) || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4)
#    ifndef GCC_HASCLASSVISIBILITY
#      define GCC_HASCLASSVISIBILITY
#    endif
#  endif
#endif

#ifndef SWIGEXPORT
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   if defined(STATIC_LINKED)
#     define SWIGEXPORT
#   else
#     define SWIGEXPORT __declspec(dllexport)
#   endif
# else
#   if defined(__GNUC__) && defined(GCC_HASCLASSVISIBILITY)
#     define SWIGEXPORT __attribute__ ((visibility("default")))
#   else
#     define SWIGEXPORT
#   endif
# endif
#endif

/* calling conventions for Windows */
#ifndef SWIGSTDCALL
# if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__)
#   define SWIGSTDCALL __stdcall
# else
#   define SWIGSTDCALL
# endif
#endif

/* Deal with Microsoft's attempt at deprecating C standard runtime functions */
#if !defined(SWIG_NO_CRT_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
#endif

/* Deal with Microsoft's attempt at deprecating methods in the standard C++ library */
#if !defined(SWIG_NO_SCL_SECURE_NO_DEPRECATE) && defined(_MSC_VER) && !defined(_SCL_SECURE_NO_DEPRECATE)
# define _SCL_SECURE_NO_DEPRECATE
#endif

/* Deal with Apple's deprecated 'AssertMacros.h' from Carbon-framework */
#if defined(__APPLE__) && !defined(__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES)
# define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
#endif

/* Intel's compiler complains if a variable which was never initialised is
 * cast to void, which is a common idiom which we use to indicate that we
 * are aware a variable isn't used.  So we just silence that warning.
 * See: https://github.com/swig/swig/issues/192 for more discussion.
 */
#ifdef __INTEL_COMPILER
# pragma warning disable 592
#endif

#if defined(__cplusplus) && __cplusplus >=201103L
# define SWIG_NOEXCEPT noexcept
#else
# define SWIG_NOEXCEPT throw()
#endif 

/* -----------------------------------------------------------------------------
 * swigcompat.swg
 *
 * Macros to provide support compatibility with older C and C++ standards.
 *
 * Note that SWIG expects __cplusplus to be defined to the appropriate C++ standard.
 * MSVC users are urged to check and examine the /Zc:__cplusplus compiler option.
 * See https://learn.microsoft.com/en-us/cpp/build/reference/zc-cplusplus.
 * ----------------------------------------------------------------------------- */

/* C99 and C++11 should provide snprintf, but define SWIG_NO_SNPRINTF
 * if you're missing it.
 */
#if ((defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L) || \
     (defined __cplusplus && __cplusplus >= 201103L) || \
     defined SWIG_HAVE_SNPRINTF) && \
    !defined SWIG_NO_SNPRINTF
# define SWIG_snprintf(O,S,F,A) snprintf(O,S,F,A)
# define SWIG_snprintf2(O,S,F,A,B) snprintf(O,S,F,A,B)
#else
/* Fallback versions ignore the buffer size, but most of our uses either have a
 * fixed maximum possible size or dynamically allocate a buffer that's large
 * enough.
 */
# define SWIG_snprintf(O,S,F,A) sprintf(O,F,A)
# define SWIG_snprintf2(O,S,F,A,B) sprintf(O,F,A,B)
#endif


#if defined(__GNUC__) && defined(_WIN32) && !defined(SWIG_PYTHON_NO_HYPOT_WORKAROUND)
/* Workaround for '::hypot' has not been declared', see https://bugs.python.org/issue11566 */
# include <math.h>
#endif

#if !defined(PY_SSIZE_T_CLEAN) && !defined(SWIG_NO_PY_SSIZE_T_CLEAN)
#define PY_SSIZE_T_CLEAN
#endif

#if __GNUC__ >= 7
#pragma GCC diagnostic push
#if defined(__cplusplus) && __cplusplus >=201703L
#pragma GCC diagnostic ignored "-Wregister" /* For python-2.7 headers that use register */
#endif
#endif

#if defined(_DEBUG) && defined(SWIG_PYTHON_INTERPRETER_NO_DEBUG)
/* Use debug wrappers with the Python release dll */

#if defined(_MSC_VER) && _MSC_VER >= 1929
/* Workaround compilation errors when redefining _DEBUG in MSVC 2019 version 16.10 and later
 * See https://github.com/swig/swig/issues/2090 */
# include <corecrt.h>
#endif

# undef _DEBUG
# include <Python.h>
# define _DEBUG 1
#else
# include <Python.h>
#endif


#if __GNUC__ >= 7
#pragma GCC diagnostic pop
#endif

#include <stdio.h>
#include <stdlib.h>

/* -----------------------------------------------------------------------------
 * swigrun.swg
 *
 * This file contains generic C API SWIG runtime support for pointer
 * type checking.
 * ----------------------------------------------------------------------------- */

/* This should only be incremented when either the layout of swig_type_info changes,
   or for whatever reason, the runtime changes incompatibly */
#define SWIG_RUNTIME_VERSION "5"

/* define SWIG_TYPE_TABLE_NAME as "SWIG_TYPE_TABLE" */
#ifdef SWIG_TYPE_TABLE
# define SWIG_QUOTE_STRING(x) #x
# define SWIG_EXPAND_AND_QUOTE_STRING(x) SWIG_QUOTE_STRING(x)
# define SWIG_TYPE_TABLE_NAME SWIG_EXPAND_AND_QUOTE_STRING(SWIG_TYPE_TABLE)
#else
# define SWIG_TYPE_TABLE_NAME
#endif

/*
  You can use the SWIGRUNTIME and SWIGRUNTIMEINLINE macros for
  creating a static or dynamic library from the SWIG runtime code.
  In 99.9% of the cases, SWIG just needs to declare them as 'static'.

  But only do this if strictly necessary, ie, if you have problems
  with your compiler or suchlike.
*/

#ifndef SWIGRUNTIME
# define SWIGRUNTIME SWIGINTERN
#endif

#ifndef SWIGRUNTIMEINLINE
# define SWIGRUNTIMEINLINE SWIGRUNTIME SWIGINLINE
#endif

/*  Generic buffer size */
#ifndef SWIG_BUFFER_SIZE
# define SWIG_BUFFER_SIZE 1024
#endif

/* Flags for pointer conversions */
#define SWIG_POINTER_DISOWN        0x1
#define SWIG_CAST_NEW_MEMORY       0x2
#define SWIG_POINTER_NO_NULL       0x4
#define SWIG_POINTER_CLEAR         0x8
#define SWIG_POINTER_RELEASE       (SWIG_POINTER_CLEAR | SWIG_POINTER_DISOWN)

/* Flags for new pointer objects */
#define SWIG_POINTER_OWN           0x1


/*
   Flags/methods for returning states.

   The SWIG conversion methods, as ConvertPtr, return an integer
   that tells if the conversion was successful or not. And if not,
   an error code can be returned (see swigerrors.swg for the codes).

   Use the following macros/flags to set or process the returning
   states.

   In old versions of SWIG, code such as the following was usually written:

     if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) {
       // success code
     } else {
       //fail code
     }

   Now you can be more explicit:

    int res = SWIG_ConvertPtr(obj,vptr,ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
    } else {
      // fail code
    }

   which is the same really, but now you can also do

    Type *ptr;
    int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags);
    if (SWIG_IsOK(res)) {
      // success code
      if (SWIG_IsNewObj(res) {
        ...
	delete *ptr;
      } else {
        ...
      }
    } else {
      // fail code
    }

   I.e., now SWIG_ConvertPtr can return new objects and you can
   identify the case and take care of the deallocation. Of course that
   also requires SWIG_ConvertPtr to return new result values, such as

      int SWIG_ConvertPtr(obj, ptr,...) {
        if (<obj is ok>) {
          if (<need new object>) {
            *ptr = <ptr to new allocated object>;
            return SWIG_NEWOBJ;
          } else {
            *ptr = <ptr to old object>;
            return SWIG_OLDOBJ;
          }
        } else {
          return SWIG_BADOBJ;
        }
      }

   Of course, returning the plain '0(success)/-1(fail)' still works, but you can be
   more explicit by returning SWIG_BADOBJ, SWIG_ERROR or any of the
   SWIG errors code.

   Finally, if the SWIG_CASTRANK_MODE is enabled, the result code
   allows returning the 'cast rank', for example, if you have this

       int food(double)
       int fooi(int);

   and you call

      food(1)   // cast rank '1'  (1 -> 1.0)
      fooi(1)   // cast rank '0'

   just use the SWIG_AddCast()/SWIG_CheckState()
*/

#define SWIG_OK                    (0)
/* Runtime errors are < 0 */
#define SWIG_ERROR                 (-1)
/* Errors in range -1 to -99 are in swigerrors.swg (errors for all languages including those not using the runtime) */
/* Errors in range -100 to -199 are language specific errors defined in *errors.swg */
/* Errors < -200 are generic runtime specific errors */
#define SWIG_ERROR_RELEASE_NOT_OWNED (-200)

#define SWIG_IsOK(r)               (r >= 0)
#define SWIG_ArgError(r)           ((r != SWIG_ERROR) ? r : SWIG_TypeError)

/* The CastRankLimit says how many bits are used for the cast rank */
#define SWIG_CASTRANKLIMIT         (1 << 8)
/* The NewMask denotes the object was created (using new/malloc) */
#define SWIG_NEWOBJMASK            (SWIG_CASTRANKLIMIT  << 1)
/* The TmpMask is for in/out typemaps that use temporary objects */
#define SWIG_TMPOBJMASK            (SWIG_NEWOBJMASK << 1)
/* Simple returning values */
#define SWIG_BADOBJ                (SWIG_ERROR)
#define SWIG_OLDOBJ                (SWIG_OK)
#define SWIG_NEWOBJ                (SWIG_OK | SWIG_NEWOBJMASK)
#define SWIG_TMPOBJ                (SWIG_OK | SWIG_TMPOBJMASK)
/* Check, add and del object mask methods */
#define SWIG_AddNewMask(r)         (SWIG_IsOK(r) ? (r | SWIG_NEWOBJMASK) : r)
#define SWIG_DelNewMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_NEWOBJMASK) : r)
#define SWIG_IsNewObj(r)           (SWIG_IsOK(r) && (r & SWIG_NEWOBJMASK))
#define SWIG_AddTmpMask(r)         (SWIG_IsOK(r) ? (r | SWIG_TMPOBJMASK) : r)
#define SWIG_DelTmpMask(r)         (SWIG_IsOK(r) ? (r & ~SWIG_TMPOBJMASK) : r)
#define SWIG_IsTmpObj(r)           (SWIG_IsOK(r) && (r & SWIG_TMPOBJMASK))

/* Cast-Rank Mode */
#if defined(SWIG_CASTRANK_MODE)
#  ifndef SWIG_TypeRank
#    define SWIG_TypeRank             unsigned long
#  endif
#  ifndef SWIG_MAXCASTRANK            /* Default cast allowed */
#    define SWIG_MAXCASTRANK          (2)
#  endif
#  define SWIG_CASTRANKMASK          ((SWIG_CASTRANKLIMIT) -1)
#  define SWIG_CastRank(r)           (r & SWIG_CASTRANKMASK)
SWIGINTERNINLINE int SWIG_AddCast(int r) {
  return SWIG_IsOK(r) ? ((SWIG_CastRank(r) < SWIG_MAXCASTRANK) ? (r + 1) : SWIG_ERROR) : r;
}
SWIGINTERNINLINE int SWIG_CheckState(int r) {
  return SWIG_IsOK(r) ? SWIG_CastRank(r) + 1 : 0;
}
#else /* no cast-rank mode */
#  define SWIG_AddCast(r) (r)
#  define SWIG_CheckState(r) (SWIG_IsOK(r) ? 1 : 0)
#endif


#include <string.h>

#ifdef __cplusplus
extern "C" {
#endif

typedef void *(*swig_converter_func)(void *, int *);
typedef struct swig_type_info *(*swig_dycast_func)(void **);

/* Structure to store information on one type */
typedef struct swig_type_info {
  const char             *name;			/* mangled name of this type */
  const char             *str;			/* human readable name of this type */
  swig_dycast_func        dcast;		/* dynamic cast function down a hierarchy */
  struct swig_cast_info  *cast;			/* linked list of types that can cast into this type */
  void                   *clientdata;		/* language specific type data */
  int                    owndata;		/* flag if the structure owns the clientdata */
} swig_type_info;

/* Structure to store a type and conversion function used for casting */
typedef struct swig_cast_info {
  swig_type_info         *type;			/* pointer to type that is equivalent to this type */
  swig_converter_func     converter;		/* function to cast the void pointers */
  struct swig_cast_info  *next;			/* pointer to next array of casts | pointer to cast hashed by value */
  unsigned int            value;		/* index of the last valid element in the array | typename hash value */
} swig_cast_info;

/* Structure used to store module information
 * Each module generates one structure like this, and the runtime collects
 * all of these structures and stores them in a circularly linked list.*/
typedef struct swig_module_info {
  swig_type_info         **types;		/* Array of pointers to swig_type_info structures that are in this module */
  size_t                 size;		        /* Number of types in this module */
  struct swig_module_info *next;		/* Pointer to next element in circularly linked list */
  swig_type_info         **type_initial;	/* Array of initially generated type structures */
  swig_cast_info         **cast_initial;	/* Array of initially generated casting structures */
  void                    *clientdata;		/* Language specific module data */
} swig_module_info;

/*
  Compare two type names skipping the space characters, therefore
  "char*" == "char *" and "Class<int>" == "Class<int >", etc.

  Return 0 when the two name types are equivalent, as in
  strncmp, but skipping ' '.
*/
SWIGRUNTIME int
SWIG_TypeNameComp(const char *f1, const char *l1,
		  const char *f2, const char *l2) {
  for (;(f1 != l1) && (f2 != l2); ++f1, ++f2) {
    while ((*f1 == ' ') && (f1 != l1)) ++f1;
    while ((*f2 == ' ') && (f2 != l2)) ++f2;
    if (*f1 != *f2) return (*f1 > *f2) ? 1 : -1;
  }
  return (int)((l1 - f1) - (l2 - f2));
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if equal, -1 if nb < tb, 1 if nb > tb
*/
SWIGRUNTIME int
SWIG_TypeCmp(const char *nb, const char *tb) {
  int equiv = 1;
  const char* te = tb + strlen(tb);
  const char* ne = nb;
  while (equiv != 0 && *ne) {
    for (nb = ne; *ne; ++ne) {
      if (*ne == '|') break;
    }
    equiv = SWIG_TypeNameComp(nb, ne, tb, te);
    if (*ne) ++ne;
  }
  return equiv;
}

/*
  Check type equivalence in a name list like <name1>|<name2>|...
  Return 0 if not equal, 1 if equal
*/
SWIGRUNTIME int
SWIG_TypeEquiv(const char *nb, const char *tb) {
  return SWIG_TypeCmp(nb, tb) == 0 ? 1 : 0;
}

/*
 * Hash function for type name strings, based on maRushPrime1Hash (http://amsoftware.narod.ru/algo2.html)
 */
SWIGRUNTIME unsigned int SWIG_Hash(const char *str, unsigned int len) {
  const unsigned char *data = (const unsigned char *)str;
  unsigned int hash = len, i = 0, k;
  int rem = (int)len;

  while (rem >= (int)sizeof(unsigned int)) {
    k = *(unsigned int *)data;
    k += i++;
    hash ^= k;
    hash *= 171717;
    data += sizeof(unsigned int);
    rem -= sizeof(unsigned int);
  }

  switch (rem) {
    case 3: k = (unsigned int)(data[2]) << 16;
            k |= (unsigned int)(data[1]) << 8;
            k |= (unsigned int)(data[0]);
            k += i++;
            hash ^= k;
            hash *= 171717;
            break;
    case 2: k = (unsigned int)(data[1]) << 8;
            k |= (unsigned int)(data[0]);
            k += i++;
            hash ^= k;
            hash *= 171717;
            break;
    case 1: k = (unsigned int)(data[0]);
            k += i++;
            hash ^= k;
            hash *= 171717;
            break;
  }
  return hash;
}

/*
  Check the typename
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheck(const char *c, swig_type_info *ty) {
  static const unsigned int scan_threshold = 4;
  if (ty) {
    swig_cast_info *head = ty->cast;
    unsigned int hash_value = 0;
    int hashed = 0;

    while (head) {

      if (strcmp(head->type->name, c) == 0) {
        return head;
      }

      if (head->value) {
        swig_cast_info *iter;
        swig_cast_info *last = head + head->value;
        swig_cast_info *first = head + 1;
        int search = 1;

        if (!hashed) {
          if (head->value < scan_threshold) {
            for (iter = first; iter <= last; iter++) {
              if (strcmp(iter->type->name, c) == 0) {
                return iter;
              }
            }
            search = 0;
          } else {
            hashed = 1;
            hash_value = SWIG_Hash(c, (unsigned int)strlen(c));
          }
        }

        if (search) {
          /* Binary search over sorted <'next'|'value'> pairs */
          do {
            iter = first + ((last - first) >> 1);
            if (iter->value < hash_value) {
              first = iter + 1;
            } else if (iter->value == hash_value) {

              if (strcmp(iter->next->type->name, c) == 0) {
                return iter->next;
              }

              /* Hash collision check */
              for (last = iter + 1; last->next && last->value == hash_value; last++) {
                if (strcmp(last->next->type->name, c) == 0) {
                  return last->next;
                }
              }
              for (first = iter - 1; first != head && first->value == hash_value; first--) {
                if (strcmp(first->next->type->name, c) == 0) {
                  return first->next;
                }
              }
              break;
            } else
              last = iter - 1;
          } while (first <= last);
        }
      }
      head = head->next;
    }
  }
  return 0;
}

/*
  Check the type by type address
*/
SWIGRUNTIME swig_cast_info *
SWIG_TypeCheckStruct(const swig_type_info *from, swig_type_info *ty) {
  if (ty) {
    swig_cast_info *head = ty->cast;
    while (head) {
      if (head->type == from) {
        return head;
      }

      if (head->value) {
        swig_cast_info *iter;
        swig_cast_info *last = head + head->value;
        swig_cast_info *first = head + 1;

        /* Binary search over sorted array of casts */
        do {
          iter = first + ((last - first) >> 1);
          if (iter->type < from) {
            first = iter + 1;
          } else if (iter->type == from) {
            return iter;
          } else
            last = iter - 1;
        } while (first <= last);
      }
      head = head->next;
    }
  }
  return 0;
}

/*
  Cast a pointer up an inheritance hierarchy
*/
SWIGRUNTIMEINLINE void *
SWIG_TypeCast(swig_cast_info *ty, void *ptr, int *newmemory) {
  return ((!ty) || (!ty->converter)) ? ptr : (*ty->converter)(ptr, newmemory);
}

/*
   Dynamic pointer casting. Down an inheritance hierarchy
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeDynamicCast(swig_type_info *ty, void **ptr) {
  swig_type_info *lastty = ty;
  if (!ty || !ty->dcast) return ty;
  while (ty && (ty->dcast)) {
    ty = (*ty->dcast)(ptr);
    if (ty) lastty = ty;
  }
  return lastty;
}

/*
  Return the name associated with this type
*/
SWIGRUNTIMEINLINE const char *
SWIG_TypeName(const swig_type_info *ty) {
  return ty->name;
}

/*
  Return the pretty name associated with this type,
  that is an unmangled type name in a form presentable to the user.
*/
SWIGRUNTIME const char *
SWIG_TypePrettyName(const swig_type_info *type) {
  /* The "str" field contains the equivalent pretty names of the
     type, separated by vertical-bar characters.  Choose the last
     name. It should be the most specific; a fully resolved name
     but not necessarily with default template parameters expanded. */
  if (!type) return NULL;
  if (type->str != NULL) {
    const char *last_name = type->str;
    const char *s;
    for (s = type->str; *s; s++)
      if (*s == '|') last_name = s+1;
    return last_name;
  }
  else
    return type->name;
}

/*
   Set the clientdata field for a type
*/
SWIGRUNTIME void
SWIG_TypeClientData(swig_type_info *ti, void *clientdata) {
  swig_cast_info *head = ti->cast;
  /* if (ti->clientdata == clientdata) return; */
  ti->clientdata = clientdata;

  while (head) {
    swig_cast_info *cast;
    for (cast = head; (cast - head) <= head->value; cast++) {
      if (!cast->converter) {
        swig_type_info *tc = cast->type;
        if (!tc->clientdata) {
          SWIG_TypeClientData(tc, clientdata);
        }
      }
    }
    head = head->next;
  }
}

SWIGRUNTIME void
SWIG_TypeNewClientData(swig_type_info *ti, void *clientdata) {
  SWIG_TypeClientData(ti, clientdata);
  ti->owndata = 1;
}

/*
  Search for a swig_type_info structure only by mangled name
  Search is a O(log #types)

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_MangledTypeQueryModule(swig_module_info *start,
                            swig_module_info *end,
		            const char *name) {
  swig_module_info *iter = start;
  do {
    if (iter->size) {
      size_t l = 0;
      size_t r = iter->size - 1;
      do {
	/* since l+r >= 0, we can (>> 1) instead (/ 2) */
	size_t i = (l + r) >> 1;
	const char *iname = iter->types[i]->name;
	if (iname) {
	  int compare = strcmp(name, iname);
	  if (compare == 0) {
	    return iter->types[i];
	  } else if (compare < 0) {
	    if (i) {
	      r = i - 1;
	    } else {
	      break;
	    }
	  } else if (compare > 0) {
	    l = i + 1;
	  }
	} else {
	  break; /* should never happen */
	}
      } while (l <= r);
    }
    iter = iter->next;
  } while (iter != end);
  return 0;
}

/*
  Search for a swig_type_info structure for either a mangled name or a human readable name.
  It first searches the mangled names of the types, which is a O(log #types)
  If a type is not found it then searches the human readable names, which is O(#types).

  We start searching at module start, and finish searching when start == end.
  Note: if start == end at the beginning of the function, we go all the way around
  the circular list.
*/
SWIGRUNTIME swig_type_info *
SWIG_TypeQueryModule(swig_module_info *start,
                     swig_module_info *end,
		     const char *name) {
  /* STEP 1: Search the name field using binary search */
  swig_type_info *ret = SWIG_MangledTypeQueryModule(start, end, name);
  if (ret) {
    return ret;
  } else {
    /* STEP 2: If the type hasn't been found, do a complete search
       of the str field (the human readable name) */
    swig_module_info *iter = start;
    do {
      size_t i = 0;
      for (; i < iter->size; ++i) {
	if (iter->types[i]->str && (SWIG_TypeEquiv(iter->types[i]->str, name)))
	  return iter->types[i];
      }
      iter = iter->next;
    } while (iter != end);
  }

  /* neither found a match */
  return 0;
}

/*
   Pack binary data into a string
*/
SWIGRUNTIME char *
SWIG_PackData(char *c, void *ptr, size_t sz) {
  static const char hex[17] = "0123456789abcdef";
  const unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu =  u + sz;
  for (; u != eu; ++u) {
    unsigned char uu = *u;
    *(c++) = hex[(uu & 0xf0) >> 4];
    *(c++) = hex[uu & 0xf];
  }
  return c;
}

/*
   Unpack binary data from a string
*/
SWIGRUNTIME const char *
SWIG_UnpackData(const char *c, void *ptr, size_t sz) {
  unsigned char *u = (unsigned char *) ptr;
  const unsigned char *eu = u + sz;
  for (; u != eu; ++u) {
    char d = *(c++);
    unsigned char uu;
    if ((d >= '0') && (d <= '9'))
      uu = (unsigned char)((d - '0') << 4);
    else if ((d >= 'a') && (d <= 'f'))
      uu = (unsigned char)((d - ('a'-10)) << 4);
    else
      return (char *) 0;
    d = *(c++);
    if ((d >= '0') && (d <= '9'))
      uu |= (unsigned char)(d - '0');
    else if ((d >= 'a') && (d <= 'f'))
      uu |= (unsigned char)(d - ('a'-10));
    else
      return (char *) 0;
    *u = uu;
  }
  return c;
}

/*
   Pack 'void *' into a string buffer.
*/
SWIGRUNTIME char *
SWIG_PackVoidPtr(char *buff, void *ptr, const char *name, size_t bsz) {
  char *r = buff;
  if ((2*sizeof(void *) + 2) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,&ptr,sizeof(void *));
  if (strlen(name) + 1 > (bsz - (r - buff))) return 0;
  strcpy(r,name);
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackVoidPtr(const char *c, void **ptr, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      *ptr = (void *) 0;
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sizeof(void *));
}

SWIGRUNTIME char *
SWIG_PackDataName(char *buff, void *ptr, size_t sz, const char *name, size_t bsz) {
  char *r = buff;
  size_t lname = (name ? strlen(name) : 0);
  if ((2*sz + 2 + lname) > bsz) return 0;
  *(r++) = '_';
  r = SWIG_PackData(r,ptr,sz);
  if (lname) {
    strncpy(r,name,lname+1);
  } else {
    *r = 0;
  }
  return buff;
}

SWIGRUNTIME const char *
SWIG_UnpackDataName(const char *c, void *ptr, size_t sz, const char *name) {
  if (*c != '_') {
    if (strcmp(c,"NULL") == 0) {
      memset(ptr,0,sz);
      return name;
    } else {
      return 0;
    }
  }
  return SWIG_UnpackData(++c,ptr,sz);
}

#ifdef __cplusplus
}
#endif

/* SWIG Errors applicable to all language modules, values are reserved from -1 to -99 */
#define  SWIG_UnknownError    	   -1
#define  SWIG_IOError        	   -2
#define  SWIG_RuntimeError   	   -3
#define  SWIG_IndexError     	   -4
#define  SWIG_TypeError      	   -5
#define  SWIG_DivisionByZero 	   -6
#define  SWIG_OverflowError  	   -7
#define  SWIG_SyntaxError    	   -8
#define  SWIG_ValueError     	   -9
#define  SWIG_SystemError    	   -10
#define  SWIG_AttributeError 	   -11
#define  SWIG_MemoryError    	   -12
#define  SWIG_NullReferenceError   -13


#if PY_VERSION_HEX >= 0x03030000 && !defined(SWIG_NO_HEAPTYPES)
#if !defined(SWIG_HEAPTYPES)
#define SWIG_HEAPTYPES
#endif
#endif

/* Compatibility macros for Python 3 */
#if PY_VERSION_HEX >= 0x03000000

#define PyClass_Check(obj) PyObject_IsInstance(obj, (PyObject *)&PyType_Type)
#define PyInt_Check(x) PyLong_Check(x)
#define PyInt_AsLong(x) PyLong_AsLong(x)
#define PyInt_FromLong(x) PyLong_FromLong(x)
#define PyInt_FromSize_t(x) PyLong_FromSize_t(x)
#define PyString_Check(name) PyBytes_Check(name)
#define PyString_FromString(x) PyUnicode_FromString(x)
#define PyString_Format(fmt, args)  PyUnicode_Format(fmt, args)
#define PyString_AsString(str) PyBytes_AsString(str)
#define PyString_Size(str) PyBytes_Size(str)	
#define PyString_InternFromString(key) PyUnicode_InternFromString(key)
#define Py_TPFLAGS_HAVE_CLASS Py_TPFLAGS_BASETYPE
#define _PyLong_FromSsize_t(x) PyLong_FromSsize_t(x)

#endif

/* SWIG APIs for compatibility of both Python 2 & 3 */

#if PY_VERSION_HEX >= 0x03000000
#  define SWIG_Python_str_FromFormat PyUnicode_FromFormat
#else
#  define SWIG_Python_str_FromFormat PyString_FromFormat
#endif

#if defined(SWIG_HEAPTYPES)
#if PY_VERSION_HEX < 0x030c0000
#include <structmember.h>
#define Py_READONLY READONLY
#define Py_T_PYSSIZET T_PYSSIZET
#endif
#endif

#include <stddef.h> /* For offsetof */


/* Wrapper around PyUnicode_AsUTF8AndSize - call Py_XDECREF on the returned pbytes when finished with the returned string */
SWIGINTERN const char *
SWIG_PyUnicode_AsUTF8AndSize(PyObject *str, Py_ssize_t *psize, PyObject **pbytes)
{
#if PY_VERSION_HEX >= 0x03030000
# if !defined(Py_LIMITED_API) || Py_LIMITED_API+0 >= 0x030A0000
  *pbytes = NULL;
  return PyUnicode_AsUTF8AndSize(str, psize);
# else
  const char *chars;
  *pbytes = PyUnicode_AsUTF8String(str);
  chars = *pbytes ? PyBytes_AsString(*pbytes) : NULL;
  if (chars && psize)
    *psize = PyBytes_Size(*pbytes);
  return chars;
# endif
#else
  char *chars = NULL;
  *pbytes = NULL;
  PyString_AsStringAndSize(str, &chars, psize);
  return chars;
#endif
}

SWIGINTERN PyObject *
SWIG_Python_str_FromChar(const char *c)
{
#if PY_VERSION_HEX >= 0x03000000
  return PyUnicode_FromString(c); 
#else
  return PyString_FromString(c);
#endif
}

#define SWIG_RUNTIME_MODULE "swig_runtime_data" SWIG_RUNTIME_VERSION

/* SWIGPY_USE_CAPSULE is no longer used within SWIG itself, but some user interface files check for it. */
# define SWIGPY_USE_CAPSULE
#ifdef SWIGPYTHON_BUILTIN
# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule_builtin" SWIG_TYPE_TABLE_NAME
#else
# define SWIGPY_CAPSULE_ATTR_NAME "type_pointer_capsule" SWIG_TYPE_TABLE_NAME
#endif
#define SWIGPY_CAPSULE_NAME SWIG_RUNTIME_MODULE "." SWIGPY_CAPSULE_ATTR_NAME

#if PY_VERSION_HEX < 0x03020000
#define PyDescr_TYPE(x) (((PyDescrObject *)(x))->d_type)
#define PyDescr_NAME(x) (((PyDescrObject *)(x))->d_name)
#define Py_hash_t long
#endif

#if defined(Py_LIMITED_API)
# define PyTuple_GET_ITEM PyTuple_GetItem
/* Note that PyTuple_SetItem() has different semantics from PyTuple_SET_ITEM as it decref's the original tuple item, so in general they cannot be used
  interchangeably. However in SWIG-generated code PyTuple_SET_ITEM is only used with newly initialized tuples without any items and for them this does work. */
# define PyTuple_SET_ITEM PyTuple_SetItem
# define PyTuple_GET_SIZE PyTuple_Size
# define PyCFunction_GET_FLAGS PyCFunction_GetFlags
# define PyCFunction_GET_FUNCTION PyCFunction_GetFunction
# define PyCFunction_GET_SELF PyCFunction_GetSelf
# define PyList_GET_ITEM PyList_GetItem
# define PyList_SET_ITEM PyList_SetItem
# define PySliceObject PyObject
#endif

/* Increment and Decrement wrappers - for portability when using the stable abi and for performance otherwise */
#ifdef Py_LIMITED_API
# define SWIG_Py_INCREF Py_IncRef
# define SWIG_Py_XINCREF Py_IncRef
# define SWIG_Py_DECREF Py_DecRef
# define SWIG_Py_XDECREF Py_DecRef
#else
# define SWIG_Py_INCREF Py_INCREF
# define SWIG_Py_XINCREF Py_XINCREF
# define SWIG_Py_DECREF Py_DECREF
# define SWIG_Py_XDECREF Py_XDECREF
#endif

#if PY_VERSION_HEX >= 0x03000000
#if PY_VERSION_HEX < 0x030d00a6
SWIGINTERN PyObject *
SWIG_PyType_GetFullyQualifiedName(PyTypeObject *type) {
  PyObject *result = NULL;
  PyObject *qualname = PyObject_GetAttrString((PyObject *)type, "__qualname__");
  if (qualname) {
    PyObject *mod = PyObject_GetAttrString((PyObject *)type, "__module__");
    if (mod) {
      if (PyUnicode_Check(mod) && PyUnicode_CompareWithASCIIString(mod, "builtins") && PyUnicode_CompareWithASCIIString(mod, "__main__")) {
        result = PyUnicode_FromFormat("%U%c%U", mod, '.', qualname);
        SWIG_Py_DECREF(qualname);
      } else {
        result = qualname;
      }
      SWIG_Py_DECREF(mod);
    } else {
      result = qualname;
    }
  }

  return result;
}
#else
# define SWIG_PyType_GetFullyQualifiedName PyType_GetFullyQualifiedName
#endif
#endif

/* gh-114329 added PyList_GetItemRef() to Python 3.13.0a4 */
#if PY_VERSION_HEX < 0x030d00a4
SWIGINTERN PyObject *
SWIG_PyList_GetItemRef(PyObject *op, Py_ssize_t index) {
  PyObject *item = PyList_GetItem(op, index);
  Py_XINCREF(item);
  return item;
}
#else
# define SWIG_PyList_GetItemRef PyList_GetItemRef
#endif

/* gh-106004 added PyDict_GetItemRef() and PyDict_GetItemStringRef() to Python 3.13.0a1
   functions are renamed here for compatibility with abi3audit */
#if PY_VERSION_HEX < 0x030d00a1
SWIGINTERN int
SWIG_PyDict_GetItemRef(PyObject *mp, PyObject *key, PyObject **result) {
#if PY_VERSION_HEX >= 0x03000000
  PyObject *item = PyDict_GetItemWithError(mp, key);
#else
  PyObject *item = _PyDict_GetItemWithError(mp, key);
#endif
  if (item != NULL) {
    *result = (PyObject *)(item);
    SWIG_Py_INCREF(*result);
    return 1;
  }
  if (!PyErr_Occurred()) {
    *result = NULL;
    return 0;
  }
  *result = NULL;
  return -1;
}

SWIGINTERN int
SWIG_PyDict_GetItemStringRef(PyObject *mp, const char *key, PyObject **result) {
  int res;
#if PY_VERSION_HEX >= 0x03000000
  PyObject *key_obj = PyUnicode_FromString(key);
#else
  PyObject *key_obj = PyString_FromString(key);
#endif
  if (key_obj == NULL) {
    *result = NULL;
    return -1;
  }
  res = SWIG_PyDict_GetItemRef(mp, key_obj, result);
  Py_DECREF(key_obj);
  return res;
}
#else
# define SWIG_PyDict_GetItemRef PyDict_GetItemRef
# define SWIG_PyDict_GetItemStringRef PyDict_GetItemStringRef
#endif

/* -----------------------------------------------------------------------------
 * error manipulation
 * ----------------------------------------------------------------------------- */

SWIGRUNTIME PyObject*
SWIG_Python_ErrorType(int code) {
  PyObject* type = 0;
  switch(code) {
  case SWIG_MemoryError:
    type = PyExc_MemoryError;
    break;
  case SWIG_IOError:
    type = PyExc_IOError;
    break;
  case SWIG_RuntimeError:
    type = PyExc_RuntimeError;
    break;
  case SWIG_IndexError:
    type = PyExc_IndexError;
    break;
  case SWIG_TypeError:
    type = PyExc_TypeError;
    break;
  case SWIG_DivisionByZero:
    type = PyExc_ZeroDivisionError;
    break;
  case SWIG_OverflowError:
    type = PyExc_OverflowError;
    break;
  case SWIG_SyntaxError:
    type = PyExc_SyntaxError;
    break;
  case SWIG_ValueError:
    type = PyExc_ValueError;
    break;
  case SWIG_SystemError:
    type = PyExc_SystemError;
    break;
  case SWIG_AttributeError:
    type = PyExc_AttributeError;
    break;
  case SWIG_NullReferenceError:
    type = PyExc_TypeError;
    break;
  default:
    type = PyExc_RuntimeError;
  }
  return type;
}


SWIGRUNTIME void
SWIG_Python_AddErrorMsg(const char* mesg)
{
  PyObject *type = 0;
  PyObject *value = 0;
  PyObject *traceback = 0;

  if (PyErr_Occurred())
    PyErr_Fetch(&type, &value, &traceback);
  if (value) {
    PyObject *old_str = PyObject_Str(value);
    PyObject *bytes = NULL;
    const char *tmp = SWIG_PyUnicode_AsUTF8AndSize(old_str, NULL, &bytes);
    PyErr_Clear();
    SWIG_Py_XINCREF(type);
    if (tmp)
      PyErr_Format(type, "%s %s", tmp, mesg);
    else
      PyErr_Format(type, "%s", mesg);
    SWIG_Py_XDECREF(bytes);
    SWIG_Py_DECREF(old_str);
    SWIG_Py_DECREF(value);
  } else {
    PyErr_SetString(PyExc_RuntimeError, mesg);
  }
}

SWIGRUNTIME int
SWIG_Python_TypeErrorOccurred(PyObject *obj)
{
  PyObject *error;
  if (obj)
    return 0;
  error = PyErr_Occurred();
  return error && PyErr_GivenExceptionMatches(error, PyExc_TypeError);
}

SWIGRUNTIME void
SWIG_Python_RaiseOrModifyTypeError(const char *message)
{
  if (SWIG_Python_TypeErrorOccurred(NULL)) {
    /* Use existing TypeError to preserve stacktrace and enhance with given message */
    PyObject *newvalue;
    PyObject *type = NULL, *value = NULL, *traceback = NULL;
    PyErr_Fetch(&type, &value, &traceback);
#if PY_VERSION_HEX >= 0x03000000
    newvalue = PyUnicode_FromFormat("%S\nAdditional information:\n%s", value, message);
#else
    newvalue = PyString_FromFormat("%s\nAdditional information:\n%s", PyString_AsString(value), message);
#endif
    if (newvalue) {
      SWIG_Py_XDECREF(value);
      PyErr_Restore(type, newvalue, traceback);
    } else {
      PyErr_Restore(type, value, traceback);
    }
  } else {
    /* Raise TypeError using given message */
    PyErr_SetString(PyExc_TypeError, message);
  }
}

#if defined(SWIG_PYTHON_NO_THREADS)
#  if defined(SWIG_PYTHON_THREADS)
#    undef SWIG_PYTHON_THREADS
#  endif
#endif
#if defined(SWIG_PYTHON_THREADS) /* Threading support is enabled */
#  if !defined(SWIG_PYTHON_USE_GIL) && !defined(SWIG_PYTHON_NO_USE_GIL)
#    define SWIG_PYTHON_USE_GIL
#  endif
#  if defined(SWIG_PYTHON_USE_GIL) /* Use PyGILState threads calls */
#    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
#      if PY_VERSION_HEX < 0x03070000
#        define SWIG_PYTHON_INITIALIZE_THREADS PyEval_InitThreads()
#      else
#        define SWIG_PYTHON_INITIALIZE_THREADS
#      endif
#    endif
#    ifdef __cplusplus /* C++ code */
       class SWIG_Python_Thread_Block {
         bool status;
         PyGILState_STATE state;
       public:
         void end() { if (status) { PyGILState_Release(state); status = false;} }
         SWIG_Python_Thread_Block() : status(true), state(PyGILState_Ensure()) {}
         ~SWIG_Python_Thread_Block() { end(); }
       };
       class SWIG_Python_Thread_Allow {
         bool status;
         PyThreadState *save;
       public:
         void end() { if (status) { status = false; PyEval_RestoreThread(save); }}
         SWIG_Python_Thread_Allow() : status(true), save(PyEval_SaveThread()) {}
         ~SWIG_Python_Thread_Allow() { end(); }
       };
#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   SWIG_Python_Thread_Block _swig_thread_block
#      define SWIG_PYTHON_THREAD_END_BLOCK     _swig_thread_block.end()
#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   SWIG_Python_Thread_Allow _swig_thread_allow
#      define SWIG_PYTHON_THREAD_END_ALLOW     _swig_thread_allow.end()
#    else /* C code */
#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK   PyGILState_STATE _swig_thread_block = PyGILState_Ensure()
#      define SWIG_PYTHON_THREAD_END_BLOCK     PyGILState_Release(_swig_thread_block)
#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW   PyThreadState *_swig_thread_allow = PyEval_SaveThread()
#      define SWIG_PYTHON_THREAD_END_ALLOW     PyEval_RestoreThread(_swig_thread_allow)
#    endif
#  else /* Old thread way, not implemented, user must provide it */
#    if !defined(SWIG_PYTHON_INITIALIZE_THREADS)
#      define SWIG_PYTHON_INITIALIZE_THREADS
#    endif
#    if !defined(SWIG_PYTHON_THREAD_BEGIN_BLOCK)
#      define SWIG_PYTHON_THREAD_BEGIN_BLOCK
#    endif
#    if !defined(SWIG_PYTHON_THREAD_END_BLOCK)
#      define SWIG_PYTHON_THREAD_END_BLOCK
#    endif
#    if !defined(SWIG_PYTHON_THREAD_BEGIN_ALLOW)
#      define SWIG_PYTHON_THREAD_BEGIN_ALLOW
#    endif
#    if !defined(SWIG_PYTHON_THREAD_END_ALLOW)
#      define SWIG_PYTHON_THREAD_END_ALLOW
#    endif
#  endif
#else /* No thread support */
#  define SWIG_PYTHON_INITIALIZE_THREADS
#  define SWIG_PYTHON_THREAD_BEGIN_BLOCK
#  define SWIG_PYTHON_THREAD_END_BLOCK
#  define SWIG_PYTHON_THREAD_BEGIN_ALLOW
#  define SWIG_PYTHON_THREAD_END_ALLOW
#endif

/* -----------------------------------------------------------------------------
 * Python API portion that goes into the runtime
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#endif

/* -----------------------------------------------------------------------------
 * Constant declarations
 * ----------------------------------------------------------------------------- */

/* Constant Types */
#define SWIG_PY_POINTER 4
#define SWIG_PY_BINARY  5

/* Constant information structure */
typedef struct swig_const_info {
  int type;
  const char *name;
  long lvalue;
  double dvalue;
  void   *pvalue;
  swig_type_info **ptype;
} swig_const_info;

#ifdef __cplusplus
}
#endif


/* -----------------------------------------------------------------------------
 * pyrun.swg
 *
 * This file contains the runtime support for Python modules
 * and includes code for managing global variables and pointer
 * type checking.
 *
 * ----------------------------------------------------------------------------- */

#if PY_VERSION_HEX < 0x02070000 /* 2.7.0 */
# error "This version of SWIG only supports Python >= 2.7"
#endif

#if PY_VERSION_HEX >= 0x03000000 && PY_VERSION_HEX < 0x03050000
# error "This version of SWIG only supports Python 3 >= 3.5"
#endif

/* Common SWIG API */

/* for raw pointers */
#define SWIG_Python_ConvertPtr(obj, pptr, type, flags)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, 0)
#define SWIG_ConvertPtr(obj, pptr, type, flags)         SWIG_Python_ConvertPtr(obj, pptr, type, flags)
#define SWIG_ConvertPtrAndOwn(obj,pptr,type,flags,own)  SWIG_Python_ConvertPtrAndOwn(obj, pptr, type, flags, own)

#ifdef SWIGPYTHON_BUILTIN
#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(self, ptr, type, flags)
#else
#define SWIG_NewPointerObj(ptr, type, flags)            SWIG_Python_NewPointerObj(NULL, ptr, type, flags)
#endif

#define SWIG_InternalNewPointerObj(ptr, type, flags)	SWIG_Python_NewPointerObj(NULL, ptr, type, flags)

#define SWIG_CheckImplicit(ty)                          SWIG_Python_CheckImplicit(ty) 
#define SWIG_AcquirePtr(ptr, src)                       SWIG_Python_AcquirePtr(ptr, src)
#define swig_owntype                                    int

/* for raw packed data */
#define SWIG_ConvertPacked(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
#define SWIG_NewPackedObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)

/* for class or struct pointers */
#define SWIG_ConvertInstance(obj, pptr, type, flags)    SWIG_ConvertPtr(obj, pptr, type, flags)
#define SWIG_NewInstanceObj(ptr, type, flags)           SWIG_NewPointerObj(ptr, type, flags)

/* for C or C++ function pointers */
#define SWIG_ConvertFunctionPtr(obj, pptr, type)        SWIG_Python_ConvertFunctionPtr(obj, pptr, type)
#define SWIG_NewFunctionPtrObj(ptr, type)               SWIG_Python_NewPointerObj(NULL, ptr, type, 0)

/* for C++ member pointers, ie, member methods */
#define SWIG_ConvertMember(obj, ptr, sz, ty)            SWIG_Python_ConvertPacked(obj, ptr, sz, ty)
#define SWIG_NewMemberObj(ptr, sz, type)                SWIG_Python_NewPackedObj(ptr, sz, type)


/* Runtime API */

#define SWIG_GetModule(clientdata)                      SWIG_Python_GetModule(clientdata)
#define SWIG_SetModule(clientdata, pointer)             SWIG_Python_SetModule(pointer)
#define SWIG_NewClientData(obj)                         SwigPyClientData_New(obj)

#define SWIG_SetErrorObj                                SWIG_Python_SetErrorObj                            
#define SWIG_SetErrorMsg                        	SWIG_Python_SetErrorMsg				   
#define SWIG_ErrorType(code)                    	SWIG_Python_ErrorType(code)                        
#define SWIG_Error(code, msg)            		SWIG_Python_SetErrorMsg(SWIG_ErrorType(code), msg) 
#define SWIG_fail                        		goto fail					   

/* Runtime API implementation */

/* Error manipulation */

SWIGINTERN void 
SWIG_Python_SetErrorObj(PyObject *errtype, PyObject *obj) {
  SWIG_PYTHON_THREAD_BEGIN_BLOCK; 
  PyErr_SetObject(errtype, obj);
  SWIG_Py_DECREF(obj);
  SWIG_PYTHON_THREAD_END_BLOCK;
}

SWIGINTERN void 
SWIG_Python_SetErrorMsg(PyObject *errtype, const char *msg) {
  SWIG_PYTHON_THREAD_BEGIN_BLOCK;
  PyErr_SetString(errtype, msg);
  SWIG_PYTHON_THREAD_END_BLOCK;
}

#define SWIG_Python_Raise(obj, type, desc)  SWIG_Python_SetErrorObj(SWIG_Python_ExceptionType(desc), obj)

/* Set a constant value */

#if defined(SWIGPYTHON_BUILTIN)

SWIGINTERN void
SwigPyBuiltin_AddPublicSymbol(PyObject *seq, const char *key) {
  PyObject *s = PyString_InternFromString(key);
  PyList_Append(seq, s);
  SWIG_Py_DECREF(s);
}

SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, PyObject *public_interface, const char *name, PyObject *obj) {   
  PyDict_SetItemString(d, name, obj);
  SWIG_Py_DECREF(obj);
  if (public_interface)
    SwigPyBuiltin_AddPublicSymbol(public_interface, name);
}

#else

SWIGINTERN void
SWIG_Python_SetConstant(PyObject *d, const char *name, PyObject *obj) {   
  PyDict_SetItemString(d, name, obj);
  SWIG_Py_DECREF(obj);
}

#endif

/* SWIG runtime data Python module */
static PyObject *Swig_runtime_data_module_global = NULL;

/* Create/obtain the single swig_runtime_data module which is used across different SWIG generated modules */
SWIGINTERN PyObject *
SWIG_runtime_data_module(void) {
  if (!Swig_runtime_data_module_global) {
#if PY_VERSION_HEX >= 0x030d0000
    /* free-threading note: the GIL is always enabled when this function is first called
       by SWIG_init, so there's no risk of race conditions */
    Swig_runtime_data_module_global = PyImport_AddModuleRef(SWIG_RUNTIME_MODULE);
#elif PY_VERSION_HEX >= 0x03000000
    Swig_runtime_data_module_global = PyImport_AddModule(SWIG_RUNTIME_MODULE);
    SWIG_Py_XINCREF(Swig_runtime_data_module_global);
#else
    static PyMethodDef swig_empty_runtime_method_table[] = { {NULL, NULL, 0, NULL} }; /* Sentinel */
    Swig_runtime_data_module_global = Py_InitModule(SWIG_RUNTIME_MODULE, swig_empty_runtime_method_table);
    SWIG_Py_XINCREF(Swig_runtime_data_module_global);
#endif
  }
  assert(Swig_runtime_data_module_global);
  return Swig_runtime_data_module_global;
}

/* Append a value to the result obj */
SWIGINTERN PyObject*
SWIG_Python_AppendOutput(PyObject* result, PyObject* obj, int is_void) {
  if (!result) {
    result = obj;
  } else if (result == Py_None && is_void) {
    SWIG_Py_DECREF(result);
    result = obj;
  } else {
    if (!PyList_Check(result)) {
      PyObject *o2 = result;
      result = PyList_New(1);
      if (result) {
        PyList_SET_ITEM(result, 0, o2);
      } else {
        SWIG_Py_DECREF(obj);
        return o2;
      }
    }
    PyList_Append(result,obj);
    SWIG_Py_DECREF(obj);
  }
  return result;
}

/* Unpack the argument tuple */

SWIGINTERN Py_ssize_t
SWIG_Python_UnpackTuple(PyObject *args, const char *name, Py_ssize_t min, Py_ssize_t max, PyObject **objs)
{
  if (!args) {
    if (!min && !max) {
      return 1;
    } else {
      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got none", 
		   name, (min == max ? "" : "at least "), (int)min);
      return 0;
    }
  }  
  if (!PyTuple_Check(args)) {
    if (min <= 1 && max >= 1) {
      Py_ssize_t i;
      objs[0] = args;
      for (i = 1; i < max; ++i) {
	objs[i] = 0;
      }
      return 2;
    }
    PyErr_SetString(PyExc_SystemError, "UnpackTuple() argument list is not a tuple");
    return 0;
  } else {
    Py_ssize_t l = PyTuple_GET_SIZE(args);
    if (l < min) {
      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
		   name, (min == max ? "" : "at least "), (int)min, (int)l);
      return 0;
    } else if (l > max) {
      PyErr_Format(PyExc_TypeError, "%s expected %s%d arguments, got %d", 
		   name, (min == max ? "" : "at most "), (int)max, (int)l);
      return 0;
    } else {
      Py_ssize_t i;
      for (i = 0; i < l; ++i) {
	objs[i] = PyTuple_GET_ITEM(args, i);
      }
      for (; l < max; ++l) {
	objs[l] = 0;
      }
      return i + 1;
    }    
  }
}

SWIGINTERN int
SWIG_Python_CheckNoKeywords(PyObject *kwargs, const char *name) {
  int no_kwargs = 1;
  if (kwargs) {
    assert(PyDict_Check(kwargs));
    if (PyDict_Size(kwargs) > 0) {
      PyErr_Format(PyExc_TypeError, "%s() does not take keyword arguments", name);
      no_kwargs = 0;
    }
  }
  return no_kwargs;
}

/* A functor is a function object with one single object argument */
#define SWIG_Python_CallFunctor(functor, obj)	        PyObject_CallFunctionObjArgs(functor, obj, NULL);

/*
  Helper for static pointer initialization for both C and C++ code, for example
  static PyObject *SWIG_STATIC_POINTER(MyVar) = NewSomething(...);
*/
#ifdef __cplusplus
#define SWIG_STATIC_POINTER(var)  var
#else
#define SWIG_STATIC_POINTER(var)  var = 0; if (!var) var
#endif

#ifdef __cplusplus
extern "C" {
#endif

/* Python-specific SWIG API */
#define SWIG_newvarlink()                             SWIG_Python_newvarlink()
#define SWIG_addvarlink(p, name, get_attr, set_attr)  SWIG_Python_addvarlink(p, name, get_attr, set_attr)
#define SWIG_InstallConstants(d, constants)           SWIG_Python_InstallConstants(d, constants)
 
/* -----------------------------------------------------------------------------
 * global variable support code.
 * ----------------------------------------------------------------------------- */
 
typedef struct swig_globalvar {   
  char       *name;                  /* Name of global variable */
  PyObject *(*get_attr)(void);       /* Return the current value */
  int       (*set_attr)(PyObject *); /* Set the value */
  struct swig_globalvar *next;
} swig_globalvar;

typedef struct swig_varlinkobject {
  PyObject_HEAD
  swig_globalvar *vars;
} swig_varlinkobject;

SWIGINTERN PyObject *
SwigVarLink_repr(PyObject *SWIGUNUSEDPARM(v)) {
#if PY_VERSION_HEX >= 0x03000000
  return PyUnicode_InternFromString("<Swig global variables>");
#else
  return PyString_FromString("<Swig global variables>");
#endif
}

SWIGINTERN PyObject *
SwigVarLink_str(PyObject *o) {
  swig_varlinkobject *v = (swig_varlinkobject *) o;
#if PY_VERSION_HEX >= 0x03000000
  PyObject *str = PyUnicode_InternFromString("(");
  PyObject *tail;
  PyObject *joined;
  swig_globalvar *var;
  for (var = v->vars; var; var=var->next) {
    tail = PyUnicode_FromString(var->name);
    joined = PyUnicode_Concat(str, tail);
    SWIG_Py_DECREF(str);
    SWIG_Py_DECREF(tail);
    str = joined;
    if (var->next) {
        tail = PyUnicode_InternFromString(", ");
        joined = PyUnicode_Concat(str, tail);
        SWIG_Py_DECREF(str);
        SWIG_Py_DECREF(tail);
        str = joined;
    }
  }
  tail = PyUnicode_InternFromString(")");
  joined = PyUnicode_Concat(str, tail);
  SWIG_Py_DECREF(str);
  SWIG_Py_DECREF(tail);
  str = joined;
#else
  PyObject *str = PyString_FromString("(");
  swig_globalvar *var;
  for (var = v->vars; var; var=var->next) {
    PyString_ConcatAndDel(&str,PyString_FromString(var->name));
    if (var->next) PyString_ConcatAndDel(&str,PyString_FromString(", "));
  }
  PyString_ConcatAndDel(&str,PyString_FromString(")"));
#endif
  return str;
}

SWIGINTERN void
SwigVarLink_dealloc(PyObject *o) {
  swig_varlinkobject *v = (swig_varlinkobject *) o;
  swig_globalvar *var = v->vars;
  while (var) {
    swig_globalvar *n = var->next;
    free(var->name);
    free(var);
    var = n;
  }
}

SWIGINTERN PyObject *
SwigVarLink_getattr(PyObject *o, char *n) {
  swig_varlinkobject *v = (swig_varlinkobject *) o;
  PyObject *res = NULL;
  swig_globalvar *var = v->vars;
  while (var) {
    if (strcmp(var->name,n) == 0) {
      res = (*var->get_attr)();
      break;
    }
    var = var->next;
  }
  if (res == NULL && !PyErr_Occurred()) {
    PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
  }
  return res;
}

SWIGINTERN int
SwigVarLink_setattr(PyObject *o, char *n, PyObject *p) {
  swig_varlinkobject *v = (swig_varlinkobject *) o;
  int res = 1;
  swig_globalvar *var = v->vars;
  while (var) {
    if (strcmp(var->name,n) == 0) {
      res = (*var->set_attr)(p);
      break;
    }
    var = var->next;
  }
  if (res == 1 && !PyErr_Occurred()) {
    PyErr_Format(PyExc_AttributeError, "Unknown C global variable '%s'", n);
  }
  return res;
}

SWIGINTERN PyTypeObject*
SwigVarLink_TypeOnce(void) {
  static char SwigVarLink_doc[] = "Swig variable link object";
#ifndef SWIG_HEAPTYPES
  static PyTypeObject varlink_type;
  static int type_init = 0;
  if (!type_init) {
    const PyTypeObject tmp = {
#if PY_VERSION_HEX >= 0x03000000
      PyVarObject_HEAD_INIT(NULL, 0)
#else
      PyObject_HEAD_INIT(NULL)
      0,                                  /* ob_size */
#endif
      SWIG_RUNTIME_MODULE ".SwigVarLink", /* tp_name */
      sizeof(swig_varlinkobject),         /* tp_basicsize */
      0,                                  /* tp_itemsize */
      (destructor) SwigVarLink_dealloc,   /* tp_dealloc */
#if PY_VERSION_HEX < 0x030800b4
      (printfunc)0,                       /* tp_print */
#else
      (Py_ssize_t)0,                      /* tp_vectorcall_offset */
#endif
      (getattrfunc) SwigVarLink_getattr,  /* tp_getattr */
      (setattrfunc) SwigVarLink_setattr,  /* tp_setattr */
      0,                                  /* tp_compare */
      (reprfunc) SwigVarLink_repr,        /* tp_repr */
      0,                                  /* tp_as_number */
      0,                                  /* tp_as_sequence */
      0,                                  /* tp_as_mapping */
      0,                                  /* tp_hash */
      0,                                  /* tp_call */
      (reprfunc) SwigVarLink_str,         /* tp_str */
      0,                                  /* tp_getattro */
      0,                                  /* tp_setattro */
      0,                                  /* tp_as_buffer */
      0,                                  /* tp_flags */
      SwigVarLink_doc,                    /* tp_doc */
      0,                                  /* tp_traverse */
      0,                                  /* tp_clear */
      0,                                  /* tp_richcompare */
      0,                                  /* tp_weaklistoffset */
      0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, /* tp_iter -> tp_weaklist */
      0,                                  /* tp_del */
      0,                                  /* tp_version_tag */
#if PY_VERSION_HEX >= 0x03040000
      0,                                  /* tp_finalize */
#endif
#if PY_VERSION_HEX >= 0x03080000
      0,                                  /* tp_vectorcall */
#endif
#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
      0,                                  /* tp_print */
#endif
#if PY_VERSION_HEX >= 0x030c0000
      0,                                  /* tp_watched */
#endif
#if PY_VERSION_HEX >= 0x030d00a4
      0,                                  /* tp_versions_used */
#endif
#ifdef COUNT_ALLOCS
      0,                                  /* tp_allocs */
      0,                                  /* tp_frees */
      0,                                  /* tp_maxalloc */
      0,                                  /* tp_prev */
      0                                   /* tp_next */
#endif
    };
    PyObject *runtime_data_module = SWIG_runtime_data_module();
    varlink_type = tmp;
    type_init = 1;
    if (PyType_Ready(&varlink_type) < 0)
      return NULL;
    if (PyModule_AddObject(runtime_data_module, "SwigVarLink", (PyObject *)&varlink_type) == 0)
      SWIG_Py_INCREF((PyObject *)&varlink_type);
  }
  return &varlink_type;
#else
  PyType_Slot slots[] = {
    { Py_tp_dealloc, (void *)SwigVarLink_dealloc },
    { Py_tp_repr, (void *)SwigVarLink_repr },
    { Py_tp_getattr, (void *)SwigVarLink_getattr },
    { Py_tp_setattr, (void *)SwigVarLink_setattr },
    { Py_tp_str, (void *)SwigVarLink_str },
    { Py_tp_doc, (void *)SwigVarLink_doc },
    { 0, NULL }
  };
  PyType_Spec spec = {
    SWIG_RUNTIME_MODULE ".SwigVarLink",
    sizeof(swig_varlinkobject),
    0,
    Py_TPFLAGS_DEFAULT,
    slots
  };
  PyObject *pytype = PyType_FromSpec(&spec);
  PyObject *runtime_data_module = SWIG_runtime_data_module();
  if (pytype && PyModule_AddObject(runtime_data_module, "SwigVarLink", pytype) == 0)
    SWIG_Py_INCREF(pytype);
  return (PyTypeObject *)pytype;
#endif
}

SWIGRUNTIME PyTypeObject*
SwigVarLink_Type(void) {
  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigVarLink_TypeOnce();
  return type;
}

/* Create a variable linking object for use later */
SWIGINTERN PyObject *
SWIG_Python_newvarlink(void) {
  swig_varlinkobject *result = PyObject_New(swig_varlinkobject, SwigVarLink_Type());
  if (result) {
    result->vars = 0;
  }
  return ((PyObject*) result);
}

SWIGINTERN void 
SWIG_Python_addvarlink(PyObject *p, const char *name, PyObject *(*get_attr)(void), int (*set_attr)(PyObject *p)) {
  swig_varlinkobject *v = (swig_varlinkobject *) p;
  swig_globalvar *gv = (swig_globalvar *) malloc(sizeof(swig_globalvar));
  if (gv) {
    size_t size = strlen(name)+1;
    gv->name = (char *)malloc(size);
    if (gv->name) {
      memcpy(gv->name, name, size);
      gv->get_attr = get_attr;
      gv->set_attr = set_attr;
      gv->next = v->vars;
    }
  }
  v->vars = gv;
}


static PyObject *Swig_Globals_global = NULL;
  
SWIGINTERN PyObject *
SWIG_globals(void) {
  if (Swig_Globals_global == NULL) {
    Swig_Globals_global = SWIG_newvarlink();
  }
  return Swig_Globals_global;
}

#ifdef __cplusplus
}
#endif

/* -----------------------------------------------------------------------------
 * Pointer declarations
 * ----------------------------------------------------------------------------- */

/* Flags for new pointer objects */
#define SWIG_POINTER_NOSHADOW       (SWIG_POINTER_OWN      << 1)
#define SWIG_POINTER_NEW            (SWIG_POINTER_NOSHADOW | SWIG_POINTER_OWN)

#define SWIG_POINTER_IMPLICIT_CONV  (SWIG_POINTER_DISOWN   << 1)

#define SWIG_BUILTIN_TP_INIT	    (SWIG_POINTER_OWN << 2)
#define SWIG_BUILTIN_INIT	    (SWIG_BUILTIN_TP_INIT | SWIG_POINTER_OWN)

#ifdef __cplusplus
extern "C" {
#endif

/* The python void return value */

SWIGRUNTIMEINLINE PyObject * 
SWIG_Py_Void(void)
{
  PyObject *none = Py_None;
  SWIG_Py_INCREF(none);
  return none;
}

/* SwigPyClientData */

typedef struct {
  PyObject *klass;
  PyObject *newraw;
  PyObject *newargs;
  PyObject *destroy;
  int delargs;
  int implicitconv;
  PyTypeObject *pytype;
} SwigPyClientData;

SWIGRUNTIMEINLINE int 
SWIG_Python_CheckImplicit(swig_type_info *ty)
{
  SwigPyClientData *data = (SwigPyClientData *)ty->clientdata;
  int fail = data ? data->implicitconv : 0;
  if (fail)
    PyErr_SetString(PyExc_TypeError, "Implicit conversion is prohibited for explicit constructors.");
  return fail;
}

SWIGRUNTIMEINLINE PyObject *
SWIG_Python_ExceptionType(swig_type_info *desc) {
  SwigPyClientData *data = desc ? (SwigPyClientData *) desc->clientdata : 0;
  PyObject *klass = data ? data->klass : 0;
  return (klass ? klass : PyExc_RuntimeError);
}


SWIGRUNTIME SwigPyClientData * 
SwigPyClientData_New(PyObject* obj)
{
  if (!obj) {
    return 0;
  } else {
    SwigPyClientData *data = (SwigPyClientData *)malloc(sizeof(SwigPyClientData));
    /* the klass element */
    data->klass = obj;
    SWIG_Py_INCREF(data->klass);
    /* the newraw method and newargs arguments used to create a new raw instance */
    if (PyClass_Check(obj)) {
      data->newraw = 0;
      SWIG_Py_INCREF(obj);
      data->newargs = obj;
    } else {
      data->newraw = PyObject_GetAttrString(data->klass, "__new__");
      if (data->newraw) {
        data->newargs = PyTuple_New(1);
        if (data->newargs) {
          SWIG_Py_INCREF(obj);
          PyTuple_SET_ITEM(data->newargs, 0, obj);
        } else {
          SWIG_Py_DECREF(data->newraw);
          SWIG_Py_DECREF(data->klass);
          free(data);
          return 0;
        }
      } else {
        SWIG_Py_INCREF(obj);
        data->newargs = obj;
      }
    }
    /* the destroy method, aka as the C++ delete method */
    data->destroy = PyObject_GetAttrString(data->klass, "__swig_destroy__");
    if (PyErr_Occurred()) {
      PyErr_Clear();
      data->destroy = 0;
    }
    if (data->destroy) {
      data->delargs = !(PyCFunction_GET_FLAGS(data->destroy) & METH_O);
    } else {
      data->delargs = 0;
    }
    data->implicitconv = 0;
    data->pytype = 0;
    return data;
  }
}

SWIGRUNTIME void 
SwigPyClientData_Del(SwigPyClientData *data)
{
  SWIG_Py_XDECREF(data->klass);
  SWIG_Py_XDECREF(data->newraw);
  SWIG_Py_XDECREF(data->newargs);
  SWIG_Py_XDECREF(data->destroy);
  free(data);
}

/* =============== SwigPyObject =====================*/

typedef struct {
  PyObject_HEAD
  void *ptr;
  swig_type_info *ty;
  int own;
  PyObject *next;
  PyObject *swigdict;
  PyObject *weakreflist;
} SwigPyObject;


#ifdef SWIGPYTHON_BUILTIN

SWIGRUNTIME PyObject *
SwigPyObject_get___dict__(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
  SwigPyObject *sobj = (SwigPyObject *)v;

  if (!sobj->swigdict)
    sobj->swigdict = PyDict_New();

  SWIG_Py_XINCREF(sobj->swigdict);
  return sobj->swigdict;
}

#endif

SWIGRUNTIME PyObject *
SwigPyObject_long(SwigPyObject *v)
{
  return PyLong_FromVoidPtr(v->ptr);
}

SWIGRUNTIME PyObject *
SwigPyObject_format(const char* fmt, SwigPyObject *v)
{
  PyObject *res = NULL;
  PyObject *args = PyTuple_New(1);
  if (args) {
    PyObject *val = SwigPyObject_long(v);
    if (val) {
      PyObject *ofmt;
      PyTuple_SET_ITEM(args, 0, val);
      ofmt = SWIG_Python_str_FromChar(fmt);
      if (ofmt) {
#if PY_VERSION_HEX >= 0x03000000
        res = PyUnicode_Format(ofmt,args);
#else
        res = PyString_Format(ofmt,args);
#endif
        SWIG_Py_DECREF(ofmt);
      }
    }
    SWIG_Py_DECREF(args);
  }
  return res;
}

SWIGRUNTIME PyObject *
SwigPyObject_oct(SwigPyObject *v)
{
  return SwigPyObject_format("%o",v);
}

SWIGRUNTIME PyObject *
SwigPyObject_hex(SwigPyObject *v)
{
  return SwigPyObject_format("%x",v);
}

SWIGRUNTIME PyObject *
SwigPyObject_repr(SwigPyObject *v)
{
  const char *name = SWIG_TypePrettyName(v->ty);
  PyObject *repr = SWIG_Python_str_FromFormat("<Swig Object of type '%s' at %p>", (name ? name : "unknown"), (void *)v);
  if (repr && v->next) {
    PyObject *nrep = SwigPyObject_repr((SwigPyObject *)v->next);
    if (nrep) {
# if PY_VERSION_HEX >= 0x03000000
      PyObject *joined = PyUnicode_Concat(repr, nrep);
      SWIG_Py_DECREF(repr);
      SWIG_Py_DECREF(nrep);
      repr = joined;
# else
      PyString_ConcatAndDel(&repr,nrep);
# endif
    } else {
      SWIG_Py_DECREF(repr);
      repr = NULL;
    }
  }
  return repr;
}

/* We need a version taking two PyObject* parameters so it's a valid
 * PyCFunction to use in SwigPyObject_methods[]. */
SWIGRUNTIME PyObject *
SwigPyObject_repr2(PyObject *v, PyObject *SWIGUNUSEDPARM(args))
{
  return SwigPyObject_repr((SwigPyObject*)v);
}

SWIGRUNTIME int
SwigPyObject_compare(PyObject *v, PyObject *w)
{
  /* tp_compare is only called when both objects have the same type, so
   * the casts are guaranteed to be ok. */
  void *i = ((SwigPyObject *)v)->ptr;
  void *j = ((SwigPyObject *)w)->ptr;
  return (i < j) ? -1 : ((i > j) ? 1 : 0);
}

SWIGRUNTIMEINLINE int SwigPyObject_Check(PyObject *);

/* Added for Python 3.x, would it also be useful for Python 2.x? */
SWIGRUNTIME PyObject*
SwigPyObject_richcompare(PyObject *v, PyObject *w, int op)
{
  PyObject* res = NULL;
  if (!PyErr_Occurred()) {
    /* Per https://docs.python.org/3/c-api/typeobj.html#c.PyTypeObject.tp_richcompare
     * the first argument is guaranteed to be an instance of SwigPyObject, but the
     * second is not, so we typecheck that one. */
    if ((op != Py_EQ && op != Py_NE) || !SwigPyObject_Check(w)) {
      SWIG_Py_INCREF(Py_NotImplemented);
      return Py_NotImplemented;
    }
    res = PyBool_FromLong( (SwigPyObject_compare(v, w)==0) == (op == Py_EQ) ? 1 : 0);
  }
  return res;
}


SWIGRUNTIME PyTypeObject* SwigPyObject_TypeOnce(void);

#ifdef SWIGPYTHON_BUILTIN
static swig_type_info *SwigPyObject_stype = 0;
SWIGRUNTIME PyTypeObject*
SwigPyObject_Type(void) {
    SwigPyClientData *cd;
    assert(SwigPyObject_stype);
    cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
    assert(cd);
    assert(cd->pytype);
    return cd->pytype;
}
#else
SWIGRUNTIME PyTypeObject*
SwigPyObject_Type(void) {
  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyObject_TypeOnce();
  return type;
}
#endif

SWIGRUNTIMEINLINE int
SwigPyObject_Check(PyObject *op) {
  PyTypeObject *target_tp = SwigPyObject_Type();
  PyTypeObject *op_type = Py_TYPE(op);
#ifdef SWIGPYTHON_BUILTIN
  /* Only builtin types have SwigPyObject as a base type */
  return PyType_IsSubtype(op_type, target_tp);
#else
  /* Check for an exact match to SwigPyObject */
  if (op_type == target_tp) {
    return 1;
  } else {
    /* Fallback for multiple modules */
#if PY_VERSION_HEX >= 0x03000000
    int cmp;
    PyObject *tpname = SWIG_PyType_GetFullyQualifiedName(op_type);
    if (!tpname)
      return 0;
    cmp = PyUnicode_CompareWithASCIIString(tpname, SWIG_RUNTIME_MODULE ".SwigPyObject");
    SWIG_Py_DECREF(tpname);
    return cmp == 0;
#else
    return strcmp(op_type->tp_name, SWIG_RUNTIME_MODULE ".SwigPyObject") == 0;
#endif
  }
#endif
}

SWIGRUNTIME PyObject *
SwigPyObject_New(void *ptr, swig_type_info *ty, int own);

static PyObject* Swig_Capsule_global = NULL;

SWIGRUNTIME void
SwigPyObject_dealloc(PyObject *v)
{
  SwigPyObject *sobj = (SwigPyObject *) v;
  PyObject *next = sobj->next;
  if (sobj->own == SWIG_POINTER_OWN) {
    swig_type_info *ty = sobj->ty;
    SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
    PyObject *destroy = data ? data->destroy : 0;
    if (destroy) {
      /* destroy is always a VARARGS method */
      PyObject *res;

      /* PyObject_CallFunction() has the potential to silently drop
         the active exception.  In cases of unnamed temporary
         variable or where we just finished iterating over a generator
         StopIteration will be active right now, and this needs to
         remain true upon return from SwigPyObject_dealloc.  So save
         and restore. */
      
      PyObject *type = NULL, *value = NULL, *traceback = NULL;
      PyErr_Fetch(&type, &value, &traceback);

      if (data->delargs) {
        /* we need to create a temporary object to carry the destroy operation */
        PyObject *tmp = SwigPyObject_New(sobj->ptr, ty, 0);
        if (tmp) {
          res = SWIG_Python_CallFunctor(destroy, tmp);
        } else {
          res = 0;
        }
        SWIG_Py_XDECREF(tmp);
      } else {
        PyCFunction meth = PyCFunction_GET_FUNCTION(destroy);
        PyObject *mself = PyCFunction_GET_SELF(destroy);
        res = ((*meth)(mself, v));
      }
      if (!res)
        PyErr_WriteUnraisable(destroy);

      PyErr_Restore(type, value, traceback);

      SWIG_Py_XDECREF(res);
    } 
#if !defined(SWIG_PYTHON_SILENT_MEMLEAK)
    else {
      const char *name = SWIG_TypePrettyName(ty);
      printf("swig/python detected a memory leak of type '%s', no destructor found.\n", (name ? name : "unknown"));
    }
#endif
    SWIG_Py_XDECREF(Swig_Capsule_global);
  }
  SWIG_Py_XDECREF(next);
  SWIG_Py_XDECREF(sobj->swigdict);
  PyObject_Free(v);
}

SWIGRUNTIME PyObject* 
SwigPyObject_append(PyObject* v, PyObject* next)
{
  SwigPyObject *sobj = (SwigPyObject *) v;
  if (!SwigPyObject_Check(next)) {
    PyErr_SetString(PyExc_TypeError, "Attempt to append a non SwigPyObject");
    return NULL;
  }
  ((SwigPyObject *)next)->next = sobj->next;
  sobj->next = next;
  SWIG_Py_INCREF(next);
  return SWIG_Py_Void();
}

SWIGRUNTIME PyObject* 
SwigPyObject_next(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
{
  SwigPyObject *sobj = (SwigPyObject *) v;
  if (sobj->next) {    
    SWIG_Py_INCREF(sobj->next);
    return sobj->next;
  } else {
    return SWIG_Py_Void();
  }
}

SWIGINTERN PyObject*
SwigPyObject_disown(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
{
  SwigPyObject *sobj = (SwigPyObject *)v;
  sobj->own = 0;
  return SWIG_Py_Void();
}

SWIGINTERN PyObject*
SwigPyObject_acquire(PyObject* v, PyObject *SWIGUNUSEDPARM(args))
{
  SwigPyObject *sobj = (SwigPyObject *)v;
  sobj->own = SWIG_POINTER_OWN;
  return SWIG_Py_Void();
}

SWIGINTERN PyObject*
SwigPyObject_own(PyObject *v, PyObject *args)
{
  PyObject *val = 0;
  if (!PyArg_UnpackTuple(args, "own", 0, 1, &val)) {
    return NULL;
  } else {
    SwigPyObject *sobj = (SwigPyObject *)v;
    PyObject *obj = PyBool_FromLong(sobj->own);
    if (val) {
      if (PyObject_IsTrue(val)) {
        SWIG_Py_DECREF(SwigPyObject_acquire(v,args));
      } else {
        SWIG_Py_DECREF(SwigPyObject_disown(v,args));
      }
    } 
    return obj;
  }
}

static PyMethodDef
SwigPyObject_methods[] = {
  {"disown",  SwigPyObject_disown,  METH_NOARGS,  "releases ownership of the pointer"},
  {"acquire", SwigPyObject_acquire, METH_NOARGS,  "acquires ownership of the pointer"},
  {"own",     SwigPyObject_own,     METH_VARARGS, "returns/sets ownership of the pointer"},
  {"append",  SwigPyObject_append,  METH_O,       "appends another 'this' object"},
  {"next",    SwigPyObject_next,    METH_NOARGS,  "returns the next 'this' object"},
  {"__repr__",SwigPyObject_repr2,   METH_NOARGS,  "returns object representation"},
  {0, 0, 0, 0}  
};

SWIGRUNTIME PyTypeObject*
SwigPyObject_TypeOnce(void) {
  static char SwigPyObject_doc[] = "Swig object holding a C/C++ pointer";
#ifndef SWIG_HEAPTYPES
  static PyNumberMethods SwigPyObject_as_number = {
    (binaryfunc)0, /*nb_add*/
    (binaryfunc)0, /*nb_subtract*/
    (binaryfunc)0, /*nb_multiply*/
    /* nb_divide removed in Python 3 */
#if PY_VERSION_HEX < 0x03000000
    (binaryfunc)0, /*nb_divide*/
#endif
    (binaryfunc)0, /*nb_remainder*/
    (binaryfunc)0, /*nb_divmod*/
    (ternaryfunc)0,/*nb_power*/
    (unaryfunc)0,  /*nb_negative*/
    (unaryfunc)0,  /*nb_positive*/
    (unaryfunc)0,  /*nb_absolute*/
    (inquiry)0,    /*nb_nonzero*/
    0,		   /*nb_invert*/
    0,		   /*nb_lshift*/
    0,		   /*nb_rshift*/
    0,		   /*nb_and*/
    0,		   /*nb_xor*/
    0,		   /*nb_or*/
#if PY_VERSION_HEX < 0x03000000
    0,   /*nb_coerce*/
#endif
    (unaryfunc)SwigPyObject_long, /*nb_int*/
#if PY_VERSION_HEX < 0x03000000
    (unaryfunc)SwigPyObject_long, /*nb_long*/
#else
    0, /*nb_reserved*/
#endif
    (unaryfunc)0,                 /*nb_float*/
#if PY_VERSION_HEX < 0x03000000
    (unaryfunc)SwigPyObject_oct,  /*nb_oct*/
    (unaryfunc)SwigPyObject_hex,  /*nb_hex*/
#endif
#if PY_VERSION_HEX >= 0x03050000 /* 3.5 */
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_inplace_matrix_multiply */
#elif PY_VERSION_HEX >= 0x03000000 /* 3.0 */
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index, nb_inplace_divide removed */
#else
    0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 /* nb_inplace_add -> nb_index */
#endif
  };

  static PyTypeObject swigpyobject_type;
  static int type_init = 0;
  if (!type_init) {
    const PyTypeObject tmp = {
#if PY_VERSION_HEX >= 0x03000000
      PyVarObject_HEAD_INIT(NULL, 0)
#else
      PyObject_HEAD_INIT(NULL)
      0,                                    /* ob_size */
#endif
      SWIG_RUNTIME_MODULE ".SwigPyObject",  /* tp_name */
      sizeof(SwigPyObject),                 /* tp_basicsize */
      0,                                    /* tp_itemsize */
      (destructor)SwigPyObject_dealloc,     /* tp_dealloc */
#if PY_VERSION_HEX < 0x030800b4
      (printfunc)0,                         /* tp_print */
#else
      (Py_ssize_t)0,                        /* tp_vectorcall_offset */
#endif
      (getattrfunc)0,                       /* tp_getattr */
      (setattrfunc)0,                       /* tp_setattr */
#if PY_VERSION_HEX >= 0x03000000
      0, /* tp_reserved in 3.0.1, tp_compare in 3.0.0 but not used */
#else
      (cmpfunc)SwigPyObject_compare,        /* tp_compare */
#endif
      (reprfunc)SwigPyObject_repr,          /* tp_repr */
      &SwigPyObject_as_number,              /* tp_as_number */
      0,                                    /* tp_as_sequence */
      0,                                    /* tp_as_mapping */
      (hashfunc)0,                          /* tp_hash */
      (ternaryfunc)0,                       /* tp_call */
      0,                                    /* tp_str */
      PyObject_GenericGetAttr,              /* tp_getattro */
      0,                                    /* tp_setattro */
      0,                                    /* tp_as_buffer */
      Py_TPFLAGS_DEFAULT,                   /* tp_flags */
      SwigPyObject_doc,                     /* tp_doc */
      0,                                    /* tp_traverse */
      0,                                    /* tp_clear */
      (richcmpfunc)SwigPyObject_richcompare,/* tp_richcompare */
      offsetof(SwigPyObject, weakreflist),  /* tp_weaklistoffset */
      0,                                    /* tp_iter */
      0,                                    /* tp_iternext */
      SwigPyObject_methods,                 /* tp_methods */
      0,                                    /* tp_members */
      0,                                    /* tp_getset */
      0,                                    /* tp_base */
      0,                                    /* tp_dict */
      0,                                    /* tp_descr_get */
      0,                                    /* tp_descr_set */
      0,                                    /* tp_dictoffset */
      0,                                    /* tp_init */
      0,                                    /* tp_alloc */
      0,                                    /* tp_new */
      0,                                    /* tp_free */
      0,                                    /* tp_is_gc */
      0,                                    /* tp_bases */
      0,                                    /* tp_mro */
      0,                                    /* tp_cache */
      0,                                    /* tp_subclasses */
      0,                                    /* tp_weaklist */
      0,                                    /* tp_del */
      0,                                    /* tp_version_tag */
#if PY_VERSION_HEX >= 0x03040000
      0,                                    /* tp_finalize */
#endif
#if PY_VERSION_HEX >= 0x03080000
      0,                                    /* tp_vectorcall */
#endif
#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
      0,                                    /* tp_print */
#endif
#if PY_VERSION_HEX >= 0x030c0000
      0,                                    /* tp_watched */
#endif
#if PY_VERSION_HEX >= 0x030d00a4
      0,                                    /* tp_versions_used */
#endif
#ifdef COUNT_ALLOCS
      0,                                    /* tp_allocs */
      0,                                    /* tp_frees */
      0,                                    /* tp_maxalloc */
      0,                                    /* tp_prev */
      0                                     /* tp_next */
#endif
    };
    PyObject *runtime_data_module = SWIG_runtime_data_module();
    swigpyobject_type = tmp;
    type_init = 1;
    if (PyType_Ready(&swigpyobject_type) != 0)
      return NULL;
    if (PyModule_AddObject(runtime_data_module, "SwigPyObject", (PyObject *)&swigpyobject_type) == 0)
      SWIG_Py_INCREF((PyObject *)&swigpyobject_type);
  }
  return &swigpyobject_type;
#else
  static PyMemberDef SwigPyObject_members[] = {
      { (char *)"__dictoffset__", Py_T_PYSSIZET, offsetof(SwigPyObject, swigdict), Py_READONLY, NULL },
      { (char *)"__weaklistoffset__", Py_T_PYSSIZET, offsetof(SwigPyObject, weakreflist), Py_READONLY, NULL },
      { NULL, 0, 0, 0, NULL }
  };
  PyType_Slot slots[] = {
    { Py_tp_dealloc, (void *)SwigPyObject_dealloc },
    { Py_tp_repr, (void *)SwigPyObject_repr },
    { Py_tp_getattro, (void *)PyObject_GenericGetAttr },
    { Py_tp_doc, (void *)SwigPyObject_doc },
    { Py_tp_richcompare, (void *)SwigPyObject_richcompare },
    { Py_tp_methods, (void *)SwigPyObject_methods },
    { Py_nb_int, (void *)SwigPyObject_long },
    { Py_tp_members, (void *)SwigPyObject_members },
    { 0, NULL }
  };
  PyType_Spec spec = {
    SWIG_RUNTIME_MODULE ".SwigPyObject",
    sizeof(SwigPyObject),
    0,
    Py_TPFLAGS_DEFAULT|Py_TPFLAGS_BASETYPE,
    slots
  };
  PyObject *pytype = PyType_FromSpec(&spec);
  PyObject *runtime_data_module = SWIG_runtime_data_module();
#if !defined(Py_LIMITED_API)
/* While this __dictoffset__ is only used with the builtin wrappers, SwigPyObject ought to be
   identical when created for use by proxy class wrappers in case it is shared across multiple modules. */
#if PY_VERSION_HEX < 0x03090000
    /* Workaround as __dictoffset__ and __weaklistoffset__ above are only supported from python-3.9 */
  if (pytype) {
    ((PyTypeObject *)pytype)->tp_dictoffset = offsetof(SwigPyObject, swigdict);
    ((PyTypeObject *)pytype)->tp_weaklistoffset = offsetof(SwigPyObject, weakreflist);
  }
#endif
#endif
  if (pytype && PyModule_AddObject(runtime_data_module, "SwigPyObject", pytype) == 0)
    SWIG_Py_INCREF(pytype);
  return (PyTypeObject *)pytype;
#endif
}

SWIGRUNTIME PyObject *
SwigPyObject_New(void *ptr, swig_type_info *ty, int own)
{
  SwigPyObject *sobj = PyObject_New(SwigPyObject, SwigPyObject_Type());
  if (sobj) {
    sobj->ptr  = ptr;
    sobj->ty   = ty;
    sobj->own  = own;
    sobj->next = 0;
    sobj->swigdict = 0;
    sobj->weakreflist = 0;
    if (own == SWIG_POINTER_OWN) {
      /* Obtain a reference to the Python capsule wrapping the module information, so that the
       * module information is correctly destroyed after all SWIG python objects have been freed
       * by the GC (and corresponding destructors invoked) */
      SWIG_Py_XINCREF(Swig_Capsule_global);
    }
  }
  return (PyObject *)sobj;
}

/* -----------------------------------------------------------------------------
 * Implements a simple Swig Packed type, and use it instead of string
 * ----------------------------------------------------------------------------- */

typedef struct {
  PyObject_HEAD
  void *pack;
  swig_type_info *ty;
  size_t size;
} SwigPyPacked;

SWIGRUNTIME PyObject *
SwigPyPacked_repr(SwigPyPacked *v)
{
  char result[SWIG_BUFFER_SIZE];
  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))) {
    return SWIG_Python_str_FromFormat("<Swig Packed at %s%s>", result, v->ty->name);
  } else {
    return SWIG_Python_str_FromFormat("<Swig Packed %s>", v->ty->name);
  }  
}

SWIGRUNTIME PyObject *
SwigPyPacked_str(SwigPyPacked *v)
{
  char result[SWIG_BUFFER_SIZE];
  if (SWIG_PackDataName(result, v->pack, v->size, 0, sizeof(result))){
    return SWIG_Python_str_FromFormat("%s%s", result, v->ty->name);
  } else {
    return SWIG_Python_str_FromChar(v->ty->name);
  }  
}

SWIGRUNTIME int
SwigPyPacked_compare(SwigPyPacked *v, SwigPyPacked *w)
{
  size_t i = v->size;
  size_t j = w->size;
  int s = (i < j) ? -1 : ((i > j) ? 1 : 0);
  return s ? s : strncmp((const char *)v->pack, (const char *)w->pack, 2*v->size);
}

SWIGRUNTIME PyTypeObject* SwigPyPacked_TypeOnce(void);

SWIGRUNTIME PyTypeObject*
SwigPyPacked_Type(void) {
  static PyTypeObject *SWIG_STATIC_POINTER(type) = SwigPyPacked_TypeOnce();
  return type;
}

SWIGRUNTIMEINLINE int
SwigPyPacked_Check(PyObject *op) {
  PyTypeObject *target_tp = SwigPyPacked_Type();
  PyTypeObject *op_type = Py_TYPE(op);
  /* Check for an exact match to SwigPyPacked */
  if (op_type == target_tp) {
    return 1;
  } else {
    /* Fallback for multiple modules */
#if PY_VERSION_HEX >= 0x03000000
    int cmp;
    PyObject *tpname = SWIG_PyType_GetFullyQualifiedName(op_type);
    if (!tpname)
      return 0;
    cmp = PyUnicode_CompareWithASCIIString(tpname, SWIG_RUNTIME_MODULE ".SwigPyPacked");
    SWIG_Py_DECREF(tpname);
    return cmp == 0;
#else
    return strcmp(op_type->tp_name, SWIG_RUNTIME_MODULE ".SwigPyPacked") == 0;
#endif
  }
}

SWIGRUNTIME void
SwigPyPacked_dealloc(PyObject *v)
{
  if (SwigPyPacked_Check(v)) {
    SwigPyPacked *sobj = (SwigPyPacked *) v;
    free(sobj->pack);
  }
  PyObject_Free(v);
}

SWIGRUNTIME PyTypeObject*
SwigPyPacked_TypeOnce(void) {
  static char SwigPyPacked_doc[] = "Swig object holding a C/C++ function pointer";
#ifndef SWIG_HEAPTYPES
  static PyTypeObject swigpypacked_type;
  static int type_init = 0;
  if (!type_init) {
    const PyTypeObject tmp = {
#if PY_VERSION_HEX >= 0x03000000
      PyVarObject_HEAD_INIT(NULL, 0)
#else
      PyObject_HEAD_INIT(NULL)
      0,                                    /* ob_size */
#endif
      SWIG_RUNTIME_MODULE ".SwigPyPacked",  /* tp_name */
      sizeof(SwigPyPacked),                 /* tp_basicsize */
      0,                                    /* tp_itemsize */
      (destructor)SwigPyPacked_dealloc,     /* tp_dealloc */
#if PY_VERSION_HEX < 0x030800b4
      (printfunc)0,                         /* tp_print */
#else
      (Py_ssize_t)0,                        /* tp_vectorcall_offset */
#endif
      (getattrfunc)0,                       /* tp_getattr */
      (setattrfunc)0,                       /* tp_setattr */
#if PY_VERSION_HEX >= 0x03000000
      0, /* tp_reserved in 3.0.1 */
#else
      (cmpfunc)SwigPyPacked_compare,        /* tp_compare */
#endif
      (reprfunc)SwigPyPacked_repr,          /* tp_repr */
      0,                                    /* tp_as_number */
      0,                                    /* tp_as_sequence */
      0,                                    /* tp_as_mapping */
      (hashfunc)0,                          /* tp_hash */
      (ternaryfunc)0,                       /* tp_call */
      (reprfunc)SwigPyPacked_str,           /* tp_str */
      PyObject_GenericGetAttr,              /* tp_getattro */
      0,                                    /* tp_setattro */
      0,                                    /* tp_as_buffer */
      Py_TPFLAGS_DEFAULT,                   /* tp_flags */
      SwigPyPacked_doc,                     /* tp_doc */
      0,                                    /* tp_traverse */
      0,                                    /* tp_clear */
      0,                                    /* tp_richcompare */
      0,                                    /* tp_weaklistoffset */
      0,                                    /* tp_iter */
      0,                                    /* tp_iternext */
      0,                                    /* tp_methods */
      0,                                    /* tp_members */
      0,                                    /* tp_getset */
      0,                                    /* tp_base */
      0,                                    /* tp_dict */
      0,                                    /* tp_descr_get */
      0,                                    /* tp_descr_set */
      0,                                    /* tp_dictoffset */
      0,                                    /* tp_init */
      0,                                    /* tp_alloc */
      0,                                    /* tp_new */
      0,                                    /* tp_free */
      0,                                    /* tp_is_gc */
      0,                                    /* tp_bases */
      0,                                    /* tp_mro */
      0,                                    /* tp_cache */
      0,                                    /* tp_subclasses */
      0,                                    /* tp_weaklist */
      0,                                    /* tp_del */
      0,                                    /* tp_version_tag */
#if PY_VERSION_HEX >= 0x03040000
      0,                                    /* tp_finalize */
#endif
#if PY_VERSION_HEX >= 0x03080000
      0,                                    /* tp_vectorcall */
#endif
#if (PY_VERSION_HEX >= 0x03080000) && (PY_VERSION_HEX < 0x03090000)
      0,                                    /* tp_print */
#endif
#if PY_VERSION_HEX >= 0x030c0000
      0,                                    /* tp_watched */
#endif
#if PY_VERSION_HEX >= 0x030d00a4
      0,                                    /* tp_versions_used */
#endif
#ifdef COUNT_ALLOCS
      0,                                    /* tp_allocs */
      0,                                    /* tp_frees */
      0,                                    /* tp_maxalloc */
      0,                                    /* tp_prev */
      0                                     /* tp_next */
#endif
    };
    PyObject *runtime_data_module = SWIG_runtime_data_module();
    swigpypacked_type = tmp;
    type_init = 1;
    if (PyType_Ready(&swigpypacked_type) != 0)
      return NULL;
    if (PyModule_AddObject(runtime_data_module, "SwigPyPacked", (PyObject *)&swigpypacked_type) == 0)
      SWIG_Py_INCREF((PyObject *)&swigpypacked_type);
  }
  return &swigpypacked_type;
#else
  PyType_Slot slots[] = {
    { Py_tp_dealloc, (void *)SwigPyPacked_dealloc },
    { Py_tp_repr, (void *)SwigPyPacked_repr },
    { Py_tp_str, (void *)SwigPyPacked_str },
    { Py_tp_getattro, (void *)PyObject_GenericGetAttr },
    { Py_tp_doc, (void *)SwigPyPacked_doc },
    { 0, NULL }
  };
  PyType_Spec spec = {
    SWIG_RUNTIME_MODULE ".SwigPyPacked",
    sizeof(SwigPyPacked),
    0,
    Py_TPFLAGS_DEFAULT,
    slots
  };
  PyObject *pytype = PyType_FromSpec(&spec);
  PyObject *runtime_data_module = SWIG_runtime_data_module();
  if (pytype && PyModule_AddObject(runtime_data_module, "SwigPyPacked", pytype) == 0)
    SWIG_Py_INCREF(pytype);
  return (PyTypeObject *)pytype;
#endif
}

SWIGRUNTIME PyObject *
SwigPyPacked_New(void *ptr, size_t size, swig_type_info *ty)
{
  SwigPyPacked *sobj = PyObject_New(SwigPyPacked, SwigPyPacked_Type());
  if (sobj) {
    void *pack = malloc(size);
    if (pack) {
      memcpy(pack, ptr, size);
      sobj->pack = pack;
      sobj->ty   = ty;
      sobj->size = size;
    } else {
      PyObject_Free((PyObject *)sobj);
      sobj = 0;
    }
  }
  return (PyObject *) sobj;
}

SWIGRUNTIME swig_type_info *
SwigPyPacked_UnpackData(PyObject *obj, void *ptr, size_t size)
{
  if (SwigPyPacked_Check(obj)) {
    SwigPyPacked *sobj = (SwigPyPacked *)obj;
    if (sobj->size != size) return 0;
    memcpy(ptr, sobj->pack, size);
    return sobj->ty;
  } else {
    return 0;
  }
}

/* -----------------------------------------------------------------------------
 * pointers/data manipulation
 * ----------------------------------------------------------------------------- */

static PyObject *Swig_This_global = NULL;

SWIGRUNTIME PyObject *
SWIG_This(void)
{
  if (Swig_This_global == NULL)
    Swig_This_global = SWIG_Python_str_FromChar("this");
  return Swig_This_global;
}

/* #define SWIG_PYTHON_SLOW_GETSET_THIS */

/* TODO: I don't know how to implement the fast getset in Python 3 right now */
#if PY_VERSION_HEX >= 0x03000000
#define SWIG_PYTHON_SLOW_GETSET_THIS 
#endif

/* Returns a borrowed reference to the 'this' object */
SWIGRUNTIME SwigPyObject *
SWIG_Python_GetSwigThis(PyObject *pyobj) 
{
  PyObject *obj;

  if (SwigPyObject_Check(pyobj))
    return (SwigPyObject *) pyobj;

#ifdef SWIGPYTHON_BUILTIN
  (void)obj;
  if (PyWeakref_CheckProxy(pyobj)) {
#if PY_VERSION_HEX >= 0x030d0000
    if (PyWeakref_GetRef(pyobj, &pyobj) > 0)
      Py_DECREF(pyobj);
    else
      pyobj = NULL;
#else
    pyobj = PyWeakref_GetObject(pyobj);
#endif
    if (pyobj && SwigPyObject_Check(pyobj))
      return (SwigPyObject*) pyobj;
  }
  return NULL;
#else

  obj = 0;

#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
  if (PyInstance_Check(pyobj)) {
    obj = _PyInstance_Lookup(pyobj, SWIG_This());      
  } else {
    PyObject **dictptr = _PyObject_GetDictPtr(pyobj);
    if (dictptr != NULL) {
      PyObject *dict = *dictptr;
      obj = dict ? PyDict_GetItem(dict, SWIG_This()) : 0;
    } else {
      if (PyWeakref_CheckProxy(pyobj)) {
        PyObject *wobj = PyWeakref_GET_OBJECT(pyobj);
	return wobj ? SWIG_Python_GetSwigThis(wobj) : 0;
      }
      obj = PyObject_GetAttr(pyobj, SWIG_This());
      if (obj) {
	SWIG_Py_DECREF(obj);
      } else {
	if (PyErr_Occurred()) PyErr_Clear();
	return 0;
      }
    }
  }
#else
  obj = PyObject_GetAttr(pyobj, SWIG_This());
  if (obj) {
    SWIG_Py_DECREF(obj);
  } else {
    if (PyErr_Occurred()) PyErr_Clear();
    return 0;
  }
#endif
  if (obj && !SwigPyObject_Check(obj)) {
    /* a PyObject is called 'this', try to get the 'real this'
       SwigPyObject from it */ 
    return SWIG_Python_GetSwigThis(obj);
  }
  return (SwigPyObject *)obj;
#endif
}

/* Acquire a pointer value */

SWIGRUNTIME int
SWIG_Python_AcquirePtr(PyObject *obj, int own) {
  if (own == SWIG_POINTER_OWN) {
    SwigPyObject *sobj = SWIG_Python_GetSwigThis(obj);
    if (sobj) {
      int oldown = sobj->own;
      sobj->own = own;
      return oldown;
    }
  }
  return 0;
}

/* Convert a pointer value */

SWIGRUNTIME int
SWIG_Python_ConvertPtrAndOwn(PyObject *obj, void **ptr, swig_type_info *ty, int flags, int *own) {
  int res;
  SwigPyObject *sobj;
  int implicit_conv = (flags & SWIG_POINTER_IMPLICIT_CONV) != 0;

  if (!obj)
    return SWIG_ERROR;
  if (obj == Py_None && !implicit_conv) {
    if (ptr)
      *ptr = 0;
    return (flags & SWIG_POINTER_NO_NULL) ? SWIG_NullReferenceError : SWIG_OK;
  }

  res = SWIG_ERROR;

  sobj = SWIG_Python_GetSwigThis(obj);
  if (own)
    *own = 0;
  while (sobj) {
    void *vptr = sobj->ptr;
    if (ty) {
      swig_type_info *to = sobj->ty;
      if (to == ty) {
        /* no type cast needed */
        if (ptr) *ptr = vptr;
        break;
      } else {
        swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
        if (!tc) {
          sobj = (SwigPyObject *)sobj->next;
        } else {
          if (ptr) {
            int newmemory = 0;
            *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
            if (newmemory == SWIG_CAST_NEW_MEMORY) {
              assert(own); /* badly formed typemap which will lead to a memory leak - it must set and use own to delete *ptr */
              if (own)
                *own = *own | SWIG_CAST_NEW_MEMORY;
            }
          }
          break;
        }
      }
    } else {
      if (ptr) *ptr = vptr;
      break;
    }
  }
  if (sobj) {
    if (((flags & SWIG_POINTER_RELEASE) == SWIG_POINTER_RELEASE) && !sobj->own) {
      res = SWIG_ERROR_RELEASE_NOT_OWNED;
    } else {
      if (own)
        *own = *own | sobj->own;
      if (flags & SWIG_POINTER_DISOWN) {
        sobj->own = 0;
      }
      if (flags & SWIG_POINTER_CLEAR) {
        sobj->ptr = 0;
      }
      res = SWIG_OK;
    }
  } else {
    if (implicit_conv) {
      SwigPyClientData *data = ty ? (SwigPyClientData *) ty->clientdata : 0;
      if (data && !data->implicitconv) {
        PyObject *klass = data->klass;
        if (klass) {
          PyObject *impconv;
          data->implicitconv = 1; /* avoid recursion and call 'explicit' constructors*/
          impconv = SWIG_Python_CallFunctor(klass, obj);
          data->implicitconv = 0;
          if (PyErr_Occurred()) {
            PyErr_Clear();
            impconv = 0;
          }
          if (impconv) {
            SwigPyObject *iobj = SWIG_Python_GetSwigThis(impconv);
            if (iobj) {
              void *vptr;
              res = SWIG_Python_ConvertPtrAndOwn((PyObject*)iobj, &vptr, ty, 0, 0);
              if (SWIG_IsOK(res)) {
                if (ptr) {
                  *ptr = vptr;
                  /* transfer the ownership to 'ptr' */
                  iobj->own = 0;
                  res = SWIG_AddCast(res);
                  res = SWIG_AddNewMask(res);
                } else {
                  res = SWIG_AddCast(res);		    
                }
              }
            }
            SWIG_Py_DECREF(impconv);
          }
        }
      }
      if (!SWIG_IsOK(res) && obj == Py_None) {
        if (ptr)
          *ptr = 0;
        if (PyErr_Occurred())
          PyErr_Clear();
        res = SWIG_OK;
      }
    }
  }
  return res;
}

/* Convert a function ptr value */

SWIGRUNTIME int
SWIG_Python_ConvertFunctionPtr(PyObject *obj, void **ptr, swig_type_info *ty) {
  if (!PyCFunction_Check(obj)) {
    return SWIG_ConvertPtr(obj, ptr, ty, 0);
  } else {
    void *vptr = 0;
    swig_cast_info *tc;

    /* here we get the method pointer for callbacks */
#ifndef Py_LIMITED_API
    const char *doc = (((PyCFunctionObject *)obj) -> m_ml -> ml_doc);
#else
    PyObject* pystr_doc = PyObject_GetAttrString(obj, "__doc__");
    PyObject *bytes = NULL;
    const char *doc = pystr_doc ? SWIG_PyUnicode_AsUTF8AndSize(pystr_doc, NULL, &bytes) : 0;
#endif
    const char *desc = doc ? strstr(doc, "swig_ptr: ") : 0;
    if (desc)
      desc = ty ? SWIG_UnpackVoidPtr(desc + 10, &vptr, ty->name) : 0;
#ifdef Py_LIMITED_API
    SWIG_Py_XDECREF(bytes);
    SWIG_Py_XDECREF(pystr_doc);
#endif
    if (!desc)
      return SWIG_ERROR;
    tc = SWIG_TypeCheck(desc,ty);
    if (tc) {
      int newmemory = 0;
      *ptr = SWIG_TypeCast(tc,vptr,&newmemory);
      assert(!newmemory); /* newmemory handling not yet implemented */
    } else {
      return SWIG_ERROR;
    }
    return SWIG_OK;
  }
}

/* Convert a packed pointer value */

SWIGRUNTIME int
SWIG_Python_ConvertPacked(PyObject *obj, void *ptr, size_t sz, swig_type_info *ty) {
  swig_type_info *to = SwigPyPacked_UnpackData(obj, ptr, sz);
  if (!to) return SWIG_ERROR;
  if (ty) {
    if (to != ty) {
      /* check type cast? */
      swig_cast_info *tc = SWIG_TypeCheck(to->name,ty);
      if (!tc) return SWIG_ERROR;
    }
  }
  return SWIG_OK;
}  

/* -----------------------------------------------------------------------------
 * Create a new pointer object
 * ----------------------------------------------------------------------------- */

/*
  Create a new instance object, without calling __init__, and set the
  'this' attribute.
*/

SWIGRUNTIME PyObject* 
SWIG_Python_NewShadowInstance(SwigPyClientData *data, PyObject *swig_this)
{
  PyObject *inst = 0;
  PyObject *newraw = data->newraw;
  if (newraw) {
    inst = PyObject_Call(newraw, data->newargs, NULL);
    if (inst) {
#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
      PyObject **dictptr = _PyObject_GetDictPtr(inst);
      if (dictptr != NULL) {
        PyObject *dict = *dictptr;
        if (dict == NULL) {
          dict = PyDict_New();
          *dictptr = dict;
        }
        if (dict) {
          PyDict_SetItem(dict, SWIG_This(), swig_this);
        } else{
          SWIG_Py_DECREF(inst);
          inst = 0;
        }
      }
#else
      if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
        SWIG_Py_DECREF(inst);
        inst = 0;
      }
#endif
    }
  } else {
#if PY_VERSION_HEX >= 0x03000000
    PyObject *empty_args = PyTuple_New(0);
    if (empty_args) {
      PyObject *empty_kwargs = PyDict_New();
      if (empty_kwargs) {
#ifndef Py_LIMITED_API
        newfunc newfn = ((PyTypeObject *)data->newargs)->tp_new;
#else
        newfunc newfn = (newfunc)PyType_GetSlot((PyTypeObject *)data->newargs, Py_tp_new);
#endif
        inst = newfn((PyTypeObject *)data->newargs, empty_args, empty_kwargs);
        SWIG_Py_DECREF(empty_kwargs);
        if (inst) {
          if (PyObject_SetAttr(inst, SWIG_This(), swig_this) == -1) {
            SWIG_Py_DECREF(inst);
            inst = 0;
          } else {
            PyType_Modified(Py_TYPE(inst));
          }
        }
      }
      SWIG_Py_DECREF(empty_args);
    }
#else
    PyObject *dict = PyDict_New();
    if (dict) {
      PyDict_SetItem(dict, SWIG_This(), swig_this);
      inst = PyInstance_NewRaw(data->newargs, dict);
      SWIG_Py_DECREF(dict);
    }
#endif
  }
  return inst;
}

SWIGRUNTIME int
SWIG_Python_SetSwigThis(PyObject *inst, PyObject *swig_this)
{
#if !defined(SWIG_PYTHON_SLOW_GETSET_THIS)
  PyObject **dictptr = _PyObject_GetDictPtr(inst);
  if (dictptr != NULL) {
    PyObject *dict = *dictptr;
    if (dict == NULL) {
      dict = PyDict_New();
      *dictptr = dict;
    }
    if (dict) {
      return PyDict_SetItem(dict, SWIG_This(), swig_this);
    } else{
      return -1;
    }
  }
#endif
  return PyObject_SetAttr(inst, SWIG_This(), swig_this);
} 


SWIGINTERN PyObject *
SWIG_Python_InitShadowInstance(PyObject *args) {
  PyObject *obj[2];
  if (!SWIG_Python_UnpackTuple(args, "swiginit", 2, 2, obj)) {
    return NULL;
  } else {
    SwigPyObject *sthis = SWIG_Python_GetSwigThis(obj[0]);
    if (sthis) {
      SWIG_Py_DECREF(SwigPyObject_append((PyObject*) sthis, obj[1]));
    } else {
      if (SWIG_Python_SetSwigThis(obj[0], obj[1]) != 0)
        return NULL;
    }
    return SWIG_Py_Void();
  }
}

/* Create a new pointer object */

SWIGRUNTIME PyObject *
SWIG_Python_NewPointerObj(PyObject *self, void *ptr, swig_type_info *type, int flags) {
  SwigPyClientData *clientdata;
  PyObject * robj;
  int own;

  if (!ptr)
    return SWIG_Py_Void();

  clientdata = type ? (SwigPyClientData *)(type->clientdata) : 0;
  own = (flags & SWIG_POINTER_OWN) ? SWIG_POINTER_OWN : 0;
  if (clientdata && clientdata->pytype) {
    SwigPyObject *newobj;
    if (flags & SWIG_BUILTIN_TP_INIT) {
      newobj = (SwigPyObject*) self;
      if (newobj->ptr) {
#ifndef Py_LIMITED_API
        allocfunc alloc = clientdata->pytype->tp_alloc;
#else
        allocfunc alloc = (allocfunc)PyType_GetSlot(clientdata->pytype, Py_tp_alloc);
#endif
        PyObject *next_self = alloc(clientdata->pytype, 0);
        while (newobj->next)
	  newobj = (SwigPyObject *) newobj->next;
        newobj->next = next_self;
        newobj = (SwigPyObject *)next_self;
        newobj->swigdict = 0;
        newobj->weakreflist = 0;
      }
    } else {
      newobj = PyObject_New(SwigPyObject, clientdata->pytype);
      if (newobj) {
        newobj->swigdict = 0;
        newobj->weakreflist = 0;
      }
    }
    if (newobj) {
      newobj->ptr = ptr;
      newobj->ty = type;
      newobj->own = own;
      newobj->next = 0;
      return (PyObject*) newobj;
    }
    return SWIG_Py_Void();
  }

  assert(!(flags & SWIG_BUILTIN_TP_INIT));

  robj = SwigPyObject_New(ptr, type, own);
  if (robj && clientdata && !(flags & SWIG_POINTER_NOSHADOW)) {
    PyObject *inst = SWIG_Python_NewShadowInstance(clientdata, robj);
    SWIG_Py_DECREF(robj);
    robj = inst;
  }
  return robj;
}

/* Create a new packed object */

SWIGRUNTIMEINLINE PyObject *
SWIG_Python_NewPackedObj(void *ptr, size_t sz, swig_type_info *type) {
  return ptr ? SwigPyPacked_New((void *) ptr, sz, type) : SWIG_Py_Void();
}

/* -----------------------------------------------------------------------------*
 *  Get type list 
 * -----------------------------------------------------------------------------*/

#ifdef SWIG_LINK_RUNTIME
void *SWIG_ReturnGlobalTypeList(void *);
#endif

static PyObject *Swig_TypeCache_global = NULL;

/* The python cached type query */
SWIGRUNTIME PyObject *
SWIG_Python_TypeCache(void) {
  if (Swig_TypeCache_global == NULL) {
    Swig_TypeCache_global = PyDict_New();
  }
  return Swig_TypeCache_global;
}

SWIGRUNTIME swig_module_info *
SWIG_Python_GetModule(void *SWIGUNUSEDPARM(clientdata)) {
#ifdef SWIG_LINK_RUNTIME
  static void *type_pointer = (void *)0;
  /* first check if module already created */
  if (!type_pointer) {
    type_pointer = SWIG_ReturnGlobalTypeList((void *)0);
  }
#else
  void *type_pointer = PyCapsule_Import(SWIGPY_CAPSULE_NAME, 0);
  if (PyErr_Occurred()) {
    PyErr_Clear();
    type_pointer = (void *)0;
  }
#endif
  return (swig_module_info *) type_pointer;
}


#if defined(SWIG_REFCNT_DEBUG)
#define SWIG_PYOBJ_REFCNT(OBJ) fprintf(stdout, "" #OBJ " count %ld\n", (OBJ ? Py_REFCNT(OBJ) : 0))
#else
#define SWIG_PYOBJ_REFCNT(OBJ)
#endif

static int interpreter_counter = 0; /* how many (sub-)interpreters are using swig_module's types */

SWIGRUNTIME void
SWIG_Python_DestroyModule(PyObject *obj)
{
  swig_module_info *swig_module = (swig_module_info *) PyCapsule_GetPointer(obj, SWIGPY_CAPSULE_NAME);
  swig_type_info **types = swig_module->types;
  size_t i;
  if (--interpreter_counter != 0) /* another sub-interpreter may still be using the swig_module's types */
    return;
  for (i = 0; i < swig_module->size; ++i) {
    swig_type_info *ty = types[i];
    if (ty->owndata) {
      SwigPyClientData *data = (SwigPyClientData *) ty->clientdata;
      ty->clientdata = 0;
      if (data) SwigPyClientData_Del(data);
    }
  }
  SWIG_PYOBJ_REFCNT(Swig_This_global);
  SWIG_Py_XDECREF(Swig_This_global);
  Swig_This_global = NULL;

  SWIG_PYOBJ_REFCNT(Swig_Globals_global);
  SWIG_Py_XDECREF(Swig_Globals_global);
  Swig_Globals_global = NULL;

  SWIG_PYOBJ_REFCNT(Swig_TypeCache_global);
  SWIG_Py_XDECREF(Swig_TypeCache_global);
  Swig_TypeCache_global = NULL;

  SWIG_PYOBJ_REFCNT(Swig_Capsule_global);
  Swig_Capsule_global = NULL;

  SWIG_PYOBJ_REFCNT(Swig_runtime_data_module_global);
  SWIG_Py_XDECREF(Swig_runtime_data_module_global);
  Swig_runtime_data_module_global = NULL;
}

SWIGRUNTIME void
SWIG_Python_SetModule(swig_module_info *swig_module) {
  PyObject *runtime_data_module = SWIG_runtime_data_module();
  PyObject *pointer = PyCapsule_New((void *) swig_module, SWIGPY_CAPSULE_NAME, SWIG_Python_DestroyModule);
  if (pointer && runtime_data_module) {
    if (PyModule_AddObject(runtime_data_module, SWIGPY_CAPSULE_ATTR_NAME, pointer) == 0) {
      ++interpreter_counter;
      Swig_Capsule_global = pointer;
    } else {
      SWIG_Py_DECREF(pointer);
    }
  } else {
    SWIG_Py_XDECREF(pointer);
  }
}

SWIGRUNTIME swig_type_info *
SWIG_Python_TypeQuery(const char *type)
{
  swig_type_info *descriptor;
  PyObject *cache = SWIG_Python_TypeCache();
  PyObject *obj;
  SWIG_PyDict_GetItemStringRef(cache, type, &obj);
  if (obj) {
    descriptor = (swig_type_info *) PyCapsule_GetPointer(obj, NULL);
  } else {
    swig_module_info *swig_module = SWIG_GetModule(0);
    descriptor = SWIG_TypeQueryModule(swig_module, swig_module, type);
    if (descriptor) {
      obj = PyCapsule_New((void*) descriptor, NULL, NULL);
      if (obj) PyDict_SetItemString(cache, type, obj);
    }
  }
  SWIG_Py_XDECREF(obj);
  return descriptor;
}

/* 
   For backward compatibility only
*/
#define SWIG_POINTER_EXCEPTION  0
#define SWIG_arg_fail(arg)      SWIG_Python_ArgFail(arg)
#define SWIG_MustGetPtr(p, type, argnum, flags)  SWIG_Python_MustGetPtr(p, type, argnum, flags)

SWIGRUNTIME int
SWIG_Python_AddErrMesg(const char* mesg, int infront)
{  
  if (PyErr_Occurred()) {
    PyObject *type = 0;
    PyObject *value = 0;
    PyObject *traceback = 0;
    PyErr_Fetch(&type, &value, &traceback);
    if (value) {
      PyObject *old_str = PyObject_Str(value);
      PyObject *bytes = NULL;
      const char *tmp = SWIG_PyUnicode_AsUTF8AndSize(old_str, NULL, &bytes);
      const char *errmesg = tmp ? tmp : "Invalid error message";
      SWIG_Py_XINCREF(type);
      PyErr_Clear();
      if (infront) {
	PyErr_Format(type, "%s %s", mesg, errmesg);
      } else {
	PyErr_Format(type, "%s %s", errmesg, mesg);
      }
      SWIG_Py_XDECREF(bytes);
      SWIG_Py_DECREF(old_str);
    }
    return 1;
  } else {
    return 0;
  }
}
  
SWIGRUNTIME int
SWIG_Python_ArgFail(int argnum)
{
  if (PyErr_Occurred()) {
    /* add information about failing argument */
    char mesg[256];
    PyOS_snprintf(mesg, sizeof(mesg), "argument number %d:", argnum);
    return SWIG_Python_AddErrMesg(mesg, 1);
  } else {
    return 0;
  }
}

SWIGRUNTIMEINLINE const char *
SwigPyObject_GetDesc(PyObject *self)
{
  SwigPyObject *v = (SwigPyObject *)self;
  swig_type_info *ty = v ? v->ty : 0;
  return ty ? ty->str : "";
}

/* Convert a pointer value, signal an exception on a type mismatch */
SWIGRUNTIME void *
SWIG_Python_MustGetPtr(PyObject *obj, swig_type_info *ty, int SWIGUNUSEDPARM(argnum), int flags) {
  void *result;
  if (SWIG_Python_ConvertPtr(obj, &result, ty, flags) == -1) {
    PyErr_Clear();
  }
  return result;
}

#ifdef SWIGPYTHON_BUILTIN
SWIGRUNTIME int
SWIG_Python_NonDynamicSetAttr(PyObject *obj, PyObject *name, PyObject *value) {
  PyTypeObject *tp = Py_TYPE(obj);
  PyObject *descr;
  PyObject *encoded_name;
  descrsetfunc f;
  int res = -1;

# ifdef Py_USING_UNICODE
  if (PyString_Check(name)) {
    name = PyUnicode_Decode(PyString_AsString(name), PyString_Size(name), NULL, NULL);
    if (!name)
      return -1;
  } else if (!PyUnicode_Check(name))
# else
  if (!PyString_Check(name))
# endif
  {
#if PY_VERSION_HEX >= 0x03000000
    PyObject *tpname = SWIG_PyType_GetFullyQualifiedName(Py_TYPE(name));
    PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%S'", tpname);
    SWIG_Py_DECREF(tpname);
#else
    PyErr_Format(PyExc_TypeError, "attribute name must be string, not '%s'", Py_TYPE(name)->tp_name);
#endif
    return -1;
  } else {
    SWIG_Py_INCREF(name);
  }

  if (!tp->tp_dict) {
    if (PyType_Ready(tp) != 0)
      goto done;
  }

  descr = _PyType_Lookup(tp, name);
  f = NULL;
  if (descr != NULL)
    f = Py_TYPE(descr)->tp_descr_set;
  if (!f) {
    if (PyString_Check(name)) {
      encoded_name = name;
      SWIG_Py_INCREF(name);
    } else {
      encoded_name = PyUnicode_AsUTF8String(name);
      if (!encoded_name)
        goto done;
    }
#if PY_VERSION_HEX >= 0x03000000
    {
      PyObject *tpname = SWIG_PyType_GetFullyQualifiedName(tp);
      PyErr_Format(PyExc_AttributeError, "'%S' object has no attribute '%s'", tpname, PyString_AsString(encoded_name));
      SWIG_Py_DECREF(tpname);
    }
#else
    PyErr_Format(PyExc_AttributeError, "'%s' object has no attribute '%s'", tp->tp_name, PyString_AsString(encoded_name));
#endif
    SWIG_Py_DECREF(encoded_name);
  } else {
    res = f(descr, obj, value);
  }
  
  done:
  SWIG_Py_DECREF(name);
  return res;
}
#endif


#ifdef __cplusplus
}
#endif



#define SWIG_exception_fail(code, msg) do { SWIG_Error(code, msg); SWIG_fail; } while(0) 

#define SWIG_contract_assert(expr, msg) do { if (!(expr)) { SWIG_Error(SWIG_RuntimeError, msg); SWIG_fail; } } while (0) 



  #define SWIG_exception(code, msg) do { SWIG_Error(code, msg); SWIG_fail;; } while(0) 


/* -------- TYPES TABLE (BEGIN) -------- */

#define SWIGTYPE_p_Glib__TimeVal swig_types[0]
#define SWIGTYPE_p_Glib__VariantBase swig_types[1]
#define SWIGTYPE_p_Glib__VariantContainerBase swig_types[2]
#define SWIGTYPE_p_allocator_type swig_types[3]
#define SWIGTYPE_p_char swig_types[4]
#define SWIGTYPE_p_difference_type swig_types[5]
#define SWIGTYPE_p_float swig_types[6]
#define SWIGTYPE_p_int64_t swig_types[7]
#define SWIGTYPE_p_key_type swig_types[8]
#define SWIGTYPE_p_mapped_type swig_types[9]
#define SWIGTYPE_p_p_PyObject swig_types[10]
#define SWIGTYPE_p_sigrok__Analog swig_types[11]
#define SWIGTYPE_p_sigrok__Capability swig_types[12]
#define SWIGTYPE_p_sigrok__Channel swig_types[13]
#define SWIGTYPE_p_sigrok__ChannelGroup swig_types[14]
#define SWIGTYPE_p_sigrok__ChannelType swig_types[15]
#define SWIGTYPE_p_sigrok__ConfigKey swig_types[16]
#define SWIGTYPE_p_sigrok__Configurable swig_types[17]
#define SWIGTYPE_p_sigrok__Context swig_types[18]
#define SWIGTYPE_p_sigrok__DataType swig_types[19]
#define SWIGTYPE_p_sigrok__Device swig_types[20]
#define SWIGTYPE_p_sigrok__Driver swig_types[21]
#define SWIGTYPE_p_sigrok__Error swig_types[22]
#define SWIGTYPE_p_sigrok__HardwareDevice swig_types[23]
#define SWIGTYPE_p_sigrok__Header swig_types[24]
#define SWIGTYPE_p_sigrok__Input swig_types[25]
#define SWIGTYPE_p_sigrok__InputDevice swig_types[26]
#define SWIGTYPE_p_sigrok__InputFormat swig_types[27]
#define SWIGTYPE_p_sigrok__LogLevel swig_types[28]
#define SWIGTYPE_p_sigrok__Logic swig_types[29]
#define SWIGTYPE_p_sigrok__Meta swig_types[30]
#define SWIGTYPE_p_sigrok__Option swig_types[31]
#define SWIGTYPE_p_sigrok__Output swig_types[32]
#define SWIGTYPE_p_sigrok__OutputFlag swig_types[33]
#define SWIGTYPE_p_sigrok__OutputFormat swig_types[34]
#define SWIGTYPE_p_sigrok__Packet swig_types[35]
#define SWIGTYPE_p_sigrok__PacketPayload swig_types[36]
#define SWIGTYPE_p_sigrok__PacketType swig_types[37]
#define SWIGTYPE_p_sigrok__Quantity swig_types[38]
#define SWIGTYPE_p_sigrok__QuantityFlag swig_types[39]
#define SWIGTYPE_p_sigrok__Rational swig_types[40]
#define SWIGTYPE_p_sigrok__ResourceReader swig_types[41]
#define SWIGTYPE_p_sigrok__Session swig_types[42]
#define SWIGTYPE_p_sigrok__SessionDevice swig_types[43]
#define SWIGTYPE_p_sigrok__Trigger swig_types[44]
#define SWIGTYPE_p_sigrok__TriggerMatch swig_types[45]
#define SWIGTYPE_p_sigrok__TriggerMatchType swig_types[46]
#define SWIGTYPE_p_sigrok__TriggerStage swig_types[47]
#define SWIGTYPE_p_sigrok__Unit swig_types[48]
#define SWIGTYPE_p_sigrok__UserDevice swig_types[49]
#define SWIGTYPE_p_size_type swig_types[50]
#define SWIGTYPE_p_std__allocatorT_Glib__VariantBase_t swig_types[51]
#define SWIGTYPE_p_std__allocatorT_sigrok__Capability_const_p_t swig_types[52]
#define SWIGTYPE_p_std__allocatorT_sigrok__ConfigKey_const_p_t swig_types[53]
#define SWIGTYPE_p_std__allocatorT_sigrok__QuantityFlag_const_p_t swig_types[54]
#define SWIGTYPE_p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t swig_types[55]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t swig_types[56]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t swig_types[57]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t swig_types[58]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t swig_types[59]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t swig_types[60]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t swig_types[61]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__string_t_t swig_types[62]
#define SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t swig_types[63]
#define SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t swig_types[64]
#define SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t swig_types[65]
#define SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t swig_types[66]
#define SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t swig_types[67]
#define SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t swig_types[68]
#define SWIGTYPE_p_std__exception swig_types[69]
#define SWIGTYPE_p_std__functionT_void_fF_t swig_types[70]
#define SWIGTYPE_p_std__functionT_void_fsigrok__LogLevel_const_p_std__stringF_t swig_types[71]
#define SWIGTYPE_p_std__functionT_void_fstd__shared_ptrT_sigrok__Device_t_std__shared_ptrT_sigrok__Packet_tF_t swig_types[72]
#define SWIGTYPE_p_std__invalid_argument swig_types[73]
#define SWIGTYPE_p_std__lessT_sigrok__Capability_const_p_t swig_types[74]
#define SWIGTYPE_p_std__lessT_sigrok__ConfigKey_const_p_t swig_types[75]
#define SWIGTYPE_p_std__lessT_std__string_t swig_types[76]
#define SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t swig_types[77]
#define SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t swig_types[78]
#define SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t swig_types[79]
#define SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t swig_types[80]
#define SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t swig_types[81]
#define SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t swig_types[82]
#define SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t swig_types[83]
#define SWIGTYPE_p_std__mapT_std__string_std__string_t swig_types[84]
#define SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t swig_types[85]
#define SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t swig_types[86]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t swig_types[87]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t swig_types[88]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t swig_types[89]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t swig_types[90]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t swig_types[91]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t swig_types[92]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t swig_types[93]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t swig_types[94]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Header_t swig_types[95]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__InputDevice_t swig_types[96]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t swig_types[97]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t swig_types[98]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t swig_types[99]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Meta_t swig_types[100]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t swig_types[101]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t swig_types[102]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Output_t swig_types[103]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__PacketPayload_t swig_types[104]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t swig_types[105]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Rational_t swig_types[106]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__SessionDevice_t swig_types[107]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t swig_types[108]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t swig_types[109]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t swig_types[110]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t swig_types[111]
#define SWIGTYPE_p_std__shared_ptrT_sigrok__UserDevice_t swig_types[112]
#define SWIGTYPE_p_std__vectorT_Glib__VariantBase_t swig_types[113]
#define SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t swig_types[114]
#define SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t swig_types[115]
#define SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t swig_types[116]
#define SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t swig_types[117]
#define SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t swig_types[118]
#define SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t swig_types[119]
#define SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t swig_types[120]
#define SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t swig_types[121]
#define SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t swig_types[122]
#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[123]
#define SWIGTYPE_p_swig__SwigPyIterator swig_types[124]
#define SWIGTYPE_p_uint64_t swig_types[125]
#define SWIGTYPE_p_uint8_t swig_types[126]
#define SWIGTYPE_p_value_type swig_types[127]
#define SWIGTYPE_p_void swig_types[128]
static swig_type_info *swig_types[130];
static swig_module_info swig_module = {swig_types, 129, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)

/* -------- TYPES TABLE (END) -------- */

#ifdef SWIG_TypeQuery
# undef SWIG_TypeQuery
#endif
#define SWIG_TypeQuery SWIG_Python_TypeQuery

/*-----------------------------------------------
              @(target):= _classes.so
  ------------------------------------------------*/
#if PY_VERSION_HEX >= 0x03000000
#  define SWIG_init    PyInit__classes

#else
#  define SWIG_init    init_classes

#endif

#ifdef __cplusplus
#include <utility>
/* SwigValueWrapper is described in swig.swg */
template<typename T> class SwigValueWrapper {
  struct SwigSmartPointer {
    T *ptr;
    SwigSmartPointer(T *p) : ptr(p) { }
    ~SwigSmartPointer() { delete ptr; }
    SwigSmartPointer& operator=(SwigSmartPointer& rhs) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = rhs.ptr; rhs.ptr = 0; return *this; }
    void reset(T *p) { T* oldptr = ptr; ptr = 0; delete oldptr; ptr = p; }
  } pointer;
  SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs);
  SwigValueWrapper(const SwigValueWrapper<T>& rhs);
public:
  SwigValueWrapper() : pointer(0) { }
  SwigValueWrapper& operator=(const T& t) { SwigSmartPointer tmp(new T(t)); pointer = tmp; return *this; }
#if __cplusplus >=201103L
  SwigValueWrapper& operator=(T&& t) { SwigSmartPointer tmp(new T(std::move(t))); pointer = tmp; return *this; }
  operator T&&() const { return std::move(*pointer.ptr); }
#else
  operator T&() const { return *pointer.ptr; }
#endif
  T *operator&() const { return pointer.ptr; }
  static void reset(SwigValueWrapper& t, T *p) { t.pointer.reset(p); }
};

/*
 * SwigValueInit() is a generic initialisation solution as the following approach:
 * 
 *       T c_result = T();
 * 
 * doesn't compile for all types for example:
 * 
 *       unsigned int c_result = unsigned int();
 */
template <typename T> T SwigValueInit() {
  return T();
}

#if __cplusplus >=201103L
# define SWIG_STD_MOVE(OBJ) std::move(OBJ)
#else
# define SWIG_STD_MOVE(OBJ) OBJ
#endif

#endif


#define SWIG_as_voidptr(a) const_cast< void * >(static_cast< const void * >(a)) 
#define SWIG_as_voidptrptr(a) ((void)SWIG_as_voidptr(*a),reinterpret_cast< void** >(a)) 


#include <stdexcept>


namespace swig {
  class SwigPtr_PyObject {
  protected:
    PyObject *_obj;

  public:
    SwigPtr_PyObject() :_obj(0)
    {
    }

    SwigPtr_PyObject(const SwigPtr_PyObject& item) : _obj(item._obj)
    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      SWIG_Py_XINCREF(_obj);
      SWIG_PYTHON_THREAD_END_BLOCK;
    }
    
    SwigPtr_PyObject(PyObject *obj, bool initial_ref = true) :_obj(obj)
    {
      if (initial_ref) {
        SWIG_PYTHON_THREAD_BEGIN_BLOCK;
        SWIG_Py_XINCREF(_obj);
        SWIG_PYTHON_THREAD_END_BLOCK;
      }
    }
    
    SwigPtr_PyObject & operator=(const SwigPtr_PyObject& item) 
    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      SWIG_Py_XINCREF(item._obj);
      SWIG_Py_XDECREF(_obj);
      _obj = item._obj;
      SWIG_PYTHON_THREAD_END_BLOCK;
      return *this;      
    }
    
    ~SwigPtr_PyObject() 
    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      SWIG_Py_XDECREF(_obj);
      SWIG_PYTHON_THREAD_END_BLOCK;
    }
    
    operator PyObject *() const
    {
      return _obj;
    }

    PyObject *operator->() const
    {
      return _obj;
    }
  };
}


namespace swig {
  struct SwigVar_PyObject : SwigPtr_PyObject {
    SwigVar_PyObject(PyObject* obj = 0) : SwigPtr_PyObject(obj, false) { }
    
    SwigVar_PyObject & operator = (PyObject* obj)
    {
      SWIG_Py_XDECREF(_obj);
      _obj = obj;
      return *this;      
    }
  };
}


#include "config.h"

#include <stdio.h>
#include <pygobject.h>
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
#include <numpy/arrayobject.h>

PyObject *PyGObject_lib;
PyObject *GLib;

#if PYGOBJECT_FLAGS_SIGNED
typedef gint pyg_flags_type;
#else
typedef guint pyg_flags_type;
#endif

#if PY_VERSION_HEX >= 0x03000000
#define string_check PyUnicode_Check
#define string_from_python PyUnicode_AsUTF8
#define string_to_python PyUnicode_FromString
#else
#define string_check PyString_Check
#define string_from_python PyString_AsString
#define string_to_python PyString_FromString
#endif



#include <libsigrokcxx/libsigrokcxx.hpp>
using namespace std;


#include <string>


SWIGINTERNINLINE PyObject*
  SWIG_From_int  (int value)
{
  return PyInt_FromLong((long) value);
}


#include <iostream>

#if PY_VERSION_HEX >= 0x03020000
# define SWIGPY_SLICEOBJECT PyObject
#else
# define SWIGPY_SLICEOBJECT PySliceObject
#endif


#include <typeinfo>
#include <stdexcept>


#if defined(__GNUC__)
#  if __GNUC__ == 2 && __GNUC_MINOR <= 96
#     define SWIG_STD_NOMODERN_STL
#  endif
#endif


#include <stddef.h>


namespace swig {
  struct SwigPyIterator {
  protected:
    SwigPtr_PyObject _seq;

  protected:
    SwigPyIterator(PyObject *seq) : _seq(seq)
    {
    }

    void raise_stop_iteration() const
    {
      SWIG_SetErrorObj(PyExc_StopIteration, SWIG_Py_Void());
    }

  public:
    virtual ~SwigPyIterator() {}

    // Access iterator method, required by Python
    virtual PyObject *value() const = 0;

    // Forward iterator method, required by Python
    virtual SwigPyIterator *incr(size_t n = 1) = 0;
    
    // Backward iterator method, very common in C++, but not required in Python
    // This default probably ought to instead raise some sort of unsupported exception
    virtual SwigPyIterator *decr(size_t /*n*/ = 1)
    {
      raise_stop_iteration();
      return NULL;
    }

    // Random access iterator methods, but not required in Python
    virtual ptrdiff_t distance(const SwigPyIterator &/*x*/) const
    {
      throw std::invalid_argument("operation not supported");
    }

    virtual bool equal (const SwigPyIterator &/*x*/) const
    {
      throw std::invalid_argument("operation not supported");
    }
    
    // C++ common/needed methods
    virtual SwigPyIterator *copy() const = 0;

    PyObject *next()     
    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads       
      PyObject *obj = value();
      if (obj)
        if (!incr())
          obj = NULL;
      SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads
      return obj;     
    }

    /* Make an alias for Python 3.x */
    PyObject *__next__()
    {
      return next();
    }

    PyObject *previous()
    {
      SWIG_PYTHON_THREAD_BEGIN_BLOCK; // disable threads       
      if (!decr())
        return NULL;
      PyObject *obj = value();
      SWIG_PYTHON_THREAD_END_BLOCK; // re-enable threads       
      return obj;
    }

    SwigPyIterator *advance(ptrdiff_t n)
    {
      return  (n > 0) ?  incr(n) : decr(-n);
    }
      
    bool operator == (const SwigPyIterator& x)  const
    {
      return equal(x);
    }
      
    bool operator != (const SwigPyIterator& x) const
    {
      return ! operator==(x);
    }
      
    SwigPyIterator& operator += (ptrdiff_t n)
    {
      SwigPyIterator *ret = advance(n);
      return ret ? *ret : *this;
    }

    SwigPyIterator& operator -= (ptrdiff_t n)
    {
      SwigPyIterator *ret = advance(-n);
      return ret ? *ret : *this;
    }
      
    SwigPyIterator* operator + (ptrdiff_t n) const
    {
      return copy()->advance(n);
    }

    SwigPyIterator* operator - (ptrdiff_t n) const
    {
      return copy()->advance(-n);
    }
      
    ptrdiff_t operator - (const SwigPyIterator& x) const
    {
      return x.distance(*this);
    }
      
    static swig_type_info* descriptor() {
      static swig_type_info* desc = SWIG_TypeQuery("swig::SwigPyIterator *");
      return desc;
    }    
  };

#if defined(SWIGPYTHON_BUILTIN)
  inline PyObject* make_output_iterator_builtin (PyObject *pyself)
  {
    SWIG_Py_INCREF(pyself);
    return pyself;
  }
#endif
}


SWIGINTERN int
SWIG_AsVal_double (PyObject *obj, double *val)
{
  int res = SWIG_TypeError;
  if (PyFloat_Check(obj)) {
    if (val) *val = PyFloat_AsDouble(obj);
    return SWIG_OK;
#if PY_VERSION_HEX < 0x03000000
  } else if (PyInt_Check(obj)) {
    if (val) *val = (double) PyInt_AsLong(obj);
    return SWIG_OK;
#endif
  } else if (PyLong_Check(obj)) {
    double v = PyLong_AsDouble(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      PyErr_Clear();
    }
  }
#ifdef SWIG_PYTHON_CAST_MODE
  {
    int dispatch = 0;
    double d = PyFloat_AsDouble(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = d;
      return SWIG_AddCast(SWIG_OK);
    } else {
      PyErr_Clear();
    }
    if (!dispatch) {
      long v = PyLong_AsLong(obj);
      if (!PyErr_Occurred()) {
	if (val) *val = v;
	return SWIG_AddCast(SWIG_AddCast(SWIG_OK));
      } else {
	PyErr_Clear();
      }
    }
  }
#endif
  return res;
}


#include <errno.h>


#include <float.h>


#include <math.h>


SWIGINTERNINLINE int
SWIG_CanCastAsInteger(double *d, double min, double max) {
  double x = *d;
  if ((min <= x && x <= max)) {
   double fx, cx, rd;
   errno = 0;
   fx = floor(x);
   cx = ceil(x);
   rd =  ((x - fx) < 0.5) ? fx : cx; /* simple rint */
   if ((errno == EDOM) || (errno == ERANGE)) {
     errno = 0;
   } else {
     double summ, reps, diff;
     if (rd < x) {
       diff = x - rd;
     } else if (rd > x) {
       diff = rd - x;
     } else {
       return 1;
     }
     summ = rd + x;
     reps = diff/summ;
     if (reps < 8*DBL_EPSILON) {
       *d = rd;
       return 1;
     }
   }
  }
  return 0;
}


SWIGINTERN int
SWIG_AsVal_unsigned_SS_long (PyObject *obj, unsigned long *val) 
{
#if PY_VERSION_HEX < 0x03000000
  if (PyInt_Check(obj)) {
    long v = PyInt_AsLong(obj);
    if (v >= 0) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      return SWIG_OverflowError;
    }
  } else
#endif
  if (PyLong_Check(obj)) {
    unsigned long v = PyLong_AsUnsignedLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      PyErr_Clear();
      return SWIG_OverflowError;
    }
  }
#ifdef SWIG_PYTHON_CAST_MODE
  {
    int dispatch = 0;
    unsigned long v = PyLong_AsUnsignedLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_AddCast(SWIG_OK);
    } else {
      PyErr_Clear();
    }
    if (!dispatch) {
      double d;
      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
      // Largest double not larger than ULONG_MAX (not portably calculated easily)
      // Note that double(ULONG_MAX) is stored in a double rounded up by one (for 64-bit unsigned long)
      // 0xfffffffffffff800ULL == (uint64_t)std::nextafter(double(__uint128_t(ULONG_MAX)+1), double(0))
      const double ulong_max = sizeof(unsigned long) == 8 ? 0xfffffffffffff800ULL : ULONG_MAX;
      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, ulong_max)) {
	if (val) *val = (unsigned long)(d);
	return res;
      }
    }
  }
#endif
  return SWIG_TypeError;
}


#include <limits.h>
#if !defined(SWIG_NO_LLONG_MAX)
# if !defined(LLONG_MAX) && defined(__GNUC__) && defined (__LONG_LONG_MAX__)
#   define LLONG_MAX __LONG_LONG_MAX__
#   define LLONG_MIN (-LLONG_MAX - 1LL)
#   define ULLONG_MAX (LLONG_MAX * 2ULL + 1ULL)
# endif
#endif


#if defined(LLONG_MAX) && !defined(SWIG_LONG_LONG_AVAILABLE)
#  define SWIG_LONG_LONG_AVAILABLE
#endif


#ifdef SWIG_LONG_LONG_AVAILABLE
SWIGINTERN int
SWIG_AsVal_unsigned_SS_long_SS_long (PyObject *obj, unsigned long long *val)
{
  int res = SWIG_TypeError;
  if (PyLong_Check(obj)) {
    unsigned long long v = PyLong_AsUnsignedLongLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      PyErr_Clear();
      res = SWIG_OverflowError;
    }
  } else {
    unsigned long v;
    res = SWIG_AsVal_unsigned_SS_long (obj,&v);
    if (SWIG_IsOK(res)) {
      if (val) *val = v;
      return res;
    }
  }
#ifdef SWIG_PYTHON_CAST_MODE
  {
    const double mant_max = 1LL << DBL_MANT_DIG;
    double d;
    res = SWIG_AsVal_double (obj,&d);
    if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, 0, mant_max))
      return SWIG_OverflowError;
    if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, 0, mant_max)) {
      if (val) *val = (unsigned long long)(d);
      return SWIG_AddCast(res);
    }
    res = SWIG_TypeError;
  }
#endif
  return res;
}
#endif


SWIGINTERNINLINE int
SWIG_AsVal_size_t (PyObject * obj, size_t *val)
{
  int res = SWIG_TypeError;
#ifdef SWIG_LONG_LONG_AVAILABLE
  if (sizeof(size_t) <= sizeof(unsigned long)) {
#endif
    unsigned long v;
    res = SWIG_AsVal_unsigned_SS_long (obj, val ? &v : 0);
    if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
#ifdef SWIG_LONG_LONG_AVAILABLE
  } else if (sizeof(size_t) <= sizeof(unsigned long long)) {
    unsigned long long v;
    res = SWIG_AsVal_unsigned_SS_long_SS_long (obj, val ? &v : 0);
    if (SWIG_IsOK(res) && val) *val = static_cast< size_t >(v);
  }
#endif
  return res;
}


  #define SWIG_From_long   PyInt_FromLong 


#ifdef SWIG_LONG_LONG_AVAILABLE
SWIGINTERNINLINE PyObject* 
SWIG_From_long_SS_long  (long long value)
{
  return ((value < LONG_MIN) || (value > LONG_MAX)) ?
    PyLong_FromLongLong(value) : PyInt_FromLong(static_cast< long >(value));
}
#endif


SWIGINTERNINLINE PyObject *
SWIG_From_ptrdiff_t  (ptrdiff_t value)
{    
#ifdef SWIG_LONG_LONG_AVAILABLE
  if (sizeof(ptrdiff_t) <= sizeof(long)) {
#endif
    return SWIG_From_long  (static_cast< long >(value));
#ifdef SWIG_LONG_LONG_AVAILABLE
  } else {
    /* assume sizeof(ptrdiff_t) <= sizeof(long long) */
    return SWIG_From_long_SS_long  (static_cast< long long >(value));
  }
#endif
}


SWIGINTERNINLINE PyObject*
  SWIG_From_bool  (bool value)
{
  return PyBool_FromLong(value ? 1 : 0);
}


SWIGINTERN int
SWIG_AsVal_long (PyObject *obj, long* val)
{
#if PY_VERSION_HEX < 0x03000000
  if (PyInt_Check(obj)) {
    if (val) *val = PyInt_AsLong(obj);
    return SWIG_OK;
  } else
#endif
  if (PyLong_Check(obj)) {
    long v = PyLong_AsLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      PyErr_Clear();
      return SWIG_OverflowError;
    }
  }
#ifdef SWIG_PYTHON_CAST_MODE
  {
    int dispatch = 0;
    long v = PyInt_AsLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_AddCast(SWIG_OK);
    } else {
      PyErr_Clear();
    }
    if (!dispatch) {
      double d;
      int res = SWIG_AddCast(SWIG_AsVal_double (obj,&d));
      // Largest double not larger than LONG_MAX (not portably calculated easily)
      // Note that double(LONG_MAX) is stored in a double rounded up by one (for 64-bit long)
      // 0x7ffffffffffffc00LL == (int64_t)std::nextafter(double(__uint128_t(LONG_MAX)+1), double(0))
      const double long_max = sizeof(long) == 8 ? 0x7ffffffffffffc00LL : LONG_MAX;
      // No equivalent needed for 64-bit double(LONG_MIN) is exactly LONG_MIN
      if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, LONG_MIN, long_max)) {
	if (val) *val = (long)(d);
	return res;
      }
    }
  }
#endif
  return SWIG_TypeError;
}


#ifdef SWIG_LONG_LONG_AVAILABLE
SWIGINTERN int
SWIG_AsVal_long_SS_long (PyObject *obj, long long *val)
{
  int res = SWIG_TypeError;
  if (PyLong_Check(obj)) {
    long long v = PyLong_AsLongLong(obj);
    if (!PyErr_Occurred()) {
      if (val) *val = v;
      return SWIG_OK;
    } else {
      PyErr_Clear();
      res = SWIG_OverflowError;
    }
  } else {
    long v;
    res = SWIG_AsVal_long (obj,&v);
    if (SWIG_IsOK(res)) {
      if (val) *val = v;
      return res;
    }
  }
#ifdef SWIG_PYTHON_CAST_MODE
  {
    const double mant_max = 1LL << DBL_MANT_DIG;
    const double mant_min = -mant_max;
    double d;
    res = SWIG_AsVal_double (obj,&d);
    if (SWIG_IsOK(res) && !SWIG_CanCastAsInteger(&d, mant_min, mant_max))
      return SWIG_OverflowError;
    if (SWIG_IsOK(res) && SWIG_CanCastAsInteger(&d, mant_min, mant_max)) {
      if (val) *val = (long long)(d);
      return SWIG_AddCast(res);
    }
    res = SWIG_TypeError;
  }
#endif
  return res;
}
#endif


SWIGINTERNINLINE int
SWIG_AsVal_ptrdiff_t (PyObject * obj, ptrdiff_t *val)
{
  int res = SWIG_TypeError;
#ifdef SWIG_LONG_LONG_AVAILABLE
  if (sizeof(ptrdiff_t) <= sizeof(long)) {
#endif
    long v;
    res = SWIG_AsVal_long (obj, val ? &v : 0);
    if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
#ifdef SWIG_LONG_LONG_AVAILABLE
  } else if (sizeof(ptrdiff_t) <= sizeof(long long)) {
    long long v;
    res = SWIG_AsVal_long_SS_long (obj, val ? &v : 0);
    if (SWIG_IsOK(res) && val) *val = static_cast< ptrdiff_t >(v);
  }
#endif
  return res;
}


#include <algorithm>


#include <vector>


#include <utility>


#include <map>


#include <algorithm>


#include <set>


namespace swig {
  template <class Type>
  struct noconst_traits {
    typedef Type noconst_type;
  };

  template <class Type>
  struct noconst_traits<const Type> {
    typedef Type noconst_type;
  };

  /*
    type categories
  */
  struct pointer_category { };
  struct value_category { };

  /*
    General traits that provides type_name and type_info
  */
  template <class Type> struct traits { };

  template <class Type>
  inline const char* type_name() {
    return traits<typename noconst_traits<Type >::noconst_type >::type_name();
  }

  template <class Type> struct traits_info {
    static swig_type_info *type_query(std::string name) {
      name += " *";
      return SWIG_TypeQuery(name.c_str());
    }
    static swig_type_info *type_info() {
      static swig_type_info *info = type_query(type_name<Type>());
      return info;
    }
  };

  /*
    Partial specialization for pointers (traits_info)
  */
  template <class Type> struct traits_info<Type *> {
    static swig_type_info *type_query(std::string name) {
      name += " *";
      return SWIG_TypeQuery(name.c_str());
    }
    static swig_type_info *type_info() {
      static swig_type_info *info = type_query(type_name<Type>());
      return info;
    }
  };

  template <class Type>
  inline swig_type_info *type_info() {
    return traits_info<Type>::type_info();
  }

  /*
    Partial specialization for pointers (traits)
  */
  template <class Type> struct traits <Type *> {
    typedef pointer_category category;
    static std::string make_ptr_name(const char* name) {
      std::string ptrname = name;
      ptrname += " *";
      return ptrname;
    }
    static const char* type_name() {
      static std::string name = make_ptr_name(swig::type_name<Type>());
      return name.c_str();
    }
  };

  template <class Type, class Category>
  struct traits_as { };

  template <class Type, class Category>
  struct traits_check { };

}


namespace swig {  
  /*
    Traits that provides the from method
  */
  template <class Type> struct traits_from_ptr {
    static PyObject *from(Type *val, int owner = 0) {
      return SWIG_InternalNewPointerObj(val, type_info<Type>(), owner);
    }
  };

  template <class Type> struct traits_from {
    static PyObject *from(const Type& val) {
      return traits_from_ptr<Type>::from(new Type(val), 1);
    }
  };

  template <class Type> struct traits_from<Type *> {
    static PyObject *from(Type* val) {
      return traits_from_ptr<Type>::from(val, 0);
    }
  };

  template <class Type> struct traits_from<const Type *> {
    static PyObject *from(const Type* val) {
      return traits_from_ptr<Type>::from(const_cast<Type*>(val), 0);
    }
  };


  template <class Type>
  inline PyObject *from(const Type& val) {
    return traits_from<Type>::from(val);
  }

  template <class Type>
  inline PyObject *from_ptr(Type* val, int owner) {
    return traits_from_ptr<Type>::from(val, owner);
  }

  /*
    Traits that provides the asval/as/check method
  */
  template <class Type>
  struct traits_asptr {   
    static int asptr(PyObject *obj, Type **val) {
      int res = SWIG_ERROR;
      swig_type_info *descriptor = type_info<Type>();
      if (val) {
        Type *p = 0;
        int newmem = 0;
        res = descriptor ? SWIG_ConvertPtrAndOwn(obj, (void **)&p, descriptor, 0, &newmem) : SWIG_ERROR;
        if (SWIG_IsOK(res)) {
          if (newmem & SWIG_CAST_NEW_MEMORY) {
            res |= SWIG_NEWOBJMASK;
          }
          *val = p;
        }
      } else {
        res = descriptor ? SWIG_ConvertPtr(obj, 0, descriptor, 0) : SWIG_ERROR;
      }
      return res;
    }
  }; 

  template <class Type>
  inline int asptr(PyObject *obj, Type **vptr) {
    return traits_asptr<Type>::asptr(obj, vptr);
  }

  template <class Type> 
  struct traits_asval {
    static int asval(PyObject *obj, Type *val) {
      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));
      }
    }
  };

  template <class Type> struct traits_asval<Type*> {
    static int asval(PyObject *obj, Type **val) {
      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));
      }
    }
  };
  
  template <class Type>
  inline int asval(PyObject *obj, Type *val) {
    return traits_asval<Type>::asval(obj, val);
  }

  template <class Type> 
  struct traits_as<Type, value_category> {
    static Type as(PyObject *obj) {
      Type v;
      int res = asval(obj, &v);
      if (!obj || !SWIG_IsOK(res)) {
	if (!PyErr_Occurred()) {
	  ::SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
	}
	throw std::invalid_argument("bad type");
      }
      return v;
    }
  };

  template <class Type> 
  struct traits_as<Type, pointer_category> {
    static Type as(PyObject *obj) {
      Type *v = 0;      
      int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
      if (SWIG_IsOK(res) && v) {
	if (SWIG_IsNewObj(res)) {
	  Type r(*v);
	  delete v;
	  return r;
	} else {
	  return *v;
	}
      } else {
	if (!PyErr_Occurred()) {
	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
	}
	throw std::invalid_argument("bad type");
      }
    }
  };

  template <class Type> 
  struct traits_as<Type*, pointer_category> {
    static Type* as(PyObject *obj) {
      Type *v = 0;      
      int res = (obj ? traits_asptr<Type>::asptr(obj, &v) : SWIG_ERROR);
      if (SWIG_IsOK(res)) {
	return v;
      } else {
	if (!PyErr_Occurred()) {
	  SWIG_Error(SWIG_TypeError,  swig::type_name<Type>());
	}
	throw std::invalid_argument("bad type");
      }
    }
  };
    
  template <class Type>
  inline Type as(PyObject *obj) {
    return traits_as<Type, typename traits<Type>::category>::as(obj);
  }

  template <class Type> 
  struct traits_check<Type, value_category> {
    static bool check(PyObject *obj) {
      int res = obj ? asval(obj, (Type *)(0)) : SWIG_ERROR;
      return SWIG_IsOK(res) ? true : false;
    }
  };

  template <class Type> 
  struct traits_check<Type, pointer_category> {
    static bool check(PyObject *obj) {
      int res = obj ? asptr(obj, (Type **)(0)) : SWIG_ERROR;
      return SWIG_IsOK(res) ? true : false;
    }
  };

  template <class Type>
  inline bool check(PyObject *obj) {
    return traits_check<Type, typename traits<Type>::category>::check(obj);
  }
}


#if defined(__SUNPRO_CC) && defined(_RWSTD_VER)
#  if !defined(SWIG_NO_STD_NOITERATOR_TRAITS_STL)
#    define SWIG_STD_NOITERATOR_TRAITS_STL
#  endif
#endif

#if !defined(SWIG_STD_NOITERATOR_TRAITS_STL)
#include <iterator>
#else
namespace std {
  template <class Iterator>
  struct iterator_traits {
    typedef ptrdiff_t difference_type;
    typedef typename Iterator::value_type value_type;
  };

  template <class Iterator, class Category,class T, class Reference, class Pointer, class Distance>
  struct iterator_traits<__reverse_bi_iterator<Iterator,Category,T,Reference,Pointer,Distance> > {
    typedef Distance difference_type;
    typedef T value_type;
  };

  template <class T>
  struct iterator_traits<T*> {
    typedef T value_type;
    typedef ptrdiff_t difference_type;
  };

  template<typename _InputIterator>
  inline typename iterator_traits<_InputIterator>::difference_type
  distance(_InputIterator __first, _InputIterator __last)
  {
    typename iterator_traits<_InputIterator>::difference_type __n = 0;
    while (__first != __last) {
      ++__first; ++__n;
    }
    return __n;
  }
}
#endif


namespace swig {
  template<typename OutIterator>
  class SwigPyIterator_T :  public SwigPyIterator
  {
  public:
    typedef OutIterator out_iterator;
    typedef typename std::iterator_traits<out_iterator>::value_type value_type;    
    typedef SwigPyIterator_T<out_iterator> self_type;

    SwigPyIterator_T(out_iterator curr, PyObject *seq)
      : SwigPyIterator(seq), current(curr)
    {
    }

    const out_iterator& get_current() const
    {
      return current;
    }

    
    bool equal (const SwigPyIterator &iter) const
    {
      const self_type *iters = dynamic_cast<const self_type *>(&iter);
      if (iters) {
	return (current == iters->get_current());
      } else {
	throw std::invalid_argument("bad iterator type");
      }
    }
    
    ptrdiff_t distance(const SwigPyIterator &iter) const
    {
      const self_type *iters = dynamic_cast<const self_type *>(&iter);
      if (iters) {
	return std::distance(current, iters->get_current());
      } else {
	throw std::invalid_argument("bad iterator type");
      }
    }    
    
  protected:
    out_iterator current;
  };
  
  template <class ValueType>
  struct from_oper 
  {
    typedef const ValueType& argument_type;
    typedef PyObject *result_type;
    result_type operator()(argument_type v) const
    {
      return swig::from(v);
    }
  };

  template<typename OutIterator, 
	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
	   typename FromOper = from_oper<ValueType> >
  class SwigPyForwardIteratorOpen_T :  public SwigPyIterator_T<OutIterator>
  {
  public:
    FromOper from;
    typedef OutIterator out_iterator;
    typedef ValueType value_type;
    typedef SwigPyIterator_T<out_iterator>  base;
    typedef SwigPyForwardIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
    
    SwigPyForwardIteratorOpen_T(out_iterator curr, PyObject *seq)
      : SwigPyIterator_T<OutIterator>(curr, seq)
    {
    }
    
    PyObject *value() const {
      return from(static_cast<const value_type&>(*(base::current)));
    }
    
    SwigPyIterator *copy() const
    {
      return new self_type(*this);
    }

    SwigPyIterator *incr(size_t n = 1)
    {
      // Open iterator does not raise StopIteration
      while (n--) {
	++base::current;
      }
      return this;
    }

  };

  template<typename OutIterator, 
	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
	   typename FromOper = from_oper<ValueType> >
  class SwigPyIteratorOpen_T :  public SwigPyForwardIteratorOpen_T<OutIterator, ValueType, FromOper>
  {
  public:
    FromOper from;
    typedef OutIterator out_iterator;
    typedef ValueType value_type;
    typedef SwigPyIterator_T<out_iterator>  base;
    typedef SwigPyIteratorOpen_T<OutIterator, ValueType, FromOper> self_type;
    
    SwigPyIteratorOpen_T(out_iterator curr, PyObject *seq)
      : SwigPyForwardIteratorOpen_T<OutIterator>(curr, seq)
    {
    }

    SwigPyIterator *decr(size_t n = 1)
    {
      // Open iterator does not raise StopIteration
      while (n--) {
	--base::current;
      }
      return this;
    }
  };

  template<typename OutIterator, 
	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
	   typename FromOper = from_oper<ValueType> >
  class SwigPyForwardIteratorClosed_T :  public SwigPyIterator_T<OutIterator>
  {
  public:
    FromOper from;
    typedef OutIterator out_iterator;
    typedef ValueType value_type;
    typedef SwigPyIterator_T<out_iterator>  base;    
    typedef SwigPyForwardIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
    
    SwigPyForwardIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
      : SwigPyIterator_T<OutIterator>(curr, seq), begin(first), end(last)
    {
    }
    
    PyObject *value() const {
      if (base::current == end) {
	base::raise_stop_iteration();
	return NULL;
      } else {
	return from(static_cast<const value_type&>(*(base::current)));
      }
    }
    
    SwigPyIterator *copy() const
    {
      return new self_type(*this);
    }

    SwigPyIterator *incr(size_t n = 1)
    {
      while (n--) {
	if (base::current == end) {
	  base::raise_stop_iteration();
	  return NULL;
	} else {
	  ++base::current;
	}
      }
      return this;
    }

  protected:
    out_iterator begin;
    out_iterator end;
  };

  template<typename OutIterator, 
	   typename ValueType = typename std::iterator_traits<OutIterator>::value_type,
	   typename FromOper = from_oper<ValueType> >
  class SwigPyIteratorClosed_T :  public SwigPyForwardIteratorClosed_T<OutIterator,ValueType,FromOper>
  {
  public:
    FromOper from;
    typedef OutIterator out_iterator;
    typedef ValueType value_type;
    typedef SwigPyIterator_T<out_iterator>  base;
    typedef SwigPyForwardIteratorClosed_T<OutIterator, ValueType, FromOper> base0;
    typedef SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper> self_type;
    
    SwigPyIteratorClosed_T(out_iterator curr, out_iterator first, out_iterator last, PyObject *seq)
      : SwigPyForwardIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
    {
    }

    SwigPyIterator *decr(size_t n = 1)
    {
      while (n--) {
	if (base::current == base0::begin) {
	  base0::raise_stop_iteration();
	  return NULL;
	} else {
	  --base::current;
	}
      }
      return this;
    }
  };


  template<typename OutIter>
  inline SwigPyIterator*
  make_output_forward_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
  {
    return new SwigPyForwardIteratorClosed_T<OutIter>(current, begin, end, seq);
  }

  template<typename OutIter>
  inline SwigPyIterator*
  make_output_iterator(const OutIter& current, const OutIter& begin,const OutIter& end, PyObject *seq = 0)
  {
    return new SwigPyIteratorClosed_T<OutIter>(current, begin, end, seq);
  }

  template<typename OutIter>
  inline SwigPyIterator*
  make_output_forward_iterator(const OutIter& current, PyObject *seq = 0)
  {
    return new SwigPyForwardIteratorOpen_T<OutIter>(current, seq);
  }

  template<typename OutIter>
  inline SwigPyIterator*
  make_output_iterator(const OutIter& current, PyObject *seq = 0)
  {
    return new SwigPyIteratorOpen_T<OutIter>(current, seq);
  }

}


SWIGINTERN swig_type_info*
SWIG_pchar_descriptor(void)
{
  static swig_type_info* info = 0;
  if (!info) {
    info = SWIG_TypeQuery("_p_char");
  }
  return info;
}


/* Return string from Python obj. NOTE: obj must remain in scope in order
   to use the returned cptr (but only when alloc is set to SWIG_OLDOBJ) */
SWIGINTERN int
SWIG_AsCharPtrAndSize(PyObject *obj, char **cptr, size_t *psize, int *alloc)
{
#if PY_VERSION_HEX >= 0x03000000
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
  if (PyBytes_Check(obj))
#else
  if (PyUnicode_Check(obj))
#endif
#else  
  if (PyString_Check(obj))
#endif
  {
    char *cstr; Py_ssize_t len;
    PyObject *bytes = NULL;
    int ret = SWIG_OK;
    if (alloc)
      *alloc = SWIG_OLDOBJ;
#if PY_VERSION_HEX >= 0x03000000 && defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
    if (PyBytes_AsStringAndSize(obj, &cstr, &len) == -1)
      return SWIG_TypeError;
#else
    cstr = (char *)SWIG_PyUnicode_AsUTF8AndSize(obj, &len, &bytes);
    if (!cstr)
      return SWIG_TypeError;
    /* The returned string is only duplicated if the char * returned is not owned and memory managed by obj */
    if (bytes && cptr) {
      if (alloc) {
        cstr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
        *alloc = SWIG_NEWOBJ;
      } else {
        /* alloc must be set in order to clean up allocated memory */
        return SWIG_RuntimeError;
      }
    }
#endif
    if (cptr) *cptr = cstr;
    if (psize) *psize = len + 1;
    SWIG_Py_XDECREF(bytes);
    return ret;
  } else {
#if defined(SWIG_PYTHON_2_UNICODE)
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
#error "Cannot use both SWIG_PYTHON_2_UNICODE and SWIG_PYTHON_STRICT_BYTE_CHAR at once"
#endif
#if PY_VERSION_HEX < 0x03000000
    if (PyUnicode_Check(obj)) {
      char *cstr; Py_ssize_t len;
      if (!alloc && cptr) {
        return SWIG_RuntimeError;
      }
      obj = PyUnicode_AsUTF8String(obj);
      if (!obj)
        return SWIG_TypeError;
      if (PyString_AsStringAndSize(obj, &cstr, &len) != -1) {
        if (cptr) {
          if (alloc) *alloc = SWIG_NEWOBJ;
          *cptr = reinterpret_cast< char* >(memcpy(new char[len + 1], cstr, sizeof(char)*(len + 1)));
        }
        if (psize) *psize = len + 1;

        SWIG_Py_XDECREF(obj);
        return SWIG_OK;
      } else {
        SWIG_Py_XDECREF(obj);
      }
    }
#endif
#endif

    swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
    if (pchar_descriptor) {
      void* vptr = 0;
      if (SWIG_ConvertPtr(obj, &vptr, pchar_descriptor, 0) == SWIG_OK) {
	if (cptr) *cptr = (char *) vptr;
	if (psize) *psize = vptr ? (strlen((char *)vptr) + 1) : 0;
	if (alloc) *alloc = SWIG_OLDOBJ;
	return SWIG_OK;
      }
    }
  }
  return SWIG_TypeError;
}


SWIGINTERN int
SWIG_AsPtr_std_string (PyObject * obj, std::string **val) 
{
  char* buf = 0 ; size_t size = 0; int alloc = SWIG_OLDOBJ;
  if (SWIG_IsOK((SWIG_AsCharPtrAndSize(obj, &buf, &size, &alloc)))) {
    if (buf) {
      if (val) *val = new std::string(buf, size - 1);
      if (alloc == SWIG_NEWOBJ) delete[] buf;
      return SWIG_NEWOBJ;
    } else {
      if (val) *val = 0;
      return SWIG_OLDOBJ;
    }
  } else {
    PyErr_Clear();
    static swig_type_info *descriptor = SWIG_TypeQuery("std::string" " *");
    if (descriptor) {
      std::string *vptr;
      int res = SWIG_ConvertPtr(obj, (void**)&vptr, descriptor, 0);
      if (SWIG_IsOK(res) && val) *val = vptr;
      return res;
    }
  }
  return SWIG_ERROR;
}


SWIGINTERN int
SWIG_AsVal_std_string (PyObject * obj, std::string *val)
{
  std::string* v = (std::string *) 0;
  int res = SWIG_AsPtr_std_string (obj, &v);
  if (!SWIG_IsOK(res)) return res;
  if (v) {
    if (val) *val = *v;
    if (SWIG_IsNewObj(res)) {
      delete v;
      res = SWIG_DelNewMask(res);
    }
    return res;
  }
  return SWIG_ERROR;
}


SWIGINTERNINLINE PyObject *
SWIG_FromCharPtrAndSize(const char* carray, size_t size)
{
  if (carray) {
    if (size > (size_t)PY_SSIZE_T_MAX) {
      swig_type_info* pchar_descriptor = SWIG_pchar_descriptor();
      return pchar_descriptor ? 
	SWIG_InternalNewPointerObj(const_cast< char * >(carray), pchar_descriptor, 0) : SWIG_Py_Void();
    } else {
#if PY_VERSION_HEX >= 0x03000000
#if defined(SWIG_PYTHON_STRICT_BYTE_CHAR)
      return PyBytes_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
#else
      return PyUnicode_DecodeUTF8(carray, static_cast< Py_ssize_t >(size), "surrogateescape");
#endif
#else
      return PyString_FromStringAndSize(carray, static_cast< Py_ssize_t >(size));
#endif
    }
  } else {
    return SWIG_Py_Void();
  }
}


SWIGINTERNINLINE PyObject *
SWIG_From_std_string  (const std::string& s)
{
  return SWIG_FromCharPtrAndSize(s.data(), s.size());
}


namespace swig {
  template <> struct traits< std::string > {
    typedef value_category category;
    static const char* type_name() { return"std::string"; }
  };
  template <>  struct traits_asval< std::string > {
    typedef std::string value_type;
    static int asval(PyObject *obj, value_type *val) {
      return SWIG_AsVal_std_string (obj, val);
    }
  };
  template <>  struct traits_from< std::string > {
    typedef std::string value_type;
    static PyObject *from(const value_type& val) {
      return SWIG_From_std_string  (val);
    }
  };
}


  namespace swig {


















































    template <class T, class U >
    struct traits_asptr<std::pair<T,U> >  {
      typedef std::pair<T,U> value_type;

      static int get_pair(PyObject* first, PyObject* second,
			  std::pair<T,U> **val) 
      {
	if (val) {
	  value_type *vp = (new std::pair<T,U>());
	  T *pfirst = &(vp->first);
	  int res1 = swig::asval((PyObject*)first, pfirst);
	  if (!SWIG_IsOK(res1)) {
	    delete vp;
	    return res1;
	  }
	  U *psecond = &(vp->second);
	  int res2 = swig::asval((PyObject*)second, psecond);
	  if (!SWIG_IsOK(res2)) {
	    delete vp;
	    return res2;
	  }
	  *val = vp;
	  return SWIG_AddNewMask(res1 > res2 ? res1 : res2);
	} else {
	  T *pfirst = 0;
	  int res1 = swig::asval((PyObject*)first, pfirst);
	  if (!SWIG_IsOK(res1)) return res1;
	  U *psecond = 0;
	  int res2 = swig::asval((PyObject*)second, psecond);
	  if (!SWIG_IsOK(res2)) return res2;
	  return res1 > res2 ? res1 : res2;
	}
      }

      static int asptr(PyObject *obj, std::pair<T,U> **val) {
	int res = SWIG_ERROR;
	if (PyTuple_Check(obj)) {
	  if (PyTuple_GET_SIZE(obj) == 2) {
	    res = get_pair(PyTuple_GET_ITEM(obj,0),PyTuple_GET_ITEM(obj,1), val);
	  }
	} else if (PySequence_Check(obj)) {
	  if (PySequence_Size(obj) == 2) {
	    swig::SwigVar_PyObject first = PySequence_GetItem(obj,0);
	    swig::SwigVar_PyObject second = PySequence_GetItem(obj,1);
	    res = get_pair(first, second, val);
	  }
	} else {
	  value_type *p = 0;
	  swig_type_info *descriptor = swig::type_info<value_type>();
	  res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR;
	  if (SWIG_IsOK(res) && val)  *val = p;
	}
	return res;
      }
    };


    template <class T, class U >
    struct traits_from<std::pair<T,U> >   {
      static PyObject *from(const std::pair<T,U>& val) {
	PyObject* obj = PyTuple_New(2);
	PyTuple_SetItem(obj,0,swig::from(val.first));
	PyTuple_SetItem(obj,1,swig::from(val.second));
	return obj;
      }
    };
  }





































      namespace swig {
	template <>  struct traits<std::pair< std::string, std::string > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "std::string" "," "std::string" " >";
	  }
	};
      }
    

#include <functional>

namespace std {
  template <>
  struct less <PyObject *>
  {
    bool
    operator()(PyObject * v, PyObject *w) const
    { 
      bool res;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      res = PyObject_RichCompareBool(v, w, Py_LT) ? true : false;
      /* This may fall into a case of inconsistent
               eg. ObjA > ObjX > ObjB
               but ObjA < ObjB
      */
      if( PyErr_Occurred() && PyErr_ExceptionMatches(PyExc_TypeError) )
      {
        /* Objects can't be compared, this mostly occurred in Python 3.0 */
        /* Compare their ptr directly for a workaround */
        res = (v < w);
        PyErr_Clear();
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return res;
    }
  };

  template <>
  struct less <swig::SwigPtr_PyObject>
  {
    bool
    operator()(const swig::SwigPtr_PyObject& v, const swig::SwigPtr_PyObject& w) const
    {
      return std::less<PyObject *>()(v, w);
    }
  };

  template <>
  struct less <swig::SwigVar_PyObject>
  {
    bool
    operator()(const swig::SwigVar_PyObject& v, const swig::SwigVar_PyObject& w) const
    {
      return std::less<PyObject *>()(v, w);
    }
  };

}

namespace swig {
  template <> struct traits<PyObject *> {
    typedef value_category category;
    static const char* type_name() { return "PyObject *"; }
  };  

  template <>  struct traits_asval<PyObject * > {   
    typedef PyObject * value_type;
    static int asval(PyObject *obj, value_type *val) {
      if (val) *val = obj;
      return SWIG_OK;
    }
  };

  template <> 
  struct traits_check<PyObject *, value_category> {
    static bool check(PyObject *) {
      return true;
    }
  };

  template <>  struct traits_from<PyObject *> {
    typedef PyObject * value_type;
    static PyObject *from(const value_type& val) {
      SWIG_Py_XINCREF(val);
      return val;
    }
  };
  
}

namespace swig {
  template <class Difference>
  inline size_t
  check_index(Difference i, size_t size, bool insert = false) {
    if ( i < 0 ) {
      if ((size_t) (-i) <= size)
	return (size_t) (i + size);
    } else if ( (size_t) i < size ) {
      return (size_t) i;
    } else if (insert && ((size_t) i == size)) {
      return size;
    }
    throw std::out_of_range("index out of range");
  }

  template <class Difference>
  void
  slice_adjust(Difference i, Difference j, Py_ssize_t step, size_t size, Difference &ii, Difference &jj, bool insert = false) {
    if (step == 0) {
      throw std::invalid_argument("slice step cannot be zero");
    } else if (step > 0) {
      // Required range: 0 <= i < size, 0 <= j < size, i <= j
      if (i < 0) {
        ii = 0;
      } else if (i < (Difference)size) {
        ii = i;
      } else if (insert && (i >= (Difference)size)) {
        ii = (Difference)size;
      }
      if (j < 0) {
        jj = 0;
      } else {
        jj = (j < (Difference)size) ? j : (Difference)size;
      }
      if (jj < ii)
        jj = ii;
    } else {
      // Required range: -1 <= i < size-1, -1 <= j < size-1, i >= j
      if (i < -1) {
        ii = -1;
      } else if (i < (Difference) size) {
        ii = i;
      } else if (i >= (Difference)(size-1)) {
        ii = (Difference)(size-1);
      }
      if (j < -1) {
        jj = -1;
      } else {
        jj = (j < (Difference)size ) ? j : (Difference)(size-1);
      }
      if (ii < jj)
        ii = jj;
    }
  }

  template <class Sequence, class Difference>
  inline typename Sequence::iterator
  getpos(Sequence* self, Difference i)  {
    typename Sequence::iterator pos = self->begin();
    std::advance(pos, check_index(i,self->size()));
    return pos;
  }

  template <class Sequence, class Difference>
  inline typename Sequence::const_iterator
  cgetpos(const Sequence* self, Difference i)  {
    typename Sequence::const_iterator pos = self->begin();
    std::advance(pos, check_index(i,self->size()));
    return pos;
  }

  template <class Sequence>
  inline void
  erase(Sequence* seq, const typename Sequence::iterator& position) {
    seq->erase(position);
  }

  template <class Sequence>
  struct traits_reserve {
    static void reserve(Sequence & /*seq*/, typename Sequence::size_type /*n*/) {
      // This should be specialized for types that support reserve
    }
  };

  template <class Sequence, class Difference>
  inline Sequence*
  getslice(const Sequence* self, Difference i, Difference j, Py_ssize_t step) {
    typename Sequence::size_type size = self->size();
    Difference ii = 0;
    Difference jj = 0;
    swig::slice_adjust(i, j, step, size, ii, jj);

    if (step > 0) {
      typename Sequence::const_iterator sb = self->begin();
      typename Sequence::const_iterator se = self->begin();
      std::advance(sb,ii);
      std::advance(se,jj);
      if (step == 1) {
        return new Sequence(sb, se);
      } else {
        Sequence *sequence = new Sequence();
        swig::traits_reserve<Sequence>::reserve(*sequence, (jj - ii + step - 1) / step);
        typename Sequence::const_iterator it = sb;
        while (it!=se) {
          sequence->push_back(*it);
          for (Py_ssize_t c=0; c<step && it!=se; ++c)
            it++;
        }
        return sequence;
      } 
    } else {
      Sequence *sequence = new Sequence();
      swig::traits_reserve<Sequence>::reserve(*sequence, (ii - jj - step - 1) / -step);
      typename Sequence::const_reverse_iterator sb = self->rbegin();
      typename Sequence::const_reverse_iterator se = self->rbegin();
      std::advance(sb,size-ii-1);
      std::advance(se,size-jj-1);
      typename Sequence::const_reverse_iterator it = sb;
      while (it!=se) {
        sequence->push_back(*it);
        for (Py_ssize_t c=0; c<-step && it!=se; ++c)
          it++;
      }
      return sequence;
    }
  }

  template <class Sequence, class Difference, class InputSeq>
  inline void
  setslice(Sequence* self, Difference i, Difference j, Py_ssize_t step, const InputSeq& is = InputSeq()) {
    typename Sequence::size_type size = self->size();
    Difference ii = 0;
    Difference jj = 0;
    swig::slice_adjust(i, j, step, size, ii, jj, true);
    if (step > 0) {
      if (step == 1) {
        size_t ssize = jj - ii;
        if (ssize <= is.size()) {
          // expanding/staying the same size
          swig::traits_reserve<Sequence>::reserve(*self, self->size() - ssize + is.size());
          typename Sequence::iterator sb = self->begin();
          typename InputSeq::const_iterator isit = is.begin();
          std::advance(sb,ii);
          std::advance(isit, jj - ii);
          self->insert(std::copy(is.begin(), isit, sb), isit, is.end());
        } else {
          // shrinking
          typename Sequence::iterator sb = self->begin();
          typename Sequence::iterator se = self->begin();
          std::advance(sb,ii);
          std::advance(se,jj);
          self->erase(sb,se);
          sb = self->begin();
          std::advance(sb,ii);
          self->insert(sb, is.begin(), is.end());
        }
      } else {
        size_t replacecount = (jj - ii + step - 1) / step;
        if (is.size() != replacecount) {
          char msg[1024];
          PyOS_snprintf(msg, sizeof(msg), "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
          throw std::invalid_argument(msg);
        }
        typename Sequence::const_iterator isit = is.begin();
        typename Sequence::iterator it = self->begin();
        std::advance(it,ii);
        for (size_t rc=0; rc<replacecount && it != self->end(); ++rc) {
          *it++ = *isit++;
          for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c)
            it++;
        }
      }
    } else {
      size_t replacecount = (ii - jj - step - 1) / -step;
      if (is.size() != replacecount) {
        char msg[1024];
        PyOS_snprintf(msg, sizeof(msg), "attempt to assign sequence of size %lu to extended slice of size %lu", (unsigned long)is.size(), (unsigned long)replacecount);
        throw std::invalid_argument(msg);
      }
      typename Sequence::const_iterator isit = is.begin();
      typename Sequence::reverse_iterator it = self->rbegin();
      std::advance(it,size-ii-1);
      for (size_t rc=0; rc<replacecount && it != self->rend(); ++rc) {
        *it++ = *isit++;
        for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c)
          it++;
      }
    }
  }

  template <class Sequence, class Difference>
  inline void
  delslice(Sequence* self, Difference i, Difference j, Py_ssize_t step) {
    typename Sequence::size_type size = self->size();
    Difference ii = 0;
    Difference jj = 0;
    swig::slice_adjust(i, j, step, size, ii, jj, true);
    if (step > 0) {
      typename Sequence::iterator sb = self->begin();
      std::advance(sb,ii);
      if (step == 1) {
        typename Sequence::iterator se = self->begin();
        std::advance(se,jj);
        self->erase(sb,se);
      } else {
        typename Sequence::iterator it = sb;
        size_t delcount = (jj - ii + step - 1) / step;
        while (delcount) {
          it = self->erase(it);
          for (Py_ssize_t c=0; c<(step-1) && it != self->end(); ++c)
            it++;
          delcount--;
        }
      }
    } else {
      typename Sequence::reverse_iterator sb = self->rbegin();
      std::advance(sb,size-ii-1);
      typename Sequence::reverse_iterator it = sb;
      size_t delcount = (ii - jj - step - 1) / -step;
      while (delcount) {
        it = typename Sequence::reverse_iterator(self->erase((++it).base()));
        for (Py_ssize_t c=0; c<(-step-1) && it != self->rend(); ++c)
          it++;
        delcount--;
      }
    }
  }
}


namespace swig {
  template <class Seq, class T = typename Seq::value_type >
  struct IteratorProtocol {
    static void assign(PyObject *obj, Seq *seq) {
      SwigVar_PyObject iter = PyObject_GetIter(obj);
      if (iter) {
        SwigVar_PyObject item = PyIter_Next(iter);
        while (item) {
          seq->insert(seq->end(), swig::as<T>(item));
          item = PyIter_Next(iter);
        }
      }
    }

    static bool check(PyObject *obj) {
      bool ret = false;
      SwigVar_PyObject iter = PyObject_GetIter(obj);
      if (iter) {
        SwigVar_PyObject item = PyIter_Next(iter);
        ret = true;
        while (item) {
          ret = swig::check<T>(item);
          item = ret ? PyIter_Next(iter) : 0;
        }
      }
      return ret;
    }
  };

  template <class Seq, class T = typename Seq::value_type >
  struct traits_asptr_stdseq {
    typedef Seq sequence;
    typedef T value_type;

    static bool is_iterable(PyObject *obj) {
      SwigVar_PyObject iter = PyObject_GetIter(obj);
      PyErr_Clear();
      return iter != 0;
    }

    static int asptr(PyObject *obj, sequence **seq) {
      int ret = SWIG_ERROR;
      if (obj == Py_None || SWIG_Python_GetSwigThis(obj)) {
	sequence *p;
	swig_type_info *descriptor = swig::type_info<sequence>();
	if (descriptor && SWIG_IsOK(::SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0))) {
	  if (seq) *seq = p;
	  return SWIG_OLDOBJ;
	}
      } else if (is_iterable(obj)) {
	try {
	  if (seq) {
	    *seq = new sequence();
            IteratorProtocol<Seq, T>::assign(obj, *seq);
            if (!PyErr_Occurred())
              return SWIG_NEWOBJ;
	  } else {
	    return IteratorProtocol<Seq, T>::check(obj) ? SWIG_OK : SWIG_ERROR;
	  }
	} catch (std::exception& e) {
          if (seq && !PyErr_Occurred())
            PyErr_SetString(PyExc_TypeError, e.what());
	}
        if (seq)
          delete *seq;
	return SWIG_ERROR;
      }
      return ret;
    }
  };

  template <class Seq, class T = typename Seq::value_type >
  struct traits_from_stdseq {
    typedef Seq sequence;
    typedef T value_type;
    typedef typename Seq::size_type size_type;
    typedef typename sequence::const_iterator const_iterator;

    static PyObject *from(const sequence& seq) {
#ifdef SWIG_PYTHON_EXTRA_NATIVE_CONTAINERS
      swig_type_info *desc = swig::type_info<sequence>();
      if (desc && desc->clientdata) {
	return SWIG_InternalNewPointerObj(new sequence(seq), desc, SWIG_POINTER_OWN);
      }
#endif
      size_type size = seq.size();
      if (size <= (size_type)PY_SSIZE_T_MAX) {
	PyObject *obj = PyTuple_New((Py_ssize_t)size);
	Py_ssize_t i = 0;
	for (const_iterator it = seq.begin(); it != seq.end(); ++it, ++i) {
	  PyTuple_SetItem(obj,i,swig::from<value_type>(*it));
	}
	return obj;
      } else {
	PyErr_SetString(PyExc_OverflowError,"sequence size not valid in python");
	return NULL;
      }
    }
  };
}


  namespace swig {
    template <class ValueType>
    struct from_key_oper 
    {
      typedef const ValueType& argument_type;
      typedef  PyObject *result_type;
      result_type operator()(argument_type v) const
      {
	return swig::from(v.first);
      }
    };

    template <class ValueType>
    struct from_value_oper 
    {
      typedef const ValueType& argument_type;
      typedef  PyObject *result_type;
      result_type operator()(argument_type v) const
      {
	return swig::from(v.second);
      }
    };

    template<class OutIterator, class FromOper, class ValueType = typename OutIterator::value_type>
    struct SwigPyMapIterator_T : SwigPyIteratorClosed_T<OutIterator, ValueType, FromOper>
    {
      SwigPyMapIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
	: SwigPyIteratorClosed_T<OutIterator,ValueType,FromOper>(curr, first, last, seq)
      {
      }
    };


    template<class OutIterator,
	     class FromOper = from_key_oper<typename OutIterator::value_type> >
    struct SwigPyMapKeyIterator_T : SwigPyMapIterator_T<OutIterator, FromOper>
    {
      SwigPyMapKeyIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
	: SwigPyMapIterator_T<OutIterator, FromOper>(curr, first, last, seq)
      {
      }
    };

    template<typename OutIter>
    inline SwigPyIterator*
    make_output_key_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0)
    {
      return new SwigPyMapKeyIterator_T<OutIter>(current, begin, end, seq);
    }

    template<class OutIterator,
	     class FromOper = from_value_oper<typename OutIterator::value_type> >
    struct SwigPyMapValueIterator_T : SwigPyMapIterator_T<OutIterator, FromOper>
    {
      SwigPyMapValueIterator_T(OutIterator curr, OutIterator first, OutIterator last, PyObject *seq)
	: SwigPyMapIterator_T<OutIterator, FromOper>(curr, first, last, seq)
      {
      }
    };
    

    template<typename OutIter>
    inline SwigPyIterator*
    make_output_value_iterator(const OutIter& current, const OutIter& begin, const OutIter& end, PyObject *seq = 0)
    {
      return new SwigPyMapValueIterator_T<OutIter>(current, begin, end, seq);
    }
  }


  namespace swig {
    template <class K, class T, class Compare, class Alloc>
    struct traits_asptr<std::map<K,T,Compare,Alloc > >  {
      typedef std::map<K,T,Compare,Alloc > map_type;
      static int asptr(PyObject *obj, map_type **val) {
	int res = SWIG_ERROR;
	SWIG_PYTHON_THREAD_BEGIN_BLOCK;
	if (PyDict_Check(obj)) {
	  SwigVar_PyObject items = PyObject_CallMethod(obj,(char *)"items",NULL);
#if PY_VERSION_HEX >= 0x03000000
          /* In Python 3.x the ".items()" method returns a dict_items object */
          items = PySequence_Fast(items, ".items() didn't return a sequence!");
#endif
	  res = traits_asptr_stdseq<map_type, std::pair<K, T> >::asptr(items, val);
	} else {
	  map_type *p = 0;
	  swig_type_info *descriptor = swig::type_info<map_type>();
	  res = descriptor ? SWIG_ConvertPtr(obj, (void **)&p, descriptor, 0) : SWIG_ERROR;
	  if (SWIG_IsOK(res) && val)  *val = p;
	}
	SWIG_PYTHON_THREAD_END_BLOCK;
	return res;
      }      
    };
      
    template <class K, class T, class Compare, class Alloc >
    struct traits_from<std::map<K,T,Compare,Alloc > >  {
      typedef std::map<K,T,Compare,Alloc > map_type;
      typedef typename map_type::const_iterator const_iterator;
      typedef typename map_type::size_type size_type;

      static PyObject *asdict(const map_type& map) {
	SWIG_PYTHON_THREAD_BEGIN_BLOCK;
	size_type size = map.size();
	Py_ssize_t pysize = (size <= (size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
	if (pysize < 0) {
	  PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	  SWIG_PYTHON_THREAD_END_BLOCK;
	  return NULL;
	}
	PyObject *obj = PyDict_New();
	for (const_iterator i= map.begin(); i!= map.end(); ++i) {
	  swig::SwigVar_PyObject key = swig::from(i->first);
	  swig::SwigVar_PyObject val = swig::from(i->second);
	  PyDict_SetItem(obj, key, val);
	}
	SWIG_PYTHON_THREAD_END_BLOCK;
	return obj;
      }
                
      static PyObject *from(const map_type& map) {
	swig_type_info *desc = swig::type_info<map_type>();
	if (desc && desc->clientdata) {
	  return SWIG_InternalNewPointerObj(new map_type(map), desc, SWIG_POINTER_OWN);
	} else {
	  return asdict(map);
	}
      }
    };
  }


      namespace swig {
	template <>  struct traits<std::map< std::string, std::string, std::less< std::string >, std::allocator< std::pair< std::string const,std::string > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "std::string" "," "std::string" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,std::string > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_string_Sg__iterator(std::map< std::string,std::string > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg____nonzero__(std::map< std::string,std::string > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg____bool__(std::map< std::string,std::string > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< std::string,std::string >::size_type std_map_Sl_std_string_Sc_std_string_Sg____len__(std::map< std::string,std::string > const *self){
      return self->size();
    }

SWIGINTERNINLINE PyObject* 
SWIG_From_unsigned_SS_long  (unsigned long value)
{
  return (value > LONG_MAX) ?
    PyLong_FromUnsignedLong(value) : PyInt_FromLong(static_cast< long >(value));
}


#ifdef SWIG_LONG_LONG_AVAILABLE
SWIGINTERNINLINE PyObject* 
SWIG_From_unsigned_SS_long_SS_long  (unsigned long long value)
{
  return (value > LONG_MAX) ?
    PyLong_FromUnsignedLongLong(value) : PyInt_FromLong(static_cast< long >(value));
}
#endif


SWIGINTERNINLINE PyObject *
SWIG_From_size_t  (size_t value)
{    
#ifdef SWIG_LONG_LONG_AVAILABLE
  if (sizeof(size_t) <= sizeof(unsigned long)) {
#endif
    return SWIG_From_unsigned_SS_long  (static_cast< unsigned long >(value));
#ifdef SWIG_LONG_LONG_AVAILABLE
  } else {
    /* assume sizeof(size_t) <= sizeof(unsigned long long) */
    return SWIG_From_unsigned_SS_long_SS_long  (static_cast< unsigned long long >(value));
  }
#endif
}

SWIGINTERN std::map< std::string,std::string >::mapped_type const &std_map_Sl_std_string_Sc_std_string_Sg____getitem__(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg____delitem__(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg__has_key(std::map< std::string,std::string > const *self,std::map< std::string,std::string >::key_type const &key){
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__keys(std::map< std::string,std::string > *self){
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__values(std::map< std::string,std::string > *self){
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__items(std::map< std::string,std::string > *self){
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_string_Sg____contains__(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_string_Sg__key_iterator(std::map< std::string,std::string > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_string_Sg__value_iterator(std::map< std::string,std::string > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_0(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_1(std::map< std::string,std::string > *self,std::map< std::string,std::string >::key_type const &key,std::map< std::string,std::string >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_string_Sg__asdict(std::map< std::string,std::string > *self){
      return swig::traits_from< std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_1(std::map< std::string,std::string > *self,std::map< std::string,std::string >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_2(std::map< std::string,std::string > *self,std::map< std::string,std::string >::iterator first,std::map< std::string,std::string >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::Driver > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::Driver >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::pair< std::string, std::shared_ptr< sigrok::Driver > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "std::string" "," "std::shared_ptr< sigrok::Driver >" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::map< std::string, std::shared_ptr< sigrok::Driver >, std::less< std::string >, std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "std::string" "," "std::shared_ptr< sigrok::Driver >" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__iterator(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____nonzero__(std::map< std::string,std::shared_ptr< sigrok::Driver > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____bool__(std::map< std::string,std::shared_ptr< sigrok::Driver > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::Driver > >::size_type std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____len__(std::map< std::string,std::shared_ptr< sigrok::Driver > > const *self){
      return self->size();
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type const &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____getitem__(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____delitem__(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__has_key(std::map< std::string,std::shared_ptr< sigrok::Driver > > const *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__keys(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self){
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__values(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self){
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__items(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self){
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____contains__(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__key_iterator(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__value_iterator(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____setitem____SWIG_0(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____setitem____SWIG_1(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &key,std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__asdict(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self){
      return swig::traits_from< std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__erase__SWIG_1(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__erase__SWIG_2(std::map< std::string,std::shared_ptr< sigrok::Driver > > *self,std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator first,std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::InputFormat > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::InputFormat >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::pair< std::string, std::shared_ptr< sigrok::InputFormat > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "std::string" "," "std::shared_ptr< sigrok::InputFormat >" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::map< std::string, std::shared_ptr< sigrok::InputFormat >, std::less< std::string >, std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "std::string" "," "std::shared_ptr< sigrok::InputFormat >" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__iterator(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____nonzero__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____bool__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::size_type std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____len__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *self){
      return self->size();
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type const &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____getitem__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____delitem__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__has_key(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__keys(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self){
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__values(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self){
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__items(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self){
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____contains__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__key_iterator(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__value_iterator(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____setitem____SWIG_0(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____setitem____SWIG_1(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &key,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__asdict(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self){
      return swig::traits_from< std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__erase__SWIG_1(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__erase__SWIG_2(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator first,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::OutputFormat > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::OutputFormat >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::pair< std::string, std::shared_ptr< sigrok::OutputFormat > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "std::string" "," "std::shared_ptr< sigrok::OutputFormat >" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::map< std::string, std::shared_ptr< sigrok::OutputFormat >, std::less< std::string >, std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "std::string" "," "std::shared_ptr< sigrok::OutputFormat >" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__iterator(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____nonzero__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____bool__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::size_type std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____len__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *self){
      return self->size();
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type const &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____getitem__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____delitem__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__has_key(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__keys(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self){
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__values(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self){
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__items(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self){
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____contains__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__key_iterator(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__value_iterator(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____setitem____SWIG_0(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____setitem____SWIG_1(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &key,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__asdict(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self){
      return swig::traits_from< std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__erase__SWIG_1(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__erase__SWIG_2(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *self,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator first,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::HardwareDevice > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::HardwareDevice >"; }
    };
  }


  namespace swig {
    template <class T>
    struct traits_reserve<std::vector<T> > {
      static void reserve(std::vector<T> &seq, typename std::vector<T>::size_type n) {
        seq.reserve(n);
      }
    };

    template <class T>
    struct traits_asptr<std::vector<T> >  {
      static int asptr(PyObject *obj, std::vector<T> **vec) {
	return traits_asptr_stdseq<std::vector<T> >::asptr(obj, vec);
      }
    };
    
    template <class T>
    struct traits_from<std::vector<T> > {
      static PyObject *from(const std::vector<T>& vec) {
	return traits_from_stdseq<std::vector<T> >::from(vec);
      }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< std::shared_ptr< sigrok::HardwareDevice >, std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::shared_ptr< sigrok::HardwareDevice >" "," "std::allocator< std::shared_ptr< sigrok::HardwareDevice > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__iterator(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____nonzero__(std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____bool__(std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____len__(std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____getslice__(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type i,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setslice____SWIG_0(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type i,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >());
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setslice____SWIG_1(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type i,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type j,std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____delslice__(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type i,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____delitem____SWIG_0(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____getitem____SWIG_0(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setitem____SWIG_0(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,SWIGPY_SLICEOBJECT *slice,std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setitem____SWIG_1(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____delitem____SWIG_1(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____getitem____SWIG_1(std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }

namespace swig {
  static PyObject* container_owner_attribute() {
    static PyObject* attr = SWIG_Python_str_FromChar("__swig_container");
    return attr;
  }

  template <typename T>
  struct container_owner {
    // By default, do not add the back-reference (for value types)
    // Specialization below will check the reference for pointer types.
    static bool back_reference(PyObject* /*child*/, PyObject* /*owner*/) {
      return false;
    }
  };

  template <>
  struct container_owner<swig::pointer_category> {  
    /*
     * Call to add a back-reference to the owning object when returning a 
     * reference from a container.  Will only set the reference if child
     * is a SWIG wrapper object that does not own the pointer.
     *
     * returns whether the reference was set or not
     */
    static bool back_reference(PyObject* child, PyObject* owner) {
      SwigPyObject* swigThis = SWIG_Python_GetSwigThis(child);
      if (swigThis && (swigThis->own & SWIG_POINTER_OWN) != SWIG_POINTER_OWN) {
        return PyObject_SetAttr(child, container_owner_attribute(), owner) != -1;
      }
      return false;
    }
  };
}

SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setitem____SWIG_2(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type i,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__pop(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__append(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__erase__SWIG_0(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__erase__SWIG_1(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator first,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__insert__SWIG_0(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator pos,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__insert__SWIG_1(std::vector< std::shared_ptr< sigrok::HardwareDevice > > *self,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator pos,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type n,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &x){ self->insert(pos, n, x); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::Device > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::Device >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< std::shared_ptr< sigrok::Device >, std::allocator< std::shared_ptr< sigrok::Device > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::shared_ptr< sigrok::Device >" "," "std::allocator< std::shared_ptr< sigrok::Device > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__iterator(std::vector< std::shared_ptr< sigrok::Device > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____nonzero__(std::vector< std::shared_ptr< sigrok::Device > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____bool__(std::vector< std::shared_ptr< sigrok::Device > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device > >::size_type std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____len__(std::vector< std::shared_ptr< sigrok::Device > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____getslice__(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::difference_type i,std::vector< std::shared_ptr< sigrok::Device > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setslice____SWIG_0(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::difference_type i,std::vector< std::shared_ptr< sigrok::Device > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >());
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setslice____SWIG_1(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::difference_type i,std::vector< std::shared_ptr< sigrok::Device > >::difference_type j,std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____delslice__(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::difference_type i,std::vector< std::shared_ptr< sigrok::Device > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____delitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____getitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Device > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Device > > *self,SWIGPY_SLICEOBJECT *slice,std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Device > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____delitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Device > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device > >::value_type const &std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____getitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Device > > const *self,std::vector< std::shared_ptr< sigrok::Device > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setitem____SWIG_2(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::difference_type i,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device > >::value_type std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__pop(std::vector< std::shared_ptr< sigrok::Device > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__append(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__erase__SWIG_0(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__erase__SWIG_1(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::iterator first,std::vector< std::shared_ptr< sigrok::Device > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Device > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__insert__SWIG_0(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::iterator pos,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__insert__SWIG_1(std::vector< std::shared_ptr< sigrok::Device > > *self,std::vector< std::shared_ptr< sigrok::Device > >::iterator pos,std::vector< std::shared_ptr< sigrok::Device > >::size_type n,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &x){ self->insert(pos, n, x); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::Channel > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::Channel >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< std::shared_ptr< sigrok::Channel >, std::allocator< std::shared_ptr< sigrok::Channel > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::shared_ptr< sigrok::Channel >" "," "std::allocator< std::shared_ptr< sigrok::Channel > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__iterator(std::vector< std::shared_ptr< sigrok::Channel > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____nonzero__(std::vector< std::shared_ptr< sigrok::Channel > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____bool__(std::vector< std::shared_ptr< sigrok::Channel > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel > >::size_type std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____len__(std::vector< std::shared_ptr< sigrok::Channel > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____getslice__(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type i,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setslice____SWIG_0(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type i,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >());
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setslice____SWIG_1(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type i,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type j,std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____delslice__(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type i,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____delitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____getitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Channel > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Channel > > *self,SWIGPY_SLICEOBJECT *slice,std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Channel > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____delitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Channel > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____getitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Channel > > const *self,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setitem____SWIG_2(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type i,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel > >::value_type std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__pop(std::vector< std::shared_ptr< sigrok::Channel > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__append(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__erase__SWIG_0(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__erase__SWIG_1(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::iterator first,std::vector< std::shared_ptr< sigrok::Channel > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Channel > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__insert__SWIG_0(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::iterator pos,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__insert__SWIG_1(std::vector< std::shared_ptr< sigrok::Channel > > *self,std::vector< std::shared_ptr< sigrok::Channel > >::iterator pos,std::vector< std::shared_ptr< sigrok::Channel > >::size_type n,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &x){ self->insert(pos, n, x); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::ChannelGroup > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::ChannelGroup >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::pair< std::string, std::shared_ptr< sigrok::ChannelGroup > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "std::string" "," "std::shared_ptr< sigrok::ChannelGroup >" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::map< std::string, std::shared_ptr< sigrok::ChannelGroup >, std::less< std::string >, std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "std::string" "," "std::shared_ptr< sigrok::ChannelGroup >" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__iterator(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____nonzero__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____bool__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::size_type std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____len__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *self){
      return self->size();
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type const &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____getitem__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____delitem__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__has_key(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__keys(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self){
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__values(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self){
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__items(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self){
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____contains__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__key_iterator(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__value_iterator(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____setitem____SWIG_0(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____setitem____SWIG_1(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &key,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__asdict(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self){
      return swig::traits_from< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__erase__SWIG_1(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__erase__SWIG_2(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *self,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator first,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <>  struct traits< sigrok::ConfigKey > {
      typedef pointer_category category;
      static const char* type_name() { return"sigrok::ConfigKey"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< sigrok::ConfigKey const*, std::allocator< sigrok::ConfigKey const * > > > {
	  typedef value_category category;
	  static const char* type_name() {
	    return "std::vector<" "sigrok::ConfigKey" " const*," "std::allocator< sigrok::ConfigKey const * >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__iterator(std::vector< sigrok::ConfigKey const * > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____nonzero__(std::vector< sigrok::ConfigKey const * > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____bool__(std::vector< sigrok::ConfigKey const * > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< sigrok::ConfigKey const * >::size_type std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____len__(std::vector< sigrok::ConfigKey const * > const *self){
      return self->size();
    }
SWIGINTERN std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getslice__(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::difference_type i,std::vector< sigrok::ConfigKey const * >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setslice____SWIG_0(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::difference_type i,std::vector< sigrok::ConfigKey const * >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >());
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setslice____SWIG_1(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::difference_type i,std::vector< sigrok::ConfigKey const * >::difference_type j,std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____delslice__(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::difference_type i,std::vector< sigrok::ConfigKey const * >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____delitem____SWIG_0(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getitem____SWIG_0(std::vector< sigrok::ConfigKey const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type id = i;
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setitem____SWIG_0(std::vector< sigrok::ConfigKey const * > *self,SWIGPY_SLICEOBJECT *slice,std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type id = i;
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setitem____SWIG_1(std::vector< sigrok::ConfigKey const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type id = i;
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____delitem____SWIG_1(std::vector< sigrok::ConfigKey const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type id = i;
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< sigrok::ConfigKey const * >::value_type std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getitem____SWIG_1(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setitem____SWIG_2(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::difference_type i,std::vector< sigrok::ConfigKey const * >::value_type x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< sigrok::ConfigKey const * >::value_type std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__pop(std::vector< sigrok::ConfigKey const * > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__append(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::value_type x){
      self->push_back(x);
    }
SWIGINTERN std::vector< sigrok::ConfigKey const * >::iterator std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_0(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< sigrok::ConfigKey const * >::iterator std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_1(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::iterator first,std::vector< sigrok::ConfigKey const * >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< sigrok::ConfigKey const * >::iterator std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__insert__SWIG_0(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::iterator pos,std::vector< sigrok::ConfigKey const * >::value_type x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__insert__SWIG_1(std::vector< sigrok::ConfigKey const * > *self,std::vector< sigrok::ConfigKey const * >::iterator pos,std::vector< sigrok::ConfigKey const * >::size_type n,std::vector< sigrok::ConfigKey const * >::value_type x){ self->insert(pos, n, x); }

  namespace swig {
    template <>  struct traits< sigrok::ConfigKey const * > {
      typedef pointer_category category;
      static const char* type_name() { return"sigrok::ConfigKey const *"; }
    };
  }


  namespace swig {
    template <>  struct traits< Glib::VariantBase > {
      typedef pointer_category category;
      static const char* type_name() { return"Glib::VariantBase"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::pair< sigrok::ConfigKey const *, Glib::VariantBase > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "sigrok::ConfigKey const *" "," "Glib::VariantBase" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::map< sigrok::ConfigKey const *, Glib::VariantBase, std::less< sigrok::ConfigKey const * >, std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "sigrok::ConfigKey const *" "," "Glib::VariantBase" "," "std::less< sigrok::ConfigKey const * >" "," "std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__iterator(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____nonzero__(std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____bool__(std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< sigrok::ConfigKey const *,Glib::VariantBase >::size_type std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____len__(std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *self){
      return self->size();
    }
SWIGINTERN std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type const &std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____getitem__(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &key){
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____delitem__(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &key){
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__has_key(std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &key){
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__keys(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self){
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__values(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self){
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__items(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self){
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____contains__(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__key_iterator(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__value_iterator(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____setitem____SWIG_0(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____setitem____SWIG_1(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &key,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__asdict(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self){
      return swig::traits_from< std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__erase__SWIG_1(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__erase__SWIG_2(std::map< sigrok::ConfigKey const *,Glib::VariantBase > *self,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator first,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <class T>
    struct traits_asptr<std::set<T> >  {
      static int asptr(PyObject *obj, std::set<T> **s) {
	return traits_asptr_stdseq<std::set<T> >::asptr(obj, s);
      }
    };

    template <class T>
    struct traits_from<std::set<T> > {
      static PyObject *from(const std::set<T>& vec) {
	return traits_from_stdseq<std::set<T> >::from(vec);
      }
    };
  }


      namespace swig {
	template <>  struct traits<std::set< sigrok::ConfigKey const *, std::less< sigrok::ConfigKey const * >, std::allocator< sigrok::ConfigKey const * > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::set<" "sigrok::ConfigKey const *" "," "std::less< sigrok::ConfigKey const * >" "," "std::allocator< sigrok::ConfigKey const * >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__iterator(std::set< sigrok::ConfigKey const * > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____nonzero__(std::set< sigrok::ConfigKey const * > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____bool__(std::set< sigrok::ConfigKey const * > const *self){
      return !(self->empty());
    }
SWIGINTERN std::set< sigrok::ConfigKey const * >::size_type std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____len__(std::set< sigrok::ConfigKey const * > const *self){
      return self->size();
    }
SWIGINTERN void std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__append(std::set< sigrok::ConfigKey const * > *self,std::set< sigrok::ConfigKey const * >::value_type x){
       self->insert(x);
     }
SWIGINTERN bool std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____contains__(std::set< sigrok::ConfigKey const * > *self,std::set< sigrok::ConfigKey const * >::value_type x){
       return self->find(x) != self->end();
     }
SWIGINTERN std::set< sigrok::ConfigKey const * >::value_type std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getitem__(std::set< sigrok::ConfigKey const * > const *self,std::set< sigrok::ConfigKey const * >::difference_type i){
       return *(swig::cgetpos(self, i));
     }
SWIGINTERN void std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__add(std::set< sigrok::ConfigKey const * > *self,std::set< sigrok::ConfigKey const * >::value_type x){
       self->insert(x);
     }
SWIGINTERN void std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__discard(std::set< sigrok::ConfigKey const * > *self,std::set< sigrok::ConfigKey const * >::value_type x){
       self->erase(x);
     }
SWIGINTERN void std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_1(std::set< sigrok::ConfigKey const * > *self,std::set< sigrok::ConfigKey const * >::iterator pos){ self->erase(pos); }
SWIGINTERN void std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_2(std::set< sigrok::ConfigKey const * > *self,std::set< sigrok::ConfigKey const * >::iterator first,std::set< sigrok::ConfigKey const * >::iterator last){ self->erase(first, last); }


  namespace swig {
    template <>  struct traits< sigrok::Capability > {
      typedef pointer_category category;
      static const char* type_name() { return"sigrok::Capability"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< sigrok::Capability const*, std::allocator< sigrok::Capability const * > > > {
	  typedef value_category category;
	  static const char* type_name() {
	    return "std::vector<" "sigrok::Capability" " const*," "std::allocator< sigrok::Capability const * >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__iterator(std::vector< sigrok::Capability const * > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____nonzero__(std::vector< sigrok::Capability const * > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____bool__(std::vector< sigrok::Capability const * > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< sigrok::Capability const * >::size_type std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____len__(std::vector< sigrok::Capability const * > const *self){
      return self->size();
    }
SWIGINTERN std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____getslice__(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::difference_type i,std::vector< sigrok::Capability const * >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setslice____SWIG_0(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::difference_type i,std::vector< sigrok::Capability const * >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >());
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setslice____SWIG_1(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::difference_type i,std::vector< sigrok::Capability const * >::difference_type j,std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____delslice__(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::difference_type i,std::vector< sigrok::Capability const * >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____delitem____SWIG_0(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____getitem____SWIG_0(std::vector< sigrok::Capability const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type id = i;
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setitem____SWIG_0(std::vector< sigrok::Capability const * > *self,SWIGPY_SLICEOBJECT *slice,std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type id = i;
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setitem____SWIG_1(std::vector< sigrok::Capability const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type id = i;
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____delitem____SWIG_1(std::vector< sigrok::Capability const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type id = i;
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< sigrok::Capability const * >::value_type std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____getitem____SWIG_1(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setitem____SWIG_2(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::difference_type i,std::vector< sigrok::Capability const * >::value_type x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< sigrok::Capability const * >::value_type std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__pop(std::vector< sigrok::Capability const * > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__append(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::value_type x){
      self->push_back(x);
    }
SWIGINTERN std::vector< sigrok::Capability const * >::iterator std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_0(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< sigrok::Capability const * >::iterator std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_1(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::iterator first,std::vector< sigrok::Capability const * >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< sigrok::Capability const * >::iterator std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__insert__SWIG_0(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::iterator pos,std::vector< sigrok::Capability const * >::value_type x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__insert__SWIG_1(std::vector< sigrok::Capability const * > *self,std::vector< sigrok::Capability const * >::iterator pos,std::vector< sigrok::Capability const * >::size_type n,std::vector< sigrok::Capability const * >::value_type x){ self->insert(pos, n, x); }

  namespace swig {
    template <>  struct traits< sigrok::Capability const * > {
      typedef pointer_category category;
      static const char* type_name() { return"sigrok::Capability const *"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::set< sigrok::Capability const *, std::less< sigrok::Capability const * >, std::allocator< sigrok::Capability const * > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::set<" "sigrok::Capability const *" "," "std::less< sigrok::Capability const * >" "," "std::allocator< sigrok::Capability const * >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__iterator(std::set< sigrok::Capability const * > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____nonzero__(std::set< sigrok::Capability const * > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____bool__(std::set< sigrok::Capability const * > const *self){
      return !(self->empty());
    }
SWIGINTERN std::set< sigrok::Capability const * >::size_type std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____len__(std::set< sigrok::Capability const * > const *self){
      return self->size();
    }
SWIGINTERN void std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__append(std::set< sigrok::Capability const * > *self,std::set< sigrok::Capability const * >::value_type x){
       self->insert(x);
     }
SWIGINTERN bool std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____contains__(std::set< sigrok::Capability const * > *self,std::set< sigrok::Capability const * >::value_type x){
       return self->find(x) != self->end();
     }
SWIGINTERN std::set< sigrok::Capability const * >::value_type std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____getitem__(std::set< sigrok::Capability const * > const *self,std::set< sigrok::Capability const * >::difference_type i){
       return *(swig::cgetpos(self, i));
     }
SWIGINTERN void std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__add(std::set< sigrok::Capability const * > *self,std::set< sigrok::Capability const * >::value_type x){
       self->insert(x);
     }
SWIGINTERN void std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__discard(std::set< sigrok::Capability const * > *self,std::set< sigrok::Capability const * >::value_type x){
       self->erase(x);
     }
SWIGINTERN void std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_1(std::set< sigrok::Capability const * > *self,std::set< sigrok::Capability const * >::iterator pos){ self->erase(pos); }
SWIGINTERN void std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_2(std::set< sigrok::Capability const * > *self,std::set< sigrok::Capability const * >::iterator first,std::set< sigrok::Capability const * >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::Option > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::Option >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< std::shared_ptr< sigrok::Option >, std::allocator< std::shared_ptr< sigrok::Option > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::shared_ptr< sigrok::Option >" "," "std::allocator< std::shared_ptr< sigrok::Option > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__iterator(std::vector< std::shared_ptr< sigrok::Option > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____nonzero__(std::vector< std::shared_ptr< sigrok::Option > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____bool__(std::vector< std::shared_ptr< sigrok::Option > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option > >::size_type std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____len__(std::vector< std::shared_ptr< sigrok::Option > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getslice__(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::difference_type i,std::vector< std::shared_ptr< sigrok::Option > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setslice____SWIG_0(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::difference_type i,std::vector< std::shared_ptr< sigrok::Option > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >());
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setslice____SWIG_1(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::difference_type i,std::vector< std::shared_ptr< sigrok::Option > >::difference_type j,std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delslice__(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::difference_type i,std::vector< std::shared_ptr< sigrok::Option > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Option > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_0(std::vector< std::shared_ptr< sigrok::Option > > *self,SWIGPY_SLICEOBJECT *slice,std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Option > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Option > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option > >::value_type const &std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getitem____SWIG_1(std::vector< std::shared_ptr< sigrok::Option > > const *self,std::vector< std::shared_ptr< sigrok::Option > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_2(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::difference_type i,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option > >::value_type std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__pop(std::vector< std::shared_ptr< sigrok::Option > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__append(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_0(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_1(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::iterator first,std::vector< std::shared_ptr< sigrok::Option > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::Option > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__insert__SWIG_0(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::iterator pos,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__insert__SWIG_1(std::vector< std::shared_ptr< sigrok::Option > > *self,std::vector< std::shared_ptr< sigrok::Option > >::iterator pos,std::vector< std::shared_ptr< sigrok::Option > >::size_type n,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &x){ self->insert(pos, n, x); }

      namespace swig {
	template <>  struct traits<std::pair< std::string, std::shared_ptr< sigrok::Option > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "std::string" "," "std::shared_ptr< sigrok::Option >" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::map< std::string, std::shared_ptr< sigrok::Option >, std::less< std::string >, std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "std::string" "," "std::shared_ptr< sigrok::Option >" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__iterator(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____nonzero__(std::map< std::string,std::shared_ptr< sigrok::Option > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____bool__(std::map< std::string,std::shared_ptr< sigrok::Option > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::Option > >::size_type std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____len__(std::map< std::string,std::shared_ptr< sigrok::Option > > const *self){
      return self->size();
    }
SWIGINTERN std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type const &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getitem__(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delitem__(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__has_key(std::map< std::string,std::shared_ptr< sigrok::Option > > const *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &key){
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__keys(std::map< std::string,std::shared_ptr< sigrok::Option > > *self){
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__values(std::map< std::string,std::shared_ptr< sigrok::Option > > *self){
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__items(std::map< std::string,std::shared_ptr< sigrok::Option > > *self){
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____contains__(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__key_iterator(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__value_iterator(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_0(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_1(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &key,std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__asdict(std::map< std::string,std::shared_ptr< sigrok::Option > > *self){
      return swig::traits_from< std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_1(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_2(std::map< std::string,std::shared_ptr< sigrok::Option > > *self,std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator first,std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator last){ self->erase(first, last); }

      namespace swig {
	template <>  struct traits<std::vector< Glib::VariantBase, std::allocator< Glib::VariantBase > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "Glib::VariantBase" "," "std::allocator< Glib::VariantBase >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_Glib_VariantBase_Sg__iterator(std::vector< Glib::VariantBase > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_Glib_VariantBase_Sg____nonzero__(std::vector< Glib::VariantBase > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_Glib_VariantBase_Sg____bool__(std::vector< Glib::VariantBase > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< Glib::VariantBase >::size_type std_vector_Sl_Glib_VariantBase_Sg____len__(std::vector< Glib::VariantBase > const *self){
      return self->size();
    }
SWIGINTERN std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *std_vector_Sl_Glib_VariantBase_Sg____getslice__(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::difference_type i,std::vector< Glib::VariantBase >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____setslice____SWIG_0(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::difference_type i,std::vector< Glib::VariantBase >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >());
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____setslice____SWIG_1(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::difference_type i,std::vector< Glib::VariantBase >::difference_type j,std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____delslice__(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::difference_type i,std::vector< Glib::VariantBase >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____delitem____SWIG_0(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *std_vector_Sl_Glib_VariantBase_Sg____getitem____SWIG_0(std::vector< Glib::VariantBase > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type id = i;
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____setitem____SWIG_0(std::vector< Glib::VariantBase > *self,SWIGPY_SLICEOBJECT *slice,std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type id = i;
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____setitem____SWIG_1(std::vector< Glib::VariantBase > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type id = i;
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____delitem____SWIG_1(std::vector< Glib::VariantBase > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type id = i;
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< Glib::VariantBase >::value_type const &std_vector_Sl_Glib_VariantBase_Sg____getitem____SWIG_1(std::vector< Glib::VariantBase > const *self,std::vector< Glib::VariantBase >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg____setitem____SWIG_2(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::difference_type i,std::vector< Glib::VariantBase >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< Glib::VariantBase >::value_type std_vector_Sl_Glib_VariantBase_Sg__pop(std::vector< Glib::VariantBase > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg__append(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< Glib::VariantBase >::iterator std_vector_Sl_Glib_VariantBase_Sg__erase__SWIG_0(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< Glib::VariantBase >::iterator std_vector_Sl_Glib_VariantBase_Sg__erase__SWIG_1(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::iterator first,std::vector< Glib::VariantBase >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< Glib::VariantBase >::iterator std_vector_Sl_Glib_VariantBase_Sg__insert__SWIG_0(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::iterator pos,std::vector< Glib::VariantBase >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_Glib_VariantBase_Sg__insert__SWIG_1(std::vector< Glib::VariantBase > *self,std::vector< Glib::VariantBase >::iterator pos,std::vector< Glib::VariantBase >::size_type n,std::vector< Glib::VariantBase >::value_type const &x){ self->insert(pos, n, x); }

      namespace swig {
	template <>  struct traits<std::pair< std::string, Glib::VariantBase > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::pair<" "std::string" "," "Glib::VariantBase" " >";
	  }
	};
      }
    

      namespace swig {
	template <>  struct traits<std::map< std::string, Glib::VariantBase, std::less< std::string >, std::allocator< std::pair< std::string const,Glib::VariantBase > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::map<" "std::string" "," "Glib::VariantBase" "," "std::less< std::string >" "," "std::allocator< std::pair< std::string const,Glib::VariantBase > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__iterator(std::map< std::string,Glib::VariantBase > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____nonzero__(std::map< std::string,Glib::VariantBase > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____bool__(std::map< std::string,Glib::VariantBase > const *self){
      return !(self->empty());
    }
SWIGINTERN std::map< std::string,Glib::VariantBase >::size_type std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____len__(std::map< std::string,Glib::VariantBase > const *self){
      return self->size();
    }
SWIGINTERN std::map< std::string,Glib::VariantBase >::mapped_type const &std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____getitem__(std::map< std::string,Glib::VariantBase > *self,std::map< std::string,Glib::VariantBase >::key_type const &key){
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::const_iterator i = self->find(key);
      if (i != self->end())
	return i->second;
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN void std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____delitem__(std::map< std::string,Glib::VariantBase > *self,std::map< std::string,Glib::VariantBase >::key_type const &key){
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::iterator i = self->find(key);
      if (i != self->end())
	self->erase(i);
      else
	throw std::out_of_range("key not found");
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__has_key(std::map< std::string,Glib::VariantBase > const *self,std::map< std::string,Glib::VariantBase >::key_type const &key){
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::const_iterator i = self->find(key);
      return i != self->end();
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__keys(std::map< std::string,Glib::VariantBase > *self){
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* keyList = PyList_New(pysize);
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(keyList, j, swig::from(i->first));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return keyList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__values(std::map< std::string,Glib::VariantBase > *self){
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }
      PyObject* valList = PyList_New(pysize);
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(valList, j, swig::from(i->second));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return valList;
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__items(std::map< std::string,Glib::VariantBase > *self){
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::size_type size = self->size();
      Py_ssize_t pysize = (size <= (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::size_type)PY_SSIZE_T_MAX) ? (Py_ssize_t)size : -1;
      SWIG_PYTHON_THREAD_BEGIN_BLOCK;
      if (pysize < 0) {
	PyErr_SetString(PyExc_OverflowError, "map size not valid in python");
	SWIG_PYTHON_THREAD_END_BLOCK;
	return NULL;
      }    
      PyObject* itemList = PyList_New(pysize);
      std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >::const_iterator i = self->begin();
      for (Py_ssize_t j = 0; j < pysize; ++i, ++j) {
	PyList_SET_ITEM(itemList, j, swig::from(*i));
      }
      SWIG_PYTHON_THREAD_END_BLOCK;
      return itemList;
    }
SWIGINTERN bool std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____contains__(std::map< std::string,Glib::VariantBase > *self,std::map< std::string,Glib::VariantBase >::key_type const &key){
      return self->find(key) != self->end();
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__key_iterator(std::map< std::string,Glib::VariantBase > *self,PyObject **PYTHON_SELF){
      return swig::make_output_key_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN swig::SwigPyIterator *std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__value_iterator(std::map< std::string,Glib::VariantBase > *self,PyObject **PYTHON_SELF){
      return swig::make_output_value_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____setitem____SWIG_0(std::map< std::string,Glib::VariantBase > *self,std::map< std::string,Glib::VariantBase >::key_type const &key){
      self->erase(key);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____setitem____SWIG_1(std::map< std::string,Glib::VariantBase > *self,std::map< std::string,Glib::VariantBase >::key_type const &key,std::map< std::string,Glib::VariantBase >::mapped_type const &x){
#ifdef __cpp_lib_map_try_emplace
      (*self).insert_or_assign(key, x);
#else
      (*self)[key] = x;
#endif
    }
SWIGINTERN PyObject *std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__asdict(std::map< std::string,Glib::VariantBase > *self){
      return swig::traits_from< std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > > >::asdict(*self);
    }
SWIGINTERN void std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__erase__SWIG_1(std::map< std::string,Glib::VariantBase > *self,std::map< std::string,Glib::VariantBase >::iterator position){ self->erase(position); }
SWIGINTERN void std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__erase__SWIG_2(std::map< std::string,Glib::VariantBase > *self,std::map< std::string,Glib::VariantBase >::iterator first,std::map< std::string,Glib::VariantBase >::iterator last){ self->erase(first, last); }

  namespace swig {
    template <>  struct traits< sigrok::QuantityFlag > {
      typedef pointer_category category;
      static const char* type_name() { return"sigrok::QuantityFlag"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< sigrok::QuantityFlag const*, std::allocator< sigrok::QuantityFlag const * > > > {
	  typedef value_category category;
	  static const char* type_name() {
	    return "std::vector<" "sigrok::QuantityFlag" " const*," "std::allocator< sigrok::QuantityFlag const * >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__iterator(std::vector< sigrok::QuantityFlag const * > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____nonzero__(std::vector< sigrok::QuantityFlag const * > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____bool__(std::vector< sigrok::QuantityFlag const * > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< sigrok::QuantityFlag const * >::size_type std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____len__(std::vector< sigrok::QuantityFlag const * > const *self){
      return self->size();
    }
SWIGINTERN std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____getslice__(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::difference_type i,std::vector< sigrok::QuantityFlag const * >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setslice____SWIG_0(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::difference_type i,std::vector< sigrok::QuantityFlag const * >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >());
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setslice____SWIG_1(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::difference_type i,std::vector< sigrok::QuantityFlag const * >::difference_type j,std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____delslice__(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::difference_type i,std::vector< sigrok::QuantityFlag const * >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____delitem____SWIG_0(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____getitem____SWIG_0(std::vector< sigrok::QuantityFlag const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type id = i;
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setitem____SWIG_0(std::vector< sigrok::QuantityFlag const * > *self,SWIGPY_SLICEOBJECT *slice,std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type id = i;
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setitem____SWIG_1(std::vector< sigrok::QuantityFlag const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type id = i;
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____delitem____SWIG_1(std::vector< sigrok::QuantityFlag const * > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type id = i;
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< sigrok::QuantityFlag const * >::value_type std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____getitem____SWIG_1(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setitem____SWIG_2(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::difference_type i,std::vector< sigrok::QuantityFlag const * >::value_type x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< sigrok::QuantityFlag const * >::value_type std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__pop(std::vector< sigrok::QuantityFlag const * > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__append(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::value_type x){
      self->push_back(x);
    }
SWIGINTERN std::vector< sigrok::QuantityFlag const * >::iterator std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__erase__SWIG_0(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< sigrok::QuantityFlag const * >::iterator std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__erase__SWIG_1(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::iterator first,std::vector< sigrok::QuantityFlag const * >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< sigrok::QuantityFlag const * >::iterator std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__insert__SWIG_0(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::iterator pos,std::vector< sigrok::QuantityFlag const * >::value_type x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__insert__SWIG_1(std::vector< sigrok::QuantityFlag const * > *self,std::vector< sigrok::QuantityFlag const * >::iterator pos,std::vector< sigrok::QuantityFlag const * >::size_type n,std::vector< sigrok::QuantityFlag const * >::value_type x){ self->insert(pos, n, x); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::TriggerStage > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::TriggerStage >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< std::shared_ptr< sigrok::TriggerStage >, std::allocator< std::shared_ptr< sigrok::TriggerStage > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::shared_ptr< sigrok::TriggerStage >" "," "std::allocator< std::shared_ptr< sigrok::TriggerStage > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__iterator(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____nonzero__(std::vector< std::shared_ptr< sigrok::TriggerStage > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____bool__(std::vector< std::shared_ptr< sigrok::TriggerStage > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____len__(std::vector< std::shared_ptr< sigrok::TriggerStage > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____getslice__(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setslice____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >());
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setslice____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type j,std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____delslice__(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____delitem____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____getitem____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setitem____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,SWIGPY_SLICEOBJECT *slice,std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setitem____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____delitem____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____getitem____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerStage > > const *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setitem____SWIG_2(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__pop(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__append(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__erase__SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__erase__SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator first,std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__insert__SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator pos,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__insert__SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerStage > > *self,std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator pos,std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type n,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &x){ self->insert(pos, n, x); }

  namespace swig {
    template <>  struct traits< std::shared_ptr< sigrok::TriggerMatch > > {
      typedef pointer_category category;
      static const char* type_name() { return"std::shared_ptr< sigrok::TriggerMatch >"; }
    };
  }


      namespace swig {
	template <>  struct traits<std::vector< std::shared_ptr< sigrok::TriggerMatch >, std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > > {
	  typedef pointer_category category;
	  static const char* type_name() {
	    return "std::vector<" "std::shared_ptr< sigrok::TriggerMatch >" "," "std::allocator< std::shared_ptr< sigrok::TriggerMatch > >" " >";
	  }
	};
      }
    
SWIGINTERN swig::SwigPyIterator *std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__iterator(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,PyObject **PYTHON_SELF){
      return swig::make_output_iterator(self->begin(), self->begin(), self->end(), *PYTHON_SELF);
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____nonzero__(std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *self){
      return !(self->empty());
    }
SWIGINTERN bool std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____bool__(std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *self){
      return !(self->empty());
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____len__(std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *self){
      return self->size();
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____getslice__(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type j){
      return swig::getslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setslice____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type j){
      swig::setslice(self, i, j, 1, std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >());
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setslice____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type j,std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &v){
      swig::setslice(self, i, j, 1, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____delslice__(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type j){
      swig::delslice(self, i, j, 1);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____delitem____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type i){
      swig::erase(self, swig::getpos(self, i));
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____getitem____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return NULL;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type jd = j;
      return swig::getslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setitem____SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,SWIGPY_SLICEOBJECT *slice,std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &v){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type jd = j;
      swig::setslice(self, id, jd, step, v);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setitem____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____delitem____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,SWIGPY_SLICEOBJECT *slice){
      Py_ssize_t i, j, step;
      if( !PySlice_Check(slice) ) {
        SWIG_Error(SWIG_TypeError, "Slice object expected.");
        return;
      }
      PySlice_GetIndices(slice, (Py_ssize_t)self->size(), &i, &j, &step);
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type id = i;
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::difference_type jd = j;
      swig::delslice(self, id, jd, step);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____getitem____SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type i){
      return *(swig::cgetpos(self, i));
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setitem____SWIG_2(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type i,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &x){
      *(swig::getpos(self,i)) = x;
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__pop(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self){
      if (self->size() == 0)
	throw std::out_of_range("pop from empty container");
      std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >::value_type x = self->back();
      self->pop_back();
      return x;
    }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__append(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &x){
      self->push_back(x);
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__erase__SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator pos){ return self->erase(pos); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__erase__SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator first,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator last){ return self->erase(first, last); }
SWIGINTERN std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__insert__SWIG_0(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator pos,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &x){ return self->insert(pos, x); }
SWIGINTERN void std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__insert__SWIG_1(std::vector< std::shared_ptr< sigrok::TriggerMatch > > *self,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator pos,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type n,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &x){ self->insert(pos, n, x); }


#include "libsigrokcxx/libsigrokcxx.hpp"

/* Convert from a Python dict to a std::map<std::string, std::string> */
std::map<std::string, std::string> dict_to_map_string(PyObject *dict)
{
    if (!PyDict_Check(dict))
        throw sigrok::Error(SR_ERR_ARG);

    std::map<std::string, std::string> output;

    PyObject *py_key, *py_value;
    Py_ssize_t pos = 0;

    while (PyDict_Next(dict, &pos, &py_key, &py_value)) {
        if (!string_check(py_key))
            throw sigrok::Error(SR_ERR_ARG);
        if (!string_check(py_value))
            throw sigrok::Error(SR_ERR_ARG);
        auto key = string_from_python(py_key);
        auto value = string_from_python(py_value);
        output[key] = value;
    }

    return output;
}

/* Convert from a Python type to Glib::Variant, according to config key data type. */
Glib::VariantBase python_to_variant_by_key(PyObject *input, const sigrok::ConfigKey *key)
{
    enum sr_datatype type = (enum sr_datatype) key->data_type()->id();

    if (type == SR_T_UINT64 && PyInt_Check(input))
        return Glib::Variant<guint64>::create(PyInt_AsLong(input));
    if (type == SR_T_UINT64 && PyLong_Check(input))
        return Glib::Variant<guint64>::create(PyLong_AsLong(input));
    else if (type == SR_T_STRING && string_check(input))
        return Glib::Variant<Glib::ustring>::create(string_from_python(input));
    else if (type == SR_T_BOOL && PyBool_Check(input))
        return Glib::Variant<bool>::create(input == Py_True);
    else if (type == SR_T_FLOAT && PyFloat_Check(input))
        return Glib::Variant<double>::create(PyFloat_AsDouble(input));
    else if (type == SR_T_INT32 && PyInt_Check(input))
        return Glib::Variant<gint32>::create(PyInt_AsLong(input));
    else
        throw sigrok::Error(SR_ERR_ARG);
}

/* Convert from a Python type to Glib::Variant, according to Option data type. */
Glib::VariantBase python_to_variant_by_option(PyObject *input,
    std::shared_ptr<sigrok::Option> option)
{
    GVariantType *type = option->default_value().get_type().gobj();

    if (type == G_VARIANT_TYPE_UINT64 && PyInt_Check(input))
        return Glib::Variant<guint64>::create(PyInt_AsLong(input));
    if (type == G_VARIANT_TYPE_UINT64 && PyLong_Check(input))
        return Glib::Variant<guint64>::create(PyLong_AsLong(input));
    else if (type == G_VARIANT_TYPE_STRING && string_check(input))
        return Glib::Variant<Glib::ustring>::create(string_from_python(input));
    else if (type == G_VARIANT_TYPE_BOOLEAN && PyBool_Check(input))
        return Glib::Variant<bool>::create(input == Py_True);
    else if (type == G_VARIANT_TYPE_DOUBLE && PyFloat_Check(input))
        return Glib::Variant<double>::create(PyFloat_AsDouble(input));
    else if (type == G_VARIANT_TYPE_INT32 && PyInt_Check(input))
        return Glib::Variant<gint32>::create(PyInt_AsLong(input));
    else
        throw sigrok::Error(SR_ERR_ARG);
}

/* Convert from a Python dict to a std::map<std::string, std::string> */
std::map<std::string, Glib::VariantBase> dict_to_map_options(PyObject *dict,
    std::map<std::string, std::shared_ptr<sigrok::Option> > options)
{
    if (!PyDict_Check(dict))
        throw sigrok::Error(SR_ERR_ARG);

    std::map<std::string, Glib::VariantBase> output;

    PyObject *py_key, *py_value;
    Py_ssize_t pos = 0;

    while (PyDict_Next(dict, &pos, &py_key, &py_value)) {
        if (!string_check(py_key))
            throw sigrok::Error(SR_ERR_ARG);
        auto key = string_from_python(py_key);
        auto value = python_to_variant_by_option(py_value, options[key]);
        output[key] = value;
    }

    return output;
}




static int swig_exception_code(int sigrok_exception_code) {
    switch (sigrok_exception_code) {
        case SR_ERR_MALLOC:
            return SWIG_MemoryError;
        case SR_ERR_ARG:
            return SWIG_ValueError;
        default:
            return SWIG_RuntimeError;
    }
}



typedef std::map<std::string, std::shared_ptr<sigrok::Driver> >
    map_string_Driver;
typedef std::map<std::string, std::shared_ptr<sigrok::InputFormat> >
    map_string_InputFormat;
typedef std::map<std::string, std::shared_ptr<sigrok::OutputFormat> >
    map_string_OutputFormat;
typedef std::map<std::string, std::shared_ptr<sigrok::ChannelGroup> >
    map_string_ChannelGroup;
typedef std::map<std::string, std::shared_ptr<sigrok::Option> >
    map_string_Option;
typedef std::map<std::string, Glib::VariantBase>
    map_string_Variant;
typedef std::map<const sigrok::ConfigKey *, Glib::VariantBase>
    map_ConfigKey_Variant;


#define sigrok_Context_package_version_get(self_) *new std::string(self_->package_version())
  

#define sigrok_Context_lib_version_get(self_) *new std::string(self_->lib_version())
  

    template < class C > inline const sigrok::LogLevel * sigrok_Context_log_level_get(const C* self_) {
      return self_->log_level();
    }
    template < class C > inline const sigrok::LogLevel * sigrok_Context_log_level_get(C* self_) {
      return self_->log_level();
    }
    template < class C > inline void sigrok_Context_log_level_set(C* self_, const sigrok::LogLevel * val_) {
      self_->set_log_level(val_);
    }
  

#define sigrok_Driver_name_get(self_) *new std::string(self_->name())
  

#define sigrok_Driver_long_name_get(self_) *new std::string(self_->long_name())
  

#define sigrok_InputFormat_name_get(self_) *new std::string(self_->name())
  

#define sigrok_InputFormat_description_get(self_) *new std::string(self_->description())
  

#define sigrok_Input_device_get(self_) *new std::shared_ptr<sigrok::InputDevice>(self_->device())
  

#define sigrok_Option_id_get(self_) *new std::string(self_->id())
  

#define sigrok_Option_name_get(self_) *new std::string(self_->name())
  

#define sigrok_Option_description_get(self_) *new std::string(self_->description())
  

#define sigrok_OutputFormat_name_get(self_) *new std::string(self_->name())
  

#define sigrok_OutputFormat_description_get(self_) *new std::string(self_->description())
  

#define sigrok_Device_vendor_get(self_) *new std::string(self_->vendor())
  

#define sigrok_Device_model_get(self_) *new std::string(self_->model())
  

#define sigrok_Device_version_get(self_) *new std::string(self_->version())
  

#define sigrok_HardwareDevice_driver_get(self_) *new std::shared_ptr<sigrok::Driver>(self_->driver())
  

#define sigrok_Channel_name_get(self_) *new std::string(self_->name())
  

#define sigrok_Channel_name_set(self_, val_) self_->set_name(val_)
    

    template < class C > inline bool sigrok_Channel_enabled_get(const C* self_) {
      return self_->enabled();
    }
    template < class C > inline bool sigrok_Channel_enabled_get(C* self_) {
      return self_->enabled();
    }
    template < class C > inline void sigrok_Channel_enabled_set(C* self_, bool val_) {
      self_->set_enabled(val_);
    }
  

    template < class C > inline const sigrok::ChannelType * sigrok_Channel_type_get(const C* self_) {
      return self_->type();
    }
    template < class C > inline const sigrok::ChannelType * sigrok_Channel_type_get(C* self_) {
      return self_->type();
    }
  

    template < class C > inline unsigned int sigrok_Channel_index_get(const C* self_) {
      return self_->index();
    }
    template < class C > inline unsigned int sigrok_Channel_index_get(C* self_) {
      return self_->index();
    }
  

#define sigrok_ChannelGroup_name_get(self_) *new std::string(self_->name())
  

#define sigrok_Trigger_name_get(self_) *new std::string(self_->name())
  

    template < class C > inline int sigrok_TriggerStage_number_get(const C* self_) {
      return self_->number();
    }
    template < class C > inline int sigrok_TriggerStage_number_get(C* self_) {
      return self_->number();
    }
  

#define sigrok_TriggerMatch_channel_get(self_) *new std::shared_ptr<sigrok::Channel>(self_->channel())
  

    template < class C > inline const sigrok::TriggerMatchType * sigrok_TriggerMatch_type_get(const C* self_) {
      return self_->type();
    }
    template < class C > inline const sigrok::TriggerMatchType * sigrok_TriggerMatch_type_get(C* self_) {
      return self_->type();
    }
  

    template < class C > inline float sigrok_TriggerMatch_value_get(const C* self_) {
      return self_->value();
    }
    template < class C > inline float sigrok_TriggerMatch_value_get(C* self_) {
      return self_->value();
    }
  

#define sigrok_Session_trigger_get(self_) *new std::shared_ptr<sigrok::Trigger>(self_->trigger())
  

#define sigrok_Session_trigger_set(self_, val_) self_->set_trigger(val_)
    

#define sigrok_Session_filename_get(self_) *new std::string(self_->filename())
  

    template < class C > inline const sigrok::PacketType * sigrok_Packet_type_get(const C* self_) {
      return self_->type();
    }
    template < class C > inline const sigrok::PacketType * sigrok_Packet_type_get(C* self_) {
      return self_->type();
    }
  

    template < class C > inline int sigrok_Analog_num_samples_get(const C* self_) {
      return self_->num_samples();
    }
    template < class C > inline int sigrok_Analog_num_samples_get(C* self_) {
      return self_->num_samples();
    }
  

    template < class C > inline const sigrok::Quantity * sigrok_Analog_mq_get(const C* self_) {
      return self_->mq();
    }
    template < class C > inline const sigrok::Quantity * sigrok_Analog_mq_get(C* self_) {
      return self_->mq();
    }
  

    template < class C > inline const sigrok::Unit * sigrok_Analog_unit_get(const C* self_) {
      return self_->unit();
    }
    template < class C > inline const sigrok::Unit * sigrok_Analog_unit_get(C* self_) {
      return self_->unit();
    }
  

SWIGINTERN int
SWIG_AsVal_int (PyObject * obj, int *val)
{
  long v;
  int res = SWIG_AsVal_long (obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v < INT_MIN || v > INT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = static_cast< int >(v);
    }
  }  
  return res;
}


SWIGINTERNINLINE PyObject * 
SWIG_FromCharPtr(const char *cptr)
{ 
  return SWIG_FromCharPtrAndSize(cptr, (cptr ? strlen(cptr) : 0));
}


SWIGINTERN int
SWIG_AsVal_unsigned_SS_int (PyObject * obj, unsigned int *val)
{
  unsigned long v;
  int res = SWIG_AsVal_unsigned_SS_long (obj, &v);
  if (SWIG_IsOK(res)) {
    if ((v > UINT_MAX)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = static_cast< unsigned int >(v);
    }
  }  
  return res;
}

SWIGINTERN std::shared_ptr< sigrok::Packet > sigrok_Context__create_logic_packet_buf(sigrok::Context *self,PyObject *buf,unsigned int unit_size){
        Py_buffer view;
        PyObject_GetBuffer(buf, &view, PyBUF_SIMPLE);
        return self->create_logic_packet(view.buf, view.len, unit_size);
    }
SWIGINTERN void sigrok_Configurable_config_set__SWIG_1(sigrok::Configurable *self,sigrok::ConfigKey const *key,PyObject *input){
        self->config_set(key, python_to_variant_by_key(input, key));
    }
SWIGINTERN std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > sigrok_Driver__scan_kwargs(sigrok::Driver *self,PyObject *dict){
        if (!PyDict_Check(dict))
            throw sigrok::Error(SR_ERR_ARG);

        PyObject *py_key, *py_value;
        Py_ssize_t pos = 0;
        std::map<const sigrok::ConfigKey *, Glib::VariantBase> options;

        while (PyDict_Next(dict, &pos, &py_key, &py_value))
        {
            if (!string_check(py_key))
                throw sigrok::Error(SR_ERR_ARG);
            auto key = sigrok::ConfigKey::get_by_identifier(string_from_python(py_key));
            auto value = python_to_variant_by_key(py_value, key);
            options[key] = value;
        }

        return self->scan(options);
    }

SWIGINTERN int
SWIG_AsVal_bool (PyObject *obj, bool *val)
{
  int r;
  if (!PyBool_Check(obj))
    return SWIG_ERROR;
  r = PyObject_IsTrue(obj);
  if (r == -1)
    return SWIG_ERROR;
  if (val) *val = r ? true : false;
  return SWIG_OK;
}


SWIGINTERNINLINE PyObject*
  SWIG_From_unsigned_SS_int  (unsigned int value)
{
  return PyInt_FromSize_t((size_t) value);
}


/* Getting isfinite working pre C99 across multiple platforms is non-trivial. Users can provide SWIG_isfinite on older platforms. */
#ifndef SWIG_isfinite
/* isfinite() is a macro for C99 */
# if defined(isfinite)
#  define SWIG_isfinite(X) (isfinite(X))
# elif defined(__cplusplus) && __cplusplus >= 201103L
/* Use a template so that this works whether isfinite() is std::isfinite() or
 * in the global namespace.  The reality seems to vary between compiler
 * versions.
 *
 * Make sure namespace std exists to avoid compiler warnings.
 *
 * extern "C++" is required as this fragment can end up inside an extern "C" { } block
 */
namespace std { }
extern "C++" template<typename T>
inline int SWIG_isfinite_func(T x) {
  using namespace std;
  return isfinite(x);
}
#  define SWIG_isfinite(X) (SWIG_isfinite_func(X))
# elif defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 2))
#  define SWIG_isfinite(X) (__builtin_isfinite(X))
# elif defined(_MSC_VER)
#  define SWIG_isfinite(X) (_finite(X))
# elif defined(__sun) && defined(__SVR4)
#  include <ieeefp.h>
#  define SWIG_isfinite(X) (finite(X))
# endif
#endif


/* Accept infinite as a valid float value unless we are unable to check if a value is finite */
#ifdef SWIG_isfinite
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX) && SWIG_isfinite(X))
#else
# define SWIG_Float_Overflow_Check(X) ((X < -FLT_MAX || X > FLT_MAX))
#endif


SWIGINTERN int
SWIG_AsVal_float (PyObject * obj, float *val)
{
  double v;
  int res = SWIG_AsVal_double (obj, &v);
  if (SWIG_IsOK(res)) {
    if (SWIG_Float_Overflow_Check(v)) {
      return SWIG_OverflowError;
    } else {
      if (val) *val = static_cast< float >(v);
    }
  }  
  return res;
}


  #define SWIG_From_double   PyFloat_FromDouble 


SWIGINTERNINLINE PyObject *
SWIG_From_float  (float value)
{    
  return SWIG_From_double  (value);
}

SWIGINTERN std::shared_ptr< sigrok::Header > sigrok_Packet__payload_header(sigrok::Packet *self){
        return dynamic_pointer_cast<sigrok::Header>(self->payload());
    }
SWIGINTERN std::shared_ptr< sigrok::Meta > sigrok_Packet__payload_meta(sigrok::Packet *self){
        return dynamic_pointer_cast<sigrok::Meta>(self->payload());
    }
SWIGINTERN std::shared_ptr< sigrok::Analog > sigrok_Packet__payload_analog(sigrok::Packet *self){
        return dynamic_pointer_cast<sigrok::Analog>(self->payload());
    }
SWIGINTERN std::shared_ptr< sigrok::Logic > sigrok_Packet__payload_logic(sigrok::Packet *self){
        return dynamic_pointer_cast<sigrok::Logic>(self->payload());
    }
SWIGINTERN PyObject *sigrok_Logic__data(sigrok::Logic *self){
        npy_intp dims[2];
        dims[0] = self->data_length() / self->unit_size();
        dims[1] = self->unit_size();
        int typenum = NPY_UINT8;
        void *data = self->data_pointer();
        return PyArray_SimpleNewFromData(2, dims, typenum, data);
    }
SWIGINTERN PyObject *sigrok_Analog__data(sigrok::Analog *self){
        int nd = 2;
        npy_intp dims[2];
        dims[0] = self->channels().size();
        dims[1] = self->num_samples();
        int typenum = NPY_FLOAT;
        void *data = self->data_pointer();
        return PyArray_SimpleNewFromData(nd, dims, typenum, data);
    }
SWIGINTERN std::shared_ptr< sigrok::Input > sigrok_InputFormat__create_input_kwargs(sigrok::InputFormat *self,PyObject *dict){
        return self->create_input(
            dict_to_map_options(dict, self->options()));
    }
SWIGINTERN std::shared_ptr< sigrok::Output > sigrok_OutputFormat__create_output_kwargs(sigrok::OutputFormat *self,std::shared_ptr< sigrok::Device > device,PyObject *dict){
        return self->create_output(device,
            dict_to_map_options(dict, self->options()));
    }
#ifdef __cplusplus
extern "C" {
#endif
SWIGINTERN PyObject *_wrap_delete_SwigPyIterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SwigPyIterator" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    delete arg1;
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_value(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_value" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)((swig::SwigPyIterator const *)arg1)->value();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_incr" "', argument " "2"" of type '" "size_t""'");
  } 
  arg2 = static_cast< size_t >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)(arg1)->incr(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_incr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_incr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)(arg1)->incr();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_incr(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_incr", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 1) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_SwigPyIterator_incr__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_SwigPyIterator_incr__SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SwigPyIterator_incr'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    swig::SwigPyIterator::incr(size_t)\n"
    "    swig::SwigPyIterator::incr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  size_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_decr" "', argument " "2"" of type '" "size_t""'");
  } 
  arg2 = static_cast< size_t >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)(arg1)->decr(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_decr__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_decr" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)(arg1)->decr();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_decr(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator_decr", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 1) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_SwigPyIterator_decr__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_SwigPyIterator_decr__SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'SwigPyIterator_decr'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    swig::SwigPyIterator::decr(size_t)\n"
    "    swig::SwigPyIterator::decr()\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_distance(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  ptrdiff_t result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator_distance", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_distance" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "SwigPyIterator_distance" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = ((swig::SwigPyIterator const *)arg1)->distance((swig::SwigPyIterator const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::invalid_argument &_e) {
    SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
  }
  resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_equal(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator_equal", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_equal" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "SwigPyIterator_equal" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (bool)((swig::SwigPyIterator const *)arg1)->equal((swig::SwigPyIterator const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::invalid_argument &_e) {
    SWIG_Python_Raise(SWIG_NewPointerObj((new std::invalid_argument(static_cast< const std::invalid_argument& >(_e))),SWIGTYPE_p_std__invalid_argument,SWIG_POINTER_OWN), "std::invalid_argument", SWIGTYPE_p_std__invalid_argument); SWIG_fail;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_copy(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_copy" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->copy();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_next(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_next" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)(arg1)->next();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___next__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___next__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)(arg1)->__next__();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_previous(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_previous" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)(arg1)->previous();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator_advance(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator_advance", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator_advance" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator_advance" "', argument " "2"" of type '" "ptrdiff_t""'");
  } 
  arg2 = static_cast< ptrdiff_t >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)(arg1)->advance(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, 0);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___eq__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator___eq__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___eq__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "SwigPyIterator___eq__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((swig::SwigPyIterator const *)arg1)->operator ==((swig::SwigPyIterator const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) {
    return NULL;
  }
  PyErr_Clear();
  SWIG_Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___ne__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator___ne__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___ne__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "SwigPyIterator___ne__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((swig::SwigPyIterator const *)arg1)->operator !=((swig::SwigPyIterator const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) {
    return NULL;
  }
  PyErr_Clear();
  SWIG_Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___iadd__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator___iadd__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___iadd__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___iadd__" "', argument " "2"" of type '" "ptrdiff_t""'");
  } 
  arg2 = static_cast< ptrdiff_t >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *) &(arg1)->operator +=(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (PyErr_Occurred()) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___isub__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator___isub__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___isub__" "', argument " "1"" of type '" "swig::SwigPyIterator *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___isub__" "', argument " "2"" of type '" "ptrdiff_t""'");
  } 
  arg2 = static_cast< ptrdiff_t >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *) &(arg1)->operator -=(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (PyErr_Occurred()) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___add__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "SwigPyIterator___add__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___add__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___add__" "', argument " "2"" of type '" "ptrdiff_t""'");
  } 
  arg2 = static_cast< ptrdiff_t >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator +(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) {
    return NULL;
  }
  PyErr_Clear();
  SWIG_Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  ptrdiff_t arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  swig::SwigPyIterator *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "ptrdiff_t""'");
  } 
  arg2 = static_cast< ptrdiff_t >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)((swig::SwigPyIterator const *)arg1)->operator -(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) {
    return NULL;
  }
  PyErr_Clear();
  SWIG_Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___sub____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  swig::SwigPyIterator *arg1 = 0 ;
  swig::SwigPyIterator *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  ptrdiff_t result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_swig__SwigPyIterator, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "SwigPyIterator___sub__" "', argument " "1"" of type '" "swig::SwigPyIterator const *""'"); 
  }
  arg1 = reinterpret_cast< swig::SwigPyIterator * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_swig__SwigPyIterator,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "SwigPyIterator___sub__" "', argument " "2"" of type '" "swig::SwigPyIterator const &""'"); 
  }
  arg2 = reinterpret_cast< swig::SwigPyIterator * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((swig::SwigPyIterator const *)arg1)->operator -((swig::SwigPyIterator const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_ptrdiff_t(static_cast< ptrdiff_t >(result));
  return resultobj;
fail:
  if (PyErr_Occurred() && !PyErr_ExceptionMatches(PyExc_TypeError)) {
    return NULL;
  }
  PyErr_Clear();
  SWIG_Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *_wrap_SwigPyIterator___sub__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "SwigPyIterator___sub__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_SwigPyIterator___sub____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_swig__SwigPyIterator, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_SwigPyIterator___sub____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Py_INCREF(Py_NotImplemented);
  return Py_NotImplemented;
}


SWIGINTERN PyObject *SwigPyIterator_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_swig__SwigPyIterator, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_new_StringMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< std::string,std::string > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_std__string_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StringMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_StringMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::string > *)new std::map< std::string,std::string >((std::less< std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_iterator" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_string_Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___nonzero__" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_string_Sg____nonzero__((std::map< std::string,std::string > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___bool__" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_string_Sg____bool__((std::map< std::string,std::string > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::string >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___len__" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_std_string_Sc_std_string_Sg____len__((std::map< std::string,std::string > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::string >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___getitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< std::string,std::string >::mapped_type *) &std_map_Sl_std_string_Sc_std_string_Sg____getitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___delitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_string_Sg____delitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_has_key" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_string_Sg__has_key((std::map< std::string,std::string > const *)arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_keys" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_values" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_items" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___contains__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_string_Sg____contains__(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_key_iterator" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_string_Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_value_iterator" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_string_Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  std::map< std::string,std::string >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    res3 = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "StringMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::string >::mapped_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::string >::mapped_type const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_string_Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(std::string const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "StringMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_StringMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_AsPtr_std_string(argv[2], (std::string**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_StringMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::string >::__setitem__(std::map< std::string,std::string >::key_type const &)\n"
    "    std::map< std::string,std::string >::__setitem__(std::map< std::string,std::string >::key_type const &,std::map< std::string,std::string >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StringMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_asdict" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_string_Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StringMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::string > *)new std::map< std::string,std::string >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StringMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< std::string,std::string > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *ptr = (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_StringMap" "', argument " "1"" of type '" "std::map< std::string,std::string > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_StringMap" "', argument " "1"" of type '" "std::map< std::string,std::string > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::string > *)new std::map< std::string,std::string >((std::map< std::string,std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__string_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_StringMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_StringMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_StringMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_StringMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_StringMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_StringMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::string >::map(std::less< std::string > const &)\n"
    "    std::map< std::string,std::string >::map()\n"
    "    std::map< std::string,std::string >::map(std::map< std::string,std::string > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StringMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_empty" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< std::string,std::string > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::string >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_size" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::string > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_swap" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_std__string_std__string_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::string > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::string > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< std::string,std::string > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::string >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_begin" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::string >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_end" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::string >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_rbegin" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::string >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_rend" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_clear" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< std::string const,std::string > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_get_allocator" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::string > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< std::string,std::string >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__string_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  std::map< std::string,std::string >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< std::string,std::string >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::string >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_count" "', argument " "1"" of type '" "std::map< std::string,std::string > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap_count" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap_count" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::string > const *)arg1)->count((std::map< std::string,std::string >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::iterator arg2 ;
  std::map< std::string,std::string >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::string >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::string >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "StringMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::string >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_string_Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "StringMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_StringMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_StringMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::string >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_StringMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'StringMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::string >::erase(std::map< std::string,std::string >::key_type const &)\n"
    "    std::map< std::string,std::string >::erase(std::map< std::string,std::string >::iterator)\n"
    "    std::map< std::string,std::string >::erase(std::map< std::string,std::string >::iterator,std::map< std::string,std::string >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_StringMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::string >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_find" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap_find" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap_find" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< std::string,std::string >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::string >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_lower_bound" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< std::string,std::string >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_StringMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  std::map< std::string,std::string >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::string >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "StringMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "StringMap_upper_bound" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "StringMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "StringMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::string >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< std::string,std::string >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::string >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_StringMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__string_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_StringMap" "', argument " "1"" of type '" "std::map< std::string,std::string > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::string > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *StringMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_std__string_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *StringMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_DriverMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_std__string_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DriverMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_DriverMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::Driver > > *)new std::map< std::string,std::shared_ptr< sigrok::Driver > >((std::less< std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___nonzero__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____nonzero__((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___bool__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____bool__((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___len__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____len__((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___getitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type *) &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____getitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, 0 |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___delitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____delitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_has_key" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__has_key((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_keys" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_values" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_items" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___contains__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____contains__(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_key_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_value_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DriverMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(std::shared_ptr< sigrok::Driver > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DriverMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DriverMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DriverMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DriverMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &,std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DriverMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_asdict" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DriverMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::Driver > > *)new std::map< std::string,std::shared_ptr< sigrok::Driver > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DriverMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > *ptr = (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DriverMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_DriverMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::Driver > > *)new std::map< std::string,std::shared_ptr< sigrok::Driver > >((std::map< std::string,std::shared_ptr< sigrok::Driver > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DriverMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_DriverMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_DriverMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DriverMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DriverMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DriverMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::map(std::less< std::string > const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::map()\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::map(std::map< std::string,std::shared_ptr< sigrok::Driver > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DriverMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_empty" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_size" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_swap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_begin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_end" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_rbegin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Driver > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_rend" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Driver > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_clear" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_get_allocator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< std::string,std::shared_ptr< sigrok::Driver > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_count" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::Driver > > const *)arg1)->count((std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DriverMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DriverMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator arg2 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DriverMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DriverMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DriverMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DriverMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Driver_Sg__Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DriverMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_DriverMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_DriverMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_DriverMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DriverMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::erase(std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::erase(std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Driver > >::erase(std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator,std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DriverMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_find" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_lower_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DriverMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DriverMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DriverMap_upper_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DriverMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DriverMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< std::string,std::shared_ptr< sigrok::Driver > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Driver > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DriverMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Driver > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DriverMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Driver > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Driver > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DriverMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *DriverMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_InputFormatMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_std__string_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InputFormatMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_InputFormatMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *)new std::map< std::string,std::shared_ptr< sigrok::InputFormat > >((std::less< std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___nonzero__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____nonzero__((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___bool__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____bool__((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___len__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____len__((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___getitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type *) &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____getitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, 0 |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___delitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____delitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_has_key" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__has_key((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_keys" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_values" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_items" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___contains__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____contains__(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_key_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_value_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "InputFormatMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(std::shared_ptr< sigrok::InputFormat > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "InputFormatMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_InputFormatMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_InputFormatMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'InputFormatMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_asdict" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InputFormatMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *)new std::map< std::string,std::shared_ptr< sigrok::InputFormat > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InputFormatMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > *ptr = (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_InputFormatMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_InputFormatMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *)new std::map< std::string,std::shared_ptr< sigrok::InputFormat > >((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_InputFormatMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_InputFormatMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_InputFormatMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_InputFormatMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_InputFormatMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_InputFormatMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::map(std::less< std::string > const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::map()\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::map(std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_empty" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_size" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_swap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_begin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_end" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_rbegin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_rend" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_clear" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_get_allocator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_count" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::InputFormat > > const *)arg1)->count((std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator arg2 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InputFormatMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "InputFormatMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_InputFormat_Sg__Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "InputFormatMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_InputFormatMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_InputFormatMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_InputFormatMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'InputFormatMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::erase(std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::erase(std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::erase(std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator,std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_find" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_lower_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormatMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormatMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormatMap_upper_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "InputFormatMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "InputFormatMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InputFormatMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InputFormatMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InputFormatMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *InputFormatMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_OutputFormatMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_std__string_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OutputFormatMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_OutputFormatMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *)new std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >((std::less< std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___nonzero__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____nonzero__((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___bool__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____bool__((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___len__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____len__((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___getitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type *) &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____getitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___delitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____delitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_has_key" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__has_key((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_keys" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_values" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_items" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___contains__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____contains__(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_key_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_value_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OutputFormatMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(std::shared_ptr< sigrok::OutputFormat > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OutputFormatMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_OutputFormatMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_OutputFormatMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OutputFormatMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_asdict" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OutputFormatMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *)new std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OutputFormatMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > *ptr = (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OutputFormatMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_OutputFormatMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *)new std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OutputFormatMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_OutputFormatMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_OutputFormatMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_OutputFormatMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_OutputFormatMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_OutputFormatMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::map(std::less< std::string > const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::map()\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::map(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_empty" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_size" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_swap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_begin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_end" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_rbegin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_rend" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_clear" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_get_allocator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_count" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > const *)arg1)->count((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OutputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OutputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator arg2 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OutputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OutputFormatMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OutputFormatMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OutputFormatMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_OutputFormat_Sg__Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OutputFormatMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_OutputFormatMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_OutputFormatMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_OutputFormatMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OutputFormatMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::erase(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::erase(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::erase(std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator,std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_find" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_lower_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormatMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormatMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormatMap_upper_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormatMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OutputFormatMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OutputFormatMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OutputFormatMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OutputFormatMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *OutputFormatMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_HardwareDeviceVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_iterator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____nonzero__((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___bool__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____bool__((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___len__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____len__((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "HardwareDeviceVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___getslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector___getslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HardwareDeviceVector___getslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HardwareDeviceVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg3 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HardwareDeviceVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val3);
  {
    std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *ptr = (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "HardwareDeviceVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "HardwareDeviceVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_HardwareDeviceVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_HardwareDeviceVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HardwareDeviceVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__setslice__(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__setslice__(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type,std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "HardwareDeviceVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___delslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector___delslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HardwareDeviceVector___delslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector___delitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *ptr = (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HardwareDeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "HardwareDeviceVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_HardwareDeviceVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_HardwareDeviceVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HardwareDeviceVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__delitem__(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector___getitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *) &std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____getitem____SWIG_1((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "HardwareDeviceVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_HardwareDeviceVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_HardwareDeviceVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HardwareDeviceVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__getitem__(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector___setitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HardwareDeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::HardwareDevice > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "HardwareDeviceVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_HardwareDeviceVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_HardwareDeviceVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_HardwareDeviceVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HardwareDeviceVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::__setitem__(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::difference_type,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_pop" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_append" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HardwareDeviceVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__append(arg1,(std::shared_ptr< sigrok::HardwareDevice > const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HardwareDeviceVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::HardwareDevice > > *)new std::vector< std::shared_ptr< sigrok::HardwareDevice > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HardwareDeviceVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *ptr = (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_HardwareDeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_HardwareDeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::HardwareDevice > > *)new std::vector< std::shared_ptr< sigrok::HardwareDevice > >((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_empty" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_size" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_swap" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HardwareDeviceVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_begin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_end" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_rbegin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::HardwareDevice > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_rend" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::HardwareDevice > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_clear" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::HardwareDevice > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HardwareDeviceVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HardwareDeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::HardwareDevice > > *)new std::vector< std::shared_ptr< sigrok::HardwareDevice > >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_pop_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_HardwareDeviceVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_HardwareDeviceVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HardwareDeviceVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::erase(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::erase(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_HardwareDeviceVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type arg1 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_HardwareDeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_HardwareDeviceVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_HardwareDeviceVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::HardwareDevice > > *)new std::vector< std::shared_ptr< sigrok::HardwareDevice > >(SWIG_STD_MOVE(arg1),(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_HardwareDeviceVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_HardwareDeviceVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_HardwareDeviceVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_HardwareDeviceVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_HardwareDeviceVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_HardwareDeviceVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_HardwareDeviceVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::vector()\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::vector(std::vector< std::shared_ptr< sigrok::HardwareDevice > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::vector(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::vector(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_push_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "HardwareDeviceVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back((std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_front" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *) &((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *) &((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_assign" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector_assign" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HardwareDeviceVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HardwareDeviceVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_HardwareDeviceVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_HardwareDeviceVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HardwareDeviceVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::resize(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::resize(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "HardwareDeviceVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::HardwareDevice > const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type arg3 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "HardwareDeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "HardwareDeviceVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "HardwareDeviceVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "HardwareDeviceVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type * >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_HardwareDevice_Sg__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::shared_ptr< sigrok::HardwareDevice > const &)*arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_HardwareDeviceVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, SWIG_POINTER_NO_NULL | 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_HardwareDeviceVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'HardwareDeviceVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::insert(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)\n"
    "    std::vector< std::shared_ptr< sigrok::HardwareDevice > >::insert(std::vector< std::shared_ptr< sigrok::HardwareDevice > >::iterator,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type,std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "HardwareDeviceVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_reserve" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "HardwareDeviceVector_reserve" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDeviceVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDeviceVector_capacity" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::HardwareDevice > > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_HardwareDeviceVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::HardwareDevice > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HardwareDeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::HardwareDevice > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HardwareDeviceVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *HardwareDeviceVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_DeviceVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_iterator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____nonzero__((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___bool__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____bool__((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___len__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____len__((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DeviceVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___getslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector___getslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DeviceVector___getslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DeviceVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg3 ;
  std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DeviceVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val3);
  {
    std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *ptr = (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DeviceVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DeviceVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_DeviceVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DeviceVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DeviceVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__setslice__(std::vector< std::shared_ptr< sigrok::Device > >::difference_type,std::vector< std::shared_ptr< sigrok::Device > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__setslice__(std::vector< std::shared_ptr< sigrok::Device > >::difference_type,std::vector< std::shared_ptr< sigrok::Device > >::difference_type,std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeviceVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DeviceVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___delslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector___delslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DeviceVector___delslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector___delitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *ptr = (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DeviceVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DeviceVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DeviceVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DeviceVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__delitem__(std::vector< std::shared_ptr< sigrok::Device > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeviceVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector___getitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Device > >::value_type *) &std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____getitem____SWIG_1((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Device > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DeviceVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DeviceVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DeviceVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DeviceVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__getitem__(std::vector< std::shared_ptr< sigrok::Device > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeviceVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector___setitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::Device > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DeviceVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_DeviceVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DeviceVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DeviceVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DeviceVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::__setitem__(std::vector< std::shared_ptr< sigrok::Device > >::difference_type,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeviceVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_pop" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::Device > >::value_type(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DeviceVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_append" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DeviceVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__append(arg1,(std::shared_ptr< sigrok::Device > const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeviceVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Device > > *)new std::vector< std::shared_ptr< sigrok::Device > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeviceVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< std::shared_ptr< sigrok::Device > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *ptr = (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_DeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_DeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Device > > *)new std::vector< std::shared_ptr< sigrok::Device > >((std::vector< std::shared_ptr< sigrok::Device > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_empty" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_size" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DeviceVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_swap" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DeviceVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_begin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Device > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_end" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Device > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_rbegin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Device > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_rend" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Device > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_clear" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::shared_ptr< sigrok::Device > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::Device > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeviceVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Device > > *)new std::vector< std::shared_ptr< sigrok::Device > >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_pop_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Device > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Device > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DeviceVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_DeviceVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_DeviceVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DeviceVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::erase(std::vector< std::shared_ptr< sigrok::Device > >::iterator)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::erase(std::vector< std::shared_ptr< sigrok::Device > >::iterator,std::vector< std::shared_ptr< sigrok::Device > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_DeviceVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type arg1 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_DeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_DeviceVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_DeviceVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Device > > *)new std::vector< std::shared_ptr< sigrok::Device > >(SWIG_STD_MOVE(arg1),(std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_DeviceVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_DeviceVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_DeviceVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_DeviceVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_DeviceVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_DeviceVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_DeviceVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::vector()\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::vector(std::vector< std::shared_ptr< sigrok::Device > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::vector(std::vector< std::shared_ptr< sigrok::Device > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::vector(std::vector< std::shared_ptr< sigrok::Device > >::size_type,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeviceVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DeviceVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_push_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "DeviceVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back((std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_front" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Device > >::value_type *) &((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Device > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Device > >::value_type *) &((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Device > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DeviceVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_assign" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector_assign" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DeviceVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DeviceVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DeviceVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_DeviceVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DeviceVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DeviceVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::resize(std::vector< std::shared_ptr< sigrok::Device > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::resize(std::vector< std::shared_ptr< sigrok::Device > >::size_type,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeviceVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "DeviceVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::Device > const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Device > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type arg3 ;
  std::vector< std::shared_ptr< sigrok::Device > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "DeviceVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "DeviceVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "DeviceVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "DeviceVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > >::value_type * >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_Device_Sg__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::shared_ptr< sigrok::Device > const &)*arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "DeviceVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_DeviceVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Device > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_POINTER_NO_NULL | 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_DeviceVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'DeviceVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::insert(std::vector< std::shared_ptr< sigrok::Device > >::iterator,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Device > >::insert(std::vector< std::shared_ptr< sigrok::Device > >::iterator,std::vector< std::shared_ptr< sigrok::Device > >::size_type,std::vector< std::shared_ptr< sigrok::Device > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_DeviceVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "DeviceVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_reserve" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "DeviceVector_reserve" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Device > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Device > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_DeviceVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "DeviceVector_capacity" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Device > > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_DeviceVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Device > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DeviceVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Device > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Device > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DeviceVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *DeviceVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_ChannelVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_iterator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____nonzero__((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___bool__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____bool__((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___len__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____len__((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___getslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector___getslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ChannelVector___getslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ChannelVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg3 ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ChannelVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val3);
  {
    std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *ptr = (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ChannelVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_ChannelVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ChannelVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__setslice__(std::vector< std::shared_ptr< sigrok::Channel > >::difference_type,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__setslice__(std::vector< std::shared_ptr< sigrok::Channel > >::difference_type,std::vector< std::shared_ptr< sigrok::Channel > >::difference_type,std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___delslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector___delslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ChannelVector___delslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector___delitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *ptr = (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ChannelVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ChannelVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ChannelVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__delitem__(std::vector< std::shared_ptr< sigrok::Channel > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector___getitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Channel > >::value_type *) &std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____getitem____SWIG_1((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Channel > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ChannelVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ChannelVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__getitem__(std::vector< std::shared_ptr< sigrok::Channel > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector___setitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ChannelVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::Channel > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ChannelVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ChannelVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ChannelVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::__setitem__(std::vector< std::shared_ptr< sigrok::Channel > >::difference_type,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_pop" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::Channel > >::value_type(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_append" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__append(arg1,(std::shared_ptr< sigrok::Channel > const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ChannelVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Channel > > *)new std::vector< std::shared_ptr< sigrok::Channel > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ChannelVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< std::shared_ptr< sigrok::Channel > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *ptr = (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChannelVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ChannelVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Channel > > *)new std::vector< std::shared_ptr< sigrok::Channel > >((std::vector< std::shared_ptr< sigrok::Channel > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_empty" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_size" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_swap" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_begin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Channel > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_end" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Channel > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_rbegin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Channel > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_rend" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Channel > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_clear" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::shared_ptr< sigrok::Channel > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::Channel > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ChannelVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChannelVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Channel > > *)new std::vector< std::shared_ptr< sigrok::Channel > >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_pop_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Channel > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Channel > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_ChannelVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_ChannelVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::erase(std::vector< std::shared_ptr< sigrok::Channel > >::iterator)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::erase(std::vector< std::shared_ptr< sigrok::Channel > >::iterator,std::vector< std::shared_ptr< sigrok::Channel > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_ChannelVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type arg1 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ChannelVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ChannelVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ChannelVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Channel > > *)new std::vector< std::shared_ptr< sigrok::Channel > >(SWIG_STD_MOVE(arg1),(std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ChannelVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_ChannelVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_ChannelVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ChannelVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ChannelVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_ChannelVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ChannelVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::vector()\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::vector(std::vector< std::shared_ptr< sigrok::Channel > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::vector(std::vector< std::shared_ptr< sigrok::Channel > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::vector(std::vector< std::shared_ptr< sigrok::Channel > >::size_type,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_push_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back((std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_front" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Channel > >::value_type *) &((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Channel > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Channel > >::value_type *) &((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Channel > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_assign" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector_assign" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ChannelVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ChannelVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ChannelVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ChannelVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::resize(std::vector< std::shared_ptr< sigrok::Channel > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::resize(std::vector< std::shared_ptr< sigrok::Channel > >::size_type,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ChannelVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::Channel > const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Channel > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type arg3 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ChannelVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ChannelVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > >::value_type * >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_Channel_Sg__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::shared_ptr< sigrok::Channel > const &)*arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ChannelVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Channel > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_NO_NULL | 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ChannelVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::insert(std::vector< std::shared_ptr< sigrok::Channel > >::iterator,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Channel > >::insert(std::vector< std::shared_ptr< sigrok::Channel > >::iterator,std::vector< std::shared_ptr< sigrok::Channel > >::size_type,std::vector< std::shared_ptr< sigrok::Channel > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_reserve" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ChannelVector_reserve" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Channel > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelVector_capacity" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Channel > > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ChannelVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Channel > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ChannelVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Channel > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Channel > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ChannelVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *ChannelVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_ChannelGroupMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_std__string_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChannelGroupMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ChannelGroupMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *)new std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >((std::less< std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___nonzero__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____nonzero__((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___bool__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____bool__((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___len__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____len__((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___getitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type *) &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____getitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t, 0 |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___delitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____delitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_has_key" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__has_key((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_keys" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_values" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_items" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___contains__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____contains__(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_key_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_value_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ChannelGroupMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(std::shared_ptr< sigrok::ChannelGroup > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelGroupMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ChannelGroupMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ChannelGroupMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelGroupMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_asdict" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ChannelGroupMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *)new std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ChannelGroupMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > *ptr = (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ChannelGroupMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ChannelGroupMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *)new std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ChannelGroupMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_ChannelGroupMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_ChannelGroupMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ChannelGroupMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ChannelGroupMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ChannelGroupMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::map(std::less< std::string > const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::map()\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::map(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_empty" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_size" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_swap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_begin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_end" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_rbegin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_rend" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_clear" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_get_allocator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_count" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > const *)arg1)->count((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelGroupMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelGroupMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator arg2 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelGroupMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelGroupMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelGroupMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ChannelGroupMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_ChannelGroup_Sg__Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ChannelGroupMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_ChannelGroupMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ChannelGroupMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_ChannelGroupMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ChannelGroupMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::erase(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::erase(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::erase(std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator,std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_find" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_lower_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroupMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ChannelGroupMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroupMap_upper_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ChannelGroupMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ChannelGroupMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ChannelGroupMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ChannelGroupMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ChannelGroupMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *ChannelGroupMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_ConfigVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_iterator" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___nonzero__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____nonzero__((std::vector< sigrok::ConfigKey const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___bool__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____bool__((std::vector< sigrok::ConfigKey const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___len__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____len__((std::vector< sigrok::ConfigKey const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg2 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___getslice__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector___getslice__" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigVector___getslice__" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *)std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg2 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___setslice__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector___setslice__" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigVector___setslice__" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg2 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg3 ;
  std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___setslice__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector___setslice__" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigVector___setslice__" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val3);
  {
    std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > > *ptr = (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ConfigVector___setslice__" "', argument " "4"" of type '" "std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ConfigVector___setslice__" "', argument " "4"" of type '" "std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_ConfigVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ConfigVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::__setslice__(std::vector< sigrok::ConfigKey const * >::difference_type,std::vector< sigrok::ConfigKey const * >::difference_type)\n"
    "    std::vector< sigrok::ConfigKey const * >::__setslice__(std::vector< sigrok::ConfigKey const * >::difference_type,std::vector< sigrok::ConfigKey const * >::difference_type,std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg2 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___delslice__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector___delslice__" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigVector___delslice__" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___delitem__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector___delitem__" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___getitem__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *)std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > > *ptr = (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConfigVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ConfigVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___delitem__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ConfigVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ConfigVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::__delitem__(std::vector< sigrok::ConfigKey const * >::difference_type)\n"
    "    std::vector< sigrok::ConfigKey const * >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< sigrok::ConfigKey const * >::value_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___getitem__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector___getitem__" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::ConfigKey const * >::value_type)std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getitem____SWIG_1(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ConfigVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ConfigVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< sigrok::ConfigKey const * >::__getitem__(std::vector< sigrok::ConfigKey const * >::difference_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::difference_type arg2 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector___setitem__" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConfigVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(sigrok::ConfigKey const *)arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_ConfigVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ConfigVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ConfigVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > const &)\n"
    "    std::vector< sigrok::ConfigKey const * >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< sigrok::ConfigKey const * >::__setitem__(std::vector< sigrok::ConfigKey const * >::difference_type,std::vector< sigrok::ConfigKey const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_pop" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::ConfigKey const * >::value_type)std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_append" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigVector_append" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__append(arg1,(sigrok::ConfigKey const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::ConfigKey const * > *)new std::vector< sigrok::ConfigKey const * >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< sigrok::ConfigKey const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > > *ptr = (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConfigVector" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ConfigVector" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::ConfigKey const * > *)new std::vector< sigrok::ConfigKey const * >((std::vector< sigrok::ConfigKey const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_empty" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< sigrok::ConfigKey const * > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_size" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::ConfigKey const * > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_swap" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigVector_swap" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ConfigVector_swap" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_begin" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_end" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_rbegin" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::ConfigKey const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_rend" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::ConfigKey const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_clear" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< sigrok::ConfigKey const * > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_get_allocator" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::ConfigKey const * > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< sigrok::ConfigKey const * >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< sigrok::ConfigKey const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConfigVector" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * >::size_type""'");
  } 
  arg1 = static_cast< std::vector< sigrok::ConfigKey const * >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::ConfigKey const * > *)new std::vector< sigrok::ConfigKey const * >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_pop_back" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_resize" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector_resize" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_erase" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::iterator arg2 ;
  std::vector< sigrok::ConfigKey const * >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_erase" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_erase" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_erase" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_ConfigVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_ConfigVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::erase(std::vector< sigrok::ConfigKey const * >::iterator)\n"
    "    std::vector< sigrok::ConfigKey const * >::erase(std::vector< sigrok::ConfigKey const * >::iterator,std::vector< sigrok::ConfigKey const * >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_ConfigVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * >::size_type arg1 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< sigrok::ConfigKey const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_ConfigVector" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * >::size_type""'");
  } 
  arg1 = static_cast< std::vector< sigrok::ConfigKey const * >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_ConfigVector" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::ConfigKey const * > *)new std::vector< sigrok::ConfigKey const * >(SWIG_STD_MOVE(arg1),arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_ConfigVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_ConfigVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_ConfigVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ConfigVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_ConfigVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ConfigVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::vector()\n"
    "    std::vector< sigrok::ConfigKey const * >::vector(std::vector< sigrok::ConfigKey const * > const &)\n"
    "    std::vector< sigrok::ConfigKey const * >::vector(std::vector< sigrok::ConfigKey const * >::size_type)\n"
    "    std::vector< sigrok::ConfigKey const * >::vector(std::vector< sigrok::ConfigKey const * >::size_type,std::vector< sigrok::ConfigKey const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_push_back" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigVector_push_back" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back(arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_front" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::ConfigKey const * >::value_type)((std::vector< sigrok::ConfigKey const * > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_back" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::ConfigKey const * >::value_type)((std::vector< sigrok::ConfigKey const * > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::size_type arg2 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_assign" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector_assign" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConfigVector_assign" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::size_type arg2 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_resize" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector_resize" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConfigVector_resize" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ConfigVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ConfigVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::resize(std::vector< sigrok::ConfigKey const * >::size_type)\n"
    "    std::vector< sigrok::ConfigKey const * >::resize(std::vector< sigrok::ConfigKey const * >::size_type,std::vector< sigrok::ConfigKey const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::iterator arg2 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_insert" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConfigVector_insert" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(sigrok::ConfigKey const *)arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::iterator arg2 ;
  std::vector< sigrok::ConfigKey const * >::size_type arg3 ;
  std::vector< sigrok::ConfigKey const * >::value_type arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_insert" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "ConfigVector_insert" "', argument " "3"" of type '" "std::vector< sigrok::ConfigKey const * >::size_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::ConfigKey const * >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "ConfigVector_insert" "', argument " "4"" of type '" "std::vector< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg4 = reinterpret_cast< std::vector< sigrok::ConfigKey const * >::value_type >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(sigrok::ConfigKey const *)arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ConfigVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::ConfigKey const*,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_ConfigVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::ConfigKey const * >::insert(std::vector< sigrok::ConfigKey const * >::iterator,std::vector< sigrok::ConfigKey const * >::value_type)\n"
    "    std::vector< sigrok::ConfigKey const * >::insert(std::vector< sigrok::ConfigKey const * >::iterator,std::vector< sigrok::ConfigKey const * >::size_type,std::vector< sigrok::ConfigKey const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::vector< sigrok::ConfigKey const * >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_reserve" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigVector_reserve" "', argument " "2"" of type '" "std::vector< sigrok::ConfigKey const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::ConfigKey const * >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::ConfigKey const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigVector_capacity" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::ConfigKey const * > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ConfigVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigVector" "', argument " "1"" of type '" "std::vector< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::ConfigKey const * > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConfigVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_sigrok__ConfigKey_const_p_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *ConfigVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_ConfigMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_sigrok__ConfigKey_const_p_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConfigMap" "', argument " "1"" of type '" "std::less< sigrok::ConfigKey const * > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ConfigMap" "', argument " "1"" of type '" "std::less< sigrok::ConfigKey const * > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< sigrok::ConfigKey const *,Glib::VariantBase > *)new std::map< sigrok::ConfigKey const *,Glib::VariantBase >((std::less< sigrok::ConfigKey const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_iterator" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___nonzero__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____nonzero__((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___bool__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____bool__((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___len__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____len__((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___getitem__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap___getitem__" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type *) &std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____getitem__(arg1,(sigrok::ConfigKey const *const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Glib__VariantBase, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___delitem__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap___delitem__" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____delitem__(arg1,(sigrok::ConfigKey const *const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_has_key" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap_has_key" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__has_key((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1,(sigrok::ConfigKey const *const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_keys" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_values" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_items" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___contains__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap___contains__" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____contains__(arg1,(sigrok::ConfigKey const *const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_key_iterator" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_value_iterator" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___setitem__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap___setitem__" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____setitem____SWIG_0(arg1,(sigrok::ConfigKey const *const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap___setitem__" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap___setitem__" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "ConfigMap___setitem__" "', argument " "3"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ConfigMap___setitem__" "', argument " "3"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg____setitem____SWIG_1(arg1,(sigrok::ConfigKey const *const &)*arg2,(Glib::VariantBase const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ConfigMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_ConfigMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::__setitem__(std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &)\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::__setitem__(std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_asdict" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< sigrok::ConfigKey const *,Glib::VariantBase > *)new std::map< sigrok::ConfigKey const *,Glib::VariantBase >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > *ptr = (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConfigMap" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ConfigMap" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< sigrok::ConfigKey const *,Glib::VariantBase > *)new std::map< sigrok::ConfigKey const *,Glib::VariantBase >((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_ConfigMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_ConfigMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ConfigMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ConfigMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ConfigMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::map(std::less< sigrok::ConfigKey const * > const &)\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::map()\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::map(std::map< sigrok::ConfigKey const *,Glib::VariantBase > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_empty" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_size" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_swap" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap_swap" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ConfigMap_swap" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_begin" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_end" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_rbegin" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< sigrok::ConfigKey const *,Glib::VariantBase >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_rend" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< sigrok::ConfigKey const *,Glib::VariantBase >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_clear" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_get_allocator" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< sigrok::ConfigKey const *,Glib::VariantBase >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_erase" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap_erase" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_count" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap_count" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< sigrok::ConfigKey const *,Glib::VariantBase > const *)arg1)->count((std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_erase" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigMap_erase" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigMap_erase" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator arg2 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_erase" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigMap_erase" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigMap_erase" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigMap_erase" "', argument " "3"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigMap_erase" "', argument " "3"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_sigrok_ConfigKey_SS_const_Sm__Sc_Glib_VariantBase_Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ConfigMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_ConfigMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_ConfigMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::erase(std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &)\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::erase(std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator)\n"
    "    std::map< sigrok::ConfigKey const *,Glib::VariantBase >::erase(std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator,std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_find" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap_find" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_lower_bound" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap_lower_bound" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigMap_upper_bound" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigMap_upper_bound" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type >(argp2);
  arg2 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< sigrok::ConfigKey const *,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ConfigMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigMap" "', argument " "1"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConfigMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *ConfigMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_ConfigSet__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::set< sigrok::ConfigKey const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_sigrok__ConfigKey_const_p_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConfigSet" "', argument " "1"" of type '" "std::less< sigrok::ConfigKey const * > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ConfigSet" "', argument " "1"" of type '" "std::less< sigrok::ConfigKey const * > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::set< sigrok::ConfigKey const * > *)new std::set< sigrok::ConfigKey const * >((std::less< sigrok::ConfigKey const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_iterator" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet___nonzero__" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____nonzero__((std::set< sigrok::ConfigKey const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet___bool__" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____bool__((std::set< sigrok::ConfigKey const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet___len__" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____len__((std::set< sigrok::ConfigKey const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_append" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_append" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__append(arg1,(sigrok::ConfigKey const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet___contains__" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet___contains__" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____contains__(arg1,(sigrok::ConfigKey const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::ConfigKey const * >::value_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet___getitem__" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigSet___getitem__" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::difference_type""'");
  } 
  arg2 = static_cast< std::set< sigrok::ConfigKey const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::set< sigrok::ConfigKey const * >::value_type)std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg____getitem__((std::set< sigrok::ConfigKey const * > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_add(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_add", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_add" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_add" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__add(arg1,(sigrok::ConfigKey const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_discard(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_discard", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_discard" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_discard" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__discard(arg1,(sigrok::ConfigKey const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigSet__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::set< sigrok::ConfigKey const * > *)new std::set< sigrok::ConfigKey const * >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigSet__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::set< sigrok::ConfigKey const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > > *ptr = (std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_ConfigSet" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_ConfigSet" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::set< sigrok::ConfigKey const * > *)new std::set< sigrok::ConfigKey const * >((std::set< sigrok::ConfigKey const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_ConfigSet(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_ConfigSet", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_ConfigSet__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ConfigSet__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_ConfigSet__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_ConfigSet'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::set< sigrok::ConfigKey const * >::set(std::less< sigrok::ConfigKey const * > const &)\n"
    "    std::set< sigrok::ConfigKey const * >::set()\n"
    "    std::set< sigrok::ConfigKey const * >::set(std::set< sigrok::ConfigKey const * > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigSet_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_empty" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::set< sigrok::ConfigKey const * > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_size" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::set< sigrok::ConfigKey const * > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_clear" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_swap" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_swap" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "ConfigSet_swap" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * > &""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type temp2 ;
  std::set< sigrok::ConfigKey const * >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_erase" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_erase" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::set< sigrok::ConfigKey const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::ConfigKey const * >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_count" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_count" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::set< sigrok::ConfigKey const * > const *)arg1)->count((std::set< sigrok::ConfigKey const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_begin" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_end" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_rbegin" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::ConfigKey const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_rend" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::ConfigKey const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_erase" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigSet_erase" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigSet_erase" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::iterator arg2 ;
  std::set< sigrok::ConfigKey const * >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_erase" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigSet_erase" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigSet_erase" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigSet_erase" "', argument " "3"" of type '" "std::set< sigrok::ConfigKey const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "ConfigSet_erase" "', argument " "3"" of type '" "std::set< sigrok::ConfigKey const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_ConfigKey_SS_const_Sm__Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigSet_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ConfigSet_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_ConfigSet_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::ConfigKey const * >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_ConfigSet_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigSet_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::set< sigrok::ConfigKey const * >::erase(std::set< sigrok::ConfigKey const * >::key_type const &)\n"
    "    std::set< sigrok::ConfigKey const * >::erase(std::set< sigrok::ConfigKey const * >::iterator)\n"
    "    std::set< sigrok::ConfigKey const * >::erase(std::set< sigrok::ConfigKey const * >::iterator,std::set< sigrok::ConfigKey const * >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_ConfigSet_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_find" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_find" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::set< sigrok::ConfigKey const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_lower_bound" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_lower_bound" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::set< sigrok::ConfigKey const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::ConfigKey const * >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_upper_bound" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_upper_bound" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::set< sigrok::ConfigKey const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::ConfigKey const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_equal_range(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::ConfigKey const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  SwigValueWrapper< std::pair< std::set< sigrok::ConfigKey const * >::iterator,std::set< sigrok::ConfigKey const * >::iterator > > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_equal_range", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_equal_range" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_equal_range" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->equal_range((std::set< sigrok::ConfigKey const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = PyTuple_New(2);
  PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< sigrok::ConfigKey const * >::iterator,std::set< sigrok::ConfigKey const * >::iterator > & >(result).first),
      swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN));
  PyTuple_SetItem(resultobj,1,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< sigrok::ConfigKey const * >::iterator,std::set< sigrok::ConfigKey const * >::iterator > & >(result).second),
      swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigSet_insert(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  std::set< sigrok::ConfigKey const * >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::ConfigKey const * >::value_type temp2 ;
  PyObject *swig_obj[2] ;
  SwigValueWrapper< std::pair< std::set< sigrok::ConfigKey const * >::iterator,bool > > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "ConfigSet_insert", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigSet_insert" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ConfigSet_insert" "', argument " "2"" of type '" "std::set< sigrok::ConfigKey const * >::value_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::value_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::ConfigKey const * >::value_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->insert((std::set< sigrok::ConfigKey const * >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = PyTuple_New(2);
  PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< sigrok::ConfigKey const * >::iterator,bool > & >(result).first),
      swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN));    
  PyTuple_SetItem(resultobj,1,SWIG_From_bool  (static_cast< const std::pair< std::set< sigrok::ConfigKey const * >::iterator,bool > & >(result).second));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ConfigSet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::ConfigKey const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigSet" "', argument " "1"" of type '" "std::set< sigrok::ConfigKey const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::ConfigKey const * > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConfigSet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__setT_sigrok__ConfigKey_const_p_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *ConfigSet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_CapabilityVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_iterator" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___nonzero__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____nonzero__((std::vector< sigrok::Capability const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___bool__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____bool__((std::vector< sigrok::Capability const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___len__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____len__((std::vector< sigrok::Capability const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::difference_type arg2 ;
  std::vector< sigrok::Capability const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilityVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___getslice__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector___getslice__" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapabilityVector___getslice__" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *)std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::difference_type arg2 ;
  std::vector< sigrok::Capability const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___setslice__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector___setslice__" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapabilityVector___setslice__" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::difference_type arg2 ;
  std::vector< sigrok::Capability const * >::difference_type arg3 ;
  std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___setslice__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector___setslice__" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapabilityVector___setslice__" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val3);
  {
    std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > > *ptr = (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CapabilityVector___setslice__" "', argument " "4"" of type '" "std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "CapabilityVector___setslice__" "', argument " "4"" of type '" "std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilityVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_CapabilityVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CapabilityVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilityVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::__setslice__(std::vector< sigrok::Capability const * >::difference_type,std::vector< sigrok::Capability const * >::difference_type)\n"
    "    std::vector< sigrok::Capability const * >::__setslice__(std::vector< sigrok::Capability const * >::difference_type,std::vector< sigrok::Capability const * >::difference_type,std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::difference_type arg2 ;
  std::vector< sigrok::Capability const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilityVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___delslice__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector___delslice__" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapabilityVector___delslice__" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___delitem__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector___delitem__" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___getitem__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *)std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > > *ptr = (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapabilityVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "CapabilityVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___delitem__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilityVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CapabilityVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CapabilityVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilityVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::__delitem__(std::vector< sigrok::Capability const * >::difference_type)\n"
    "    std::vector< sigrok::Capability const * >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< sigrok::Capability const * >::value_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___getitem__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector___getitem__" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::Capability const * >::value_type)std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____getitem____SWIG_1(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilityVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CapabilityVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CapabilityVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilityVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< sigrok::Capability const * >::__getitem__(std::vector< sigrok::Capability const * >::difference_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::difference_type arg2 ;
  std::vector< sigrok::Capability const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector___setitem__" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapabilityVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(sigrok::Capability const *)arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilityVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_CapabilityVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CapabilityVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__Capability, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CapabilityVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilityVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > const &)\n"
    "    std::vector< sigrok::Capability const * >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< sigrok::Capability const * >::__setitem__(std::vector< sigrok::Capability const * >::difference_type,std::vector< sigrok::Capability const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_pop" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::Capability const * >::value_type)std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilityVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_append" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilityVector_append" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__append(arg1,(sigrok::Capability const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapabilityVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::Capability const * > *)new std::vector< sigrok::Capability const * >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapabilityVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< sigrok::Capability const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > > *ptr = (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapabilityVector" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_CapabilityVector" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::Capability const * > *)new std::vector< sigrok::Capability const * >((std::vector< sigrok::Capability const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_empty" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< sigrok::Capability const * > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_size" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::Capability const * > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilityVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_swap" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilityVector_swap" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "CapabilityVector_swap" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_begin" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_end" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_rbegin" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::Capability const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_rend" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::Capability const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_clear" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< sigrok::Capability const * > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_get_allocator" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::Capability const * > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< sigrok::Capability const * >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_sigrok__Capability_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapabilityVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< sigrok::Capability const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapabilityVector" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * >::size_type""'");
  } 
  arg1 = static_cast< std::vector< sigrok::Capability const * >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::Capability const * > *)new std::vector< sigrok::Capability const * >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_pop_back" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_resize" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector_resize" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_erase" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::iterator arg2 ;
  std::vector< sigrok::Capability const * >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_erase" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_erase" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_erase" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilityVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_CapabilityVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_CapabilityVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilityVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::erase(std::vector< sigrok::Capability const * >::iterator)\n"
    "    std::vector< sigrok::Capability const * >::erase(std::vector< sigrok::Capability const * >::iterator,std::vector< sigrok::Capability const * >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_CapabilityVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * >::size_type arg1 ;
  std::vector< sigrok::Capability const * >::value_type arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< sigrok::Capability const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_CapabilityVector" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * >::size_type""'");
  } 
  arg1 = static_cast< std::vector< sigrok::Capability const * >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_CapabilityVector" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::Capability const * > *)new std::vector< sigrok::Capability const * >(SWIG_STD_MOVE(arg1),arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapabilityVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_CapabilityVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_CapabilityVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_CapabilityVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CapabilityVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__Capability, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_CapabilityVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_CapabilityVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::vector()\n"
    "    std::vector< sigrok::Capability const * >::vector(std::vector< sigrok::Capability const * > const &)\n"
    "    std::vector< sigrok::Capability const * >::vector(std::vector< sigrok::Capability const * >::size_type)\n"
    "    std::vector< sigrok::Capability const * >::vector(std::vector< sigrok::Capability const * >::size_type,std::vector< sigrok::Capability const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilityVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_push_back" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilityVector_push_back" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back(arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_front" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::Capability const * >::value_type)((std::vector< sigrok::Capability const * > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_back" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::Capability const * >::value_type)((std::vector< sigrok::Capability const * > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::size_type arg2 ;
  std::vector< sigrok::Capability const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilityVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_assign" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector_assign" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapabilityVector_assign" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::size_type arg2 ;
  std::vector< sigrok::Capability const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_resize" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector_resize" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapabilityVector_resize" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilityVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_CapabilityVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__Capability, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CapabilityVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilityVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::resize(std::vector< sigrok::Capability const * >::size_type)\n"
    "    std::vector< sigrok::Capability const * >::resize(std::vector< sigrok::Capability const * >::size_type,std::vector< sigrok::Capability const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::iterator arg2 ;
  std::vector< sigrok::Capability const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_insert" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "CapabilityVector_insert" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(sigrok::Capability const *)arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::iterator arg2 ;
  std::vector< sigrok::Capability const * >::size_type arg3 ;
  std::vector< sigrok::Capability const * >::value_type arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_insert" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilityVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "CapabilityVector_insert" "', argument " "3"" of type '" "std::vector< sigrok::Capability const * >::size_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::Capability const * >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "CapabilityVector_insert" "', argument " "4"" of type '" "std::vector< sigrok::Capability const * >::value_type""'"); 
  }
  arg4 = reinterpret_cast< std::vector< sigrok::Capability const * >::value_type >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_sigrok_Capability_SS_const_Sm__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(sigrok::Capability const *)arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilityVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter) != 0));
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__Capability, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_CapabilityVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::Capability const*,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::Capability const * >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_sigrok__Capability, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_CapabilityVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilityVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::Capability const * >::insert(std::vector< sigrok::Capability const * >::iterator,std::vector< sigrok::Capability const * >::value_type)\n"
    "    std::vector< sigrok::Capability const * >::insert(std::vector< sigrok::Capability const * >::iterator,std::vector< sigrok::Capability const * >::size_type,std::vector< sigrok::Capability const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  std::vector< sigrok::Capability const * >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilityVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_reserve" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilityVector_reserve" "', argument " "2"" of type '" "std::vector< sigrok::Capability const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::Capability const * >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilityVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::Capability const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilityVector_capacity" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::Capability const * > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CapabilityVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapabilityVector" "', argument " "1"" of type '" "std::vector< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::Capability const * > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapabilityVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_sigrok__Capability_const_p_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *CapabilityVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_CapabilitySet__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::set< sigrok::Capability const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_sigrok__Capability_const_p_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapabilitySet" "', argument " "1"" of type '" "std::less< sigrok::Capability const * > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_CapabilitySet" "', argument " "1"" of type '" "std::less< sigrok::Capability const * > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::set< sigrok::Capability const * > *)new std::set< sigrok::Capability const * >((std::less< sigrok::Capability const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_iterator" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet___nonzero__" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____nonzero__((std::set< sigrok::Capability const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet___bool__" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____bool__((std::set< sigrok::Capability const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::Capability const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet___len__" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____len__((std::set< sigrok::Capability const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_append" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_append" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__append(arg1,(sigrok::Capability const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet___contains__" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet___contains__" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____contains__(arg1,(sigrok::Capability const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::Capability const * >::value_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet___getitem__" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "CapabilitySet___getitem__" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::difference_type""'");
  } 
  arg2 = static_cast< std::set< sigrok::Capability const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::set< sigrok::Capability const * >::value_type)std_set_Sl_sigrok_Capability_SS_const_Sm__Sg____getitem__((std::set< sigrok::Capability const * > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_add(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_add", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_add" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_add" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__add(arg1,(sigrok::Capability const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_discard(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_discard", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_discard" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_discard" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__discard(arg1,(sigrok::Capability const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapabilitySet__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::set< sigrok::Capability const * > *)new std::set< sigrok::Capability const * >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapabilitySet__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::set< sigrok::Capability const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > > *ptr = (std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_CapabilitySet" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_CapabilitySet" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::set< sigrok::Capability const * > *)new std::set< sigrok::Capability const * >((std::set< sigrok::Capability const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_CapabilitySet(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_CapabilitySet", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_CapabilitySet__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_sigrok__Capability_const_p_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CapabilitySet__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_CapabilitySet__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_CapabilitySet'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::set< sigrok::Capability const * >::set(std::less< sigrok::Capability const * > const &)\n"
    "    std::set< sigrok::Capability const * >::set()\n"
    "    std::set< sigrok::Capability const * >::set(std::set< sigrok::Capability const * > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_empty" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::set< sigrok::Capability const * > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::Capability const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_size" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::set< sigrok::Capability const * > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_clear" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_swap" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_swap" "', argument " "2"" of type '" "std::set< sigrok::Capability const * > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "CapabilitySet_swap" "', argument " "2"" of type '" "std::set< sigrok::Capability const * > &""'"); 
  }
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::Capability const * >::key_type temp2 ;
  std::set< sigrok::Capability const * >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_erase" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_erase" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::set< sigrok::Capability const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::Capability const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::Capability const * >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_count" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_count" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::set< sigrok::Capability const * > const *)arg1)->count((std::set< sigrok::Capability const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_begin" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_end" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::Capability const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_rbegin" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::Capability const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::Capability const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_rend" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::Capability const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_erase" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilitySet_erase" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilitySet_erase" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::iterator arg2 ;
  std::set< sigrok::Capability const * >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_erase" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilitySet_erase" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilitySet_erase" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilitySet_erase" "', argument " "3"" of type '" "std::set< sigrok::Capability const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "CapabilitySet_erase" "', argument " "3"" of type '" "std::set< sigrok::Capability const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_set_Sl_sigrok_Capability_SS_const_Sm__Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "CapabilitySet_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__Capability, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_CapabilitySet_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_CapabilitySet_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::set< sigrok::Capability const * >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_CapabilitySet_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'CapabilitySet_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::set< sigrok::Capability const * >::erase(std::set< sigrok::Capability const * >::key_type const &)\n"
    "    std::set< sigrok::Capability const * >::erase(std::set< sigrok::Capability const * >::iterator)\n"
    "    std::set< sigrok::Capability const * >::erase(std::set< sigrok::Capability const * >::iterator,std::set< sigrok::Capability const * >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::Capability const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_find" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_find" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::set< sigrok::Capability const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::Capability const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_lower_bound" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_lower_bound" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::set< sigrok::Capability const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::Capability const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::Capability const * >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_upper_bound" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_upper_bound" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::set< sigrok::Capability const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::set< sigrok::Capability const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_equal_range(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::Capability const * >::key_type temp2 ;
  PyObject *swig_obj[2] ;
  SwigValueWrapper< std::pair< std::set< sigrok::Capability const * >::iterator,std::set< sigrok::Capability const * >::iterator > > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_equal_range", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_equal_range" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_equal_range" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::key_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::key_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->equal_range((std::set< sigrok::Capability const * >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = PyTuple_New(2);
  PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< sigrok::Capability const * >::iterator,std::set< sigrok::Capability const * >::iterator > & >(result).first),
      swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN));
  PyTuple_SetItem(resultobj,1,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< sigrok::Capability const * >::iterator,std::set< sigrok::Capability const * >::iterator > & >(result).second),
      swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_CapabilitySet_insert(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  std::set< sigrok::Capability const * >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::set< sigrok::Capability const * >::value_type temp2 ;
  PyObject *swig_obj[2] ;
  SwigValueWrapper< std::pair< std::set< sigrok::Capability const * >::iterator,bool > > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "CapabilitySet_insert", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "CapabilitySet_insert" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "CapabilitySet_insert" "', argument " "2"" of type '" "std::set< sigrok::Capability const * >::value_type""'"); 
  }
  temp2 = reinterpret_cast< std::set< sigrok::Capability const * >::value_type >(argp2);
  arg2 = reinterpret_cast< std::set< sigrok::Capability const * >::value_type * >(&temp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->insert((std::set< sigrok::Capability const * >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = PyTuple_New(2);
  PyTuple_SetItem(resultobj,0,SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::pair< std::set< sigrok::Capability const * >::iterator,bool > & >(result).first),
      swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN));    
  PyTuple_SetItem(resultobj,1,SWIG_From_bool  (static_cast< const std::pair< std::set< sigrok::Capability const * >::iterator,bool > & >(result).second));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_CapabilitySet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::set< sigrok::Capability const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_CapabilitySet" "', argument " "1"" of type '" "std::set< sigrok::Capability const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::set< sigrok::Capability const * > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *CapabilitySet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__setT_sigrok__Capability_const_p_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *CapabilitySet_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_OptionVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_iterator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____nonzero__((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___bool__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____bool__((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___len__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____len__((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___getslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector___getslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionVector___getslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg3 ;
  std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val3);
  {
    std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *ptr = (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "OptionVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_OptionVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_OptionVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__setslice__(std::vector< std::shared_ptr< sigrok::Option > >::difference_type,std::vector< std::shared_ptr< sigrok::Option > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__setslice__(std::vector< std::shared_ptr< sigrok::Option > >::difference_type,std::vector< std::shared_ptr< sigrok::Option > >::difference_type,std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___delslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector___delslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionVector___delslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector___delitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *ptr = (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OptionVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_OptionVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_OptionVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__delitem__(std::vector< std::shared_ptr< sigrok::Option > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector___getitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::Option > >::value_type *) &std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getitem____SWIG_1((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Option > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_OptionVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_OptionVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__getitem__(std::vector< std::shared_ptr< sigrok::Option > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector___setitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OptionVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::Option > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_OptionVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_OptionVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_OptionVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::__setitem__(std::vector< std::shared_ptr< sigrok::Option > >::difference_type,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_pop" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::Option > >::value_type(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_append" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__append(arg1,(std::shared_ptr< sigrok::Option > const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Option > > *)new std::vector< std::shared_ptr< sigrok::Option > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< std::shared_ptr< sigrok::Option > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *ptr = (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OptionVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_OptionVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Option > > *)new std::vector< std::shared_ptr< sigrok::Option > >((std::vector< std::shared_ptr< sigrok::Option > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_empty" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_size" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_swap" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_begin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_end" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_rbegin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Option > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_rend" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Option > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_clear" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::shared_ptr< sigrok::Option > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::Option > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OptionVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Option > > *)new std::vector< std::shared_ptr< sigrok::Option > >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_pop_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_OptionVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_OptionVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::erase(std::vector< std::shared_ptr< sigrok::Option > >::iterator)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::erase(std::vector< std::shared_ptr< sigrok::Option > >::iterator,std::vector< std::shared_ptr< sigrok::Option > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_OptionVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type arg1 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_OptionVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_OptionVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_OptionVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Option > > *)new std::vector< std::shared_ptr< sigrok::Option > >(SWIG_STD_MOVE(arg1),(std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_OptionVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_OptionVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_OptionVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_OptionVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_OptionVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_OptionVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::vector()\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::vector(std::vector< std::shared_ptr< sigrok::Option > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::vector(std::vector< std::shared_ptr< sigrok::Option > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::vector(std::vector< std::shared_ptr< sigrok::Option > >::size_type,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_push_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back((std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_front" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Option > >::value_type *) &((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Option > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::Option > >::value_type *) &((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::Option > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_assign" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector_assign" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OptionVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OptionVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_OptionVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_OptionVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::resize(std::vector< std::shared_ptr< sigrok::Option > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::resize(std::vector< std::shared_ptr< sigrok::Option > >::size_type,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OptionVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::Option > const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type arg3 ;
  std::vector< std::shared_ptr< sigrok::Option > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "OptionVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "OptionVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > >::value_type * >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::shared_ptr< sigrok::Option > const &)*arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_OptionVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_POINTER_NO_NULL | 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_OptionVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::insert(std::vector< std::shared_ptr< sigrok::Option > >::iterator,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)\n"
    "    std::vector< std::shared_ptr< sigrok::Option > >::insert(std::vector< std::shared_ptr< sigrok::Option > >::iterator,std::vector< std::shared_ptr< sigrok::Option > >::size_type,std::vector< std::shared_ptr< sigrok::Option > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_reserve" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "OptionVector_reserve" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Option > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::Option > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Option > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionVector_capacity" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::Option > > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OptionVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OptionVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *OptionVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_OptionMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_std__string_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OptionMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_OptionMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::Option > > *)new std::map< std::string,std::shared_ptr< sigrok::Option > >((std::less< std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___nonzero__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____nonzero__((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___bool__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____bool__((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___len__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____len__((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___getitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type *) &std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____getitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___delitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____delitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_has_key" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap_has_key" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__has_key((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_keys" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_values" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_items" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___contains__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap___contains__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____contains__(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_key_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_value_iterator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "OptionMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(std::shared_ptr< sigrok::Option > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_OptionMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_OptionMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::__setitem__(std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &,std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_asdict" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::Option > > *)new std::map< std::string,std::shared_ptr< sigrok::Option > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > *ptr = (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_OptionMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_OptionMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,std::shared_ptr< sigrok::Option > > *)new std::map< std::string,std::shared_ptr< sigrok::Option > >((std::map< std::string,std::shared_ptr< sigrok::Option > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_OptionMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_OptionMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_OptionMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_OptionMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_OptionMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_OptionMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::map(std::less< std::string > const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::map()\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::map(std::map< std::string,std::shared_ptr< sigrok::Option > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_empty" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_size" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_swap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap_swap" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_begin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_end" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_rbegin" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Option > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_rend" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Option > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_clear" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_get_allocator" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< std::string,std::shared_ptr< sigrok::Option > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_count" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap_count" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,std::shared_ptr< sigrok::Option > > const *)arg1)->count((std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator arg2 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_erase" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionMap_erase" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "OptionMap_erase" "', argument " "3"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_std_shared_ptr_Sl_sigrok_Option_Sg__Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "OptionMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_OptionMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_OptionMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_OptionMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'OptionMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::erase(std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::erase(std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator)\n"
    "    std::map< std::string,std::shared_ptr< sigrok::Option > >::erase(std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator,std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_OptionMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_find" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap_find" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_lower_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_OptionMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OptionMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OptionMap_upper_bound" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OptionMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "OptionMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< std::string,std::shared_ptr< sigrok::Option > >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,std::shared_ptr< sigrok::Option > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OptionMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,std::shared_ptr< sigrok::Option > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OptionMap" "', argument " "1"" of type '" "std::map< std::string,std::shared_ptr< sigrok::Option > > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,std::shared_ptr< sigrok::Option > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OptionMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *OptionMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_VariantVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_iterator" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_Glib_VariantBase_Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___nonzero__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_Glib_VariantBase_Sg____nonzero__((std::vector< Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___bool__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_Glib_VariantBase_Sg____bool__((std::vector< Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___len__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_Glib_VariantBase_Sg____len__((std::vector< Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::difference_type arg2 ;
  std::vector< Glib::VariantBase >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___getslice__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector___getslice__" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VariantVector___getslice__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *)std_vector_Sl_Glib_VariantBase_Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::difference_type arg2 ;
  std::vector< Glib::VariantBase >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___setslice__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector___setslice__" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VariantVector___setslice__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::difference_type arg2 ;
  std::vector< Glib::VariantBase >::difference_type arg3 ;
  std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___setslice__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector___setslice__" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VariantVector___setslice__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val3);
  {
    std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *ptr = (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VariantVector___setslice__" "', argument " "4"" of type '" "std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector___setslice__" "', argument " "4"" of type '" "std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_VariantVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_VariantVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::__setslice__(std::vector< Glib::VariantBase >::difference_type,std::vector< Glib::VariantBase >::difference_type)\n"
    "    std::vector< Glib::VariantBase >::__setslice__(std::vector< Glib::VariantBase >::difference_type,std::vector< Glib::VariantBase >::difference_type,std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::difference_type arg2 ;
  std::vector< Glib::VariantBase >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___delslice__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector___delslice__" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VariantVector___delslice__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___delitem__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector___delitem__" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___getitem__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *)std_vector_Sl_Glib_VariantBase_Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___setitem__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *ptr = (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VariantVector___setitem__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector___setitem__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____setitem____SWIG_0(arg1,arg2,(std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___setitem__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___delitem__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_VariantVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_VariantVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::__delitem__(std::vector< Glib::VariantBase >::difference_type)\n"
    "    std::vector< Glib::VariantBase >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< Glib::VariantBase >::value_type *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___getitem__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector___getitem__" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< Glib::VariantBase >::value_type *) &std_vector_Sl_Glib_VariantBase_Sg____getitem____SWIG_1((std::vector< Glib::VariantBase > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Glib__VariantBase, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< Glib::VariantBase >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_VariantVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_VariantVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< Glib::VariantBase >::__getitem__(std::vector< Glib::VariantBase >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::difference_type arg2 ;
  std::vector< Glib::VariantBase >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector___setitem__" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector___setitem__" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VariantVector___setitem__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector___setitem__" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_Glib_VariantBase_Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(Glib::VariantBase const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_VariantVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_VariantVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_VariantVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > const &)\n"
    "    std::vector< Glib::VariantBase >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< Glib::VariantBase >::__setitem__(std::vector< Glib::VariantBase >::difference_type,std::vector< Glib::VariantBase >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_pop" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = std_vector_Sl_Glib_VariantBase_Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Glib::VariantBase >::value_type(result)), SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_append" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantVector_append" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector_append" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_Glib_VariantBase_Sg__append(arg1,(Glib::VariantBase const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VariantVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< Glib::VariantBase > *)new std::vector< Glib::VariantBase >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VariantVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *ptr = (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VariantVector" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_VariantVector" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< Glib::VariantBase > *)new std::vector< Glib::VariantBase >((std::vector< Glib::VariantBase > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_empty" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< Glib::VariantBase > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_size" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< Glib::VariantBase > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_swap" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_Glib__VariantBase_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantVector_swap" "', argument " "2"" of type '" "std::vector< Glib::VariantBase > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector_swap" "', argument " "2"" of type '" "std::vector< Glib::VariantBase > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_begin" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_end" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_rbegin" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Glib::VariantBase >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_rend" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Glib::VariantBase >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_clear" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< Glib::VariantBase > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_get_allocator" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< Glib::VariantBase > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< Glib::VariantBase >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_Glib__VariantBase_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VariantVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VariantVector" "', argument " "1"" of type '" "std::vector< Glib::VariantBase >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Glib::VariantBase >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< Glib::VariantBase > *)new std::vector< Glib::VariantBase >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_pop_back" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_resize" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector_resize" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< Glib::VariantBase >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_erase" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_erase" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_erase" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_Glib_VariantBase_Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::iterator arg2 ;
  std::vector< Glib::VariantBase >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< Glib::VariantBase >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_erase" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_erase" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_erase" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_erase" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_erase" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_Glib_VariantBase_Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_VariantVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_VariantVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::erase(std::vector< Glib::VariantBase >::iterator)\n"
    "    std::vector< Glib::VariantBase >::erase(std::vector< Glib::VariantBase >::iterator,std::vector< Glib::VariantBase >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_VariantVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase >::size_type arg1 ;
  std::vector< Glib::VariantBase >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_VariantVector" "', argument " "1"" of type '" "std::vector< Glib::VariantBase >::size_type""'");
  } 
  arg1 = static_cast< std::vector< Glib::VariantBase >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_VariantVector" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_VariantVector" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< Glib::VariantBase > *)new std::vector< Glib::VariantBase >(SWIG_STD_MOVE(arg1),(std::vector< Glib::VariantBase >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VariantVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_VariantVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_VariantVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_VariantVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_VariantVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_VariantVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_VariantVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::vector()\n"
    "    std::vector< Glib::VariantBase >::vector(std::vector< Glib::VariantBase > const &)\n"
    "    std::vector< Glib::VariantBase >::vector(std::vector< Glib::VariantBase >::size_type)\n"
    "    std::vector< Glib::VariantBase >::vector(std::vector< Glib::VariantBase >::size_type,std::vector< Glib::VariantBase >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_push_back" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantVector_push_back" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector_push_back" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back((std::vector< Glib::VariantBase >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_front" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< Glib::VariantBase >::value_type *) &((std::vector< Glib::VariantBase > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Glib__VariantBase, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< Glib::VariantBase >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_back" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< Glib::VariantBase >::value_type *) &((std::vector< Glib::VariantBase > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Glib__VariantBase, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< Glib::VariantBase >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::size_type arg2 ;
  std::vector< Glib::VariantBase >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_assign" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector_assign" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VariantVector_assign" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector_assign" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),(std::vector< Glib::VariantBase >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::size_type arg2 ;
  std::vector< Glib::VariantBase >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_resize" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector_resize" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VariantVector_resize" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector_resize" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),(std::vector< Glib::VariantBase >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_VariantVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_VariantVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::resize(std::vector< Glib::VariantBase >::size_type)\n"
    "    std::vector< Glib::VariantBase >::resize(std::vector< Glib::VariantBase >::size_type,std::vector< Glib::VariantBase >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::iterator arg2 ;
  std::vector< Glib::VariantBase >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< Glib::VariantBase >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_insert" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_insert" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_insert" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VariantVector_insert" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector_insert" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_Glib_VariantBase_Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(Glib::VariantBase const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::iterator arg2 ;
  std::vector< Glib::VariantBase >::size_type arg3 ;
  std::vector< Glib::VariantBase >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_insert" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_insert" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantVector_insert" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "VariantVector_insert" "', argument " "3"" of type '" "std::vector< Glib::VariantBase >::size_type""'");
  } 
  arg3 = static_cast< std::vector< Glib::VariantBase >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "VariantVector_insert" "', argument " "4"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantVector_insert" "', argument " "4"" of type '" "std::vector< Glib::VariantBase >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< Glib::VariantBase >::value_type * >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_Glib_VariantBase_Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(Glib::VariantBase const &)*arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_VariantVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_VariantVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< Glib::VariantBase >::insert(std::vector< Glib::VariantBase >::iterator,std::vector< Glib::VariantBase >::value_type const &)\n"
    "    std::vector< Glib::VariantBase >::insert(std::vector< Glib::VariantBase >::iterator,std::vector< Glib::VariantBase >::size_type,std::vector< Glib::VariantBase >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  std::vector< Glib::VariantBase >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_reserve" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "VariantVector_reserve" "', argument " "2"" of type '" "std::vector< Glib::VariantBase >::size_type""'");
  } 
  arg2 = static_cast< std::vector< Glib::VariantBase >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantVector_capacity" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< Glib::VariantBase > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VariantVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VariantVector" "', argument " "1"" of type '" "std::vector< Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< Glib::VariantBase > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VariantVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_Glib__VariantBase_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *VariantVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_VariantMap__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::less< std::string > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::map< std::string,Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1, SWIGTYPE_p_std__lessT_std__string_t,  0  | 0);
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VariantMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  if (!argp1) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_VariantMap" "', argument " "1"" of type '" "std::less< std::string > const &""'"); 
  }
  arg1 = reinterpret_cast< std::less< std::string > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,Glib::VariantBase > *)new std::map< std::string,Glib::VariantBase >((std::less< std::string > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_iterator" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___nonzero__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____nonzero__((std::map< std::string,Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___bool__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____bool__((std::map< std::string,Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___len__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____len__((std::map< std::string,Glib::VariantBase > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___getitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,Glib::VariantBase >::mapped_type *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap___getitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___getitem__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap___getitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::map< std::string,Glib::VariantBase >::mapped_type *) &std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____getitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Glib__VariantBase, 0 |  0 );
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___delitem__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap___delitem__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___delitem__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap___delitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____delitem__(arg1,(std::string const &)*arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_has_key(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap_has_key", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_has_key" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap_has_key" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap_has_key" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__has_key((std::map< std::string,Glib::VariantBase > const *)arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_keys" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__keys(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_values" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__values(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_items(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_items" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__items(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___contains__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap___contains__", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___contains__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap___contains__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap___contains__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____contains__(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_key_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_key_iterator" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__key_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_value_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_value_iterator" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__value_iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____setitem____SWIG_0(arg1,(std::string const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  std::map< std::string,Glib::VariantBase >::mapped_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap___setitem__" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap___setitem__" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "VariantMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,Glib::VariantBase >::mapped_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap___setitem__" "', argument " "3"" of type '" "std::map< std::string,Glib::VariantBase >::mapped_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::map< std::string,Glib::VariantBase >::mapped_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_map_Sl_std_string_Sc_Glib_VariantBase_Sg____setitem____SWIG_1(arg1,(std::string const &)*arg2,(Glib::VariantBase const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantMap___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_VariantMap___setitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_VariantMap___setitem____SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantMap___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,Glib::VariantBase >::__setitem__(std::map< std::string,Glib::VariantBase >::key_type const &)\n"
    "    std::map< std::string,Glib::VariantBase >::__setitem__(std::map< std::string,Glib::VariantBase >::key_type const &,std::map< std::string,Glib::VariantBase >::mapped_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantMap_asdict(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_asdict" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (PyObject *)std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__asdict(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VariantMap__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,Glib::VariantBase > *)new std::map< std::string,Glib::VariantBase >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VariantMap__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::map< std::string,Glib::VariantBase > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > > *ptr = (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_VariantMap" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_VariantMap" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::map< std::string,Glib::VariantBase > *)new std::map< std::string,Glib::VariantBase >((std::map< std::string,Glib::VariantBase > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_VariantMap(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[2] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_VariantMap", 0, 1, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_VariantMap__SWIG_1(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__lessT_std__string_t, SWIG_POINTER_NO_NULL | 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_VariantMap__SWIG_0(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_VariantMap__SWIG_2(self, argc, argv);
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_VariantMap'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,Glib::VariantBase >::map(std::less< std::string > const &)\n"
    "    std::map< std::string,Glib::VariantBase >::map()\n"
    "    std::map< std::string,Glib::VariantBase >::map(std::map< std::string,Glib::VariantBase > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantMap_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_empty" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::map< std::string,Glib::VariantBase > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_size" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,Glib::VariantBase > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_swap" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap_swap" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap_swap" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase > &""'"); 
  }
  arg2 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_begin" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_end" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,Glib::VariantBase >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_rbegin" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,Glib::VariantBase >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,Glib::VariantBase >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_rend" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,Glib::VariantBase >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_clear" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::pair< std::string const,Glib::VariantBase > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_get_allocator" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,Glib::VariantBase > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::map< std::string,Glib::VariantBase >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  std::map< std::string,Glib::VariantBase >::size_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_erase" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap_erase" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap_erase" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->erase((std::map< std::string,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_count(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,Glib::VariantBase >::size_type result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap_count", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_count" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > const *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap_count" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap_count" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::map< std::string,Glib::VariantBase > const *)arg1)->count((std::map< std::string,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_erase" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantMap_erase" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantMap_erase" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_erase__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::iterator arg2 ;
  std::map< std::string,Glib::VariantBase >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_erase" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantMap_erase" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantMap_erase" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantMap_erase" "', argument " "3"" of type '" "std::map< std::string,Glib::VariantBase >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "VariantMap_erase" "', argument " "3"" of type '" "std::map< std::string,Glib::VariantBase >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_map_Sl_std_string_Sc_Glib_VariantBase_Sg__erase__SWIG_2(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "VariantMap_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_VariantMap_erase__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_VariantMap_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::map< std::string,Glib::VariantBase >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_VariantMap_erase__SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'VariantMap_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::map< std::string,Glib::VariantBase >::erase(std::map< std::string,Glib::VariantBase >::key_type const &)\n"
    "    std::map< std::string,Glib::VariantBase >::erase(std::map< std::string,Glib::VariantBase >::iterator)\n"
    "    std::map< std::string,Glib::VariantBase >::erase(std::map< std::string,Glib::VariantBase >::iterator,std::map< std::string,Glib::VariantBase >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_VariantMap_find(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap_find", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_find" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap_find" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap_find" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->find((std::map< std::string,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_lower_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap_lower_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_lower_bound" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap_lower_bound" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->lower_bound((std::map< std::string,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_VariantMap_upper_bound(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  std::map< std::string,Glib::VariantBase >::key_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  std::map< std::string,Glib::VariantBase >::iterator result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "VariantMap_upper_bound", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "VariantMap_upper_bound" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "VariantMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "VariantMap_upper_bound" "', argument " "2"" of type '" "std::map< std::string,Glib::VariantBase >::key_type const &""'"); 
    }
    arg2 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->upper_bound((std::map< std::string,Glib::VariantBase >::key_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::map< std::string,Glib::VariantBase >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_VariantMap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::map< std::string,Glib::VariantBase > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_VariantMap" "', argument " "1"" of type '" "std::map< std::string,Glib::VariantBase > *""'"); 
  }
  arg1 = reinterpret_cast< std::map< std::string,Glib::VariantBase > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *VariantMap_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__mapT_std__string_Glib__VariantBase_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *VariantMap_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_QuantityFlagVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_iterator" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___nonzero__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____nonzero__((std::vector< sigrok::QuantityFlag const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___bool__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____bool__((std::vector< sigrok::QuantityFlag const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___len__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____len__((std::vector< sigrok::QuantityFlag const * > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg2 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "QuantityFlagVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___getslice__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector___getslice__" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuantityFlagVector___getslice__" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *)std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg2 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___setslice__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector___setslice__" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuantityFlagVector___setslice__" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg2 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg3 ;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___setslice__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector___setslice__" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuantityFlagVector___setslice__" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val3);
  {
    std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *ptr = (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuantityFlagVector___setslice__" "', argument " "4"" of type '" "std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "QuantityFlagVector___setslice__" "', argument " "4"" of type '" "std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "QuantityFlagVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_QuantityFlagVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuantityFlagVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'QuantityFlagVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::__setslice__(std::vector< sigrok::QuantityFlag const * >::difference_type,std::vector< sigrok::QuantityFlag const * >::difference_type)\n"
    "    std::vector< sigrok::QuantityFlag const * >::__setslice__(std::vector< sigrok::QuantityFlag const * >::difference_type,std::vector< sigrok::QuantityFlag const * >::difference_type,std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg2 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "QuantityFlagVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___delslice__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector___delslice__" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuantityFlagVector___delslice__" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___delitem__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector___delitem__" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___getitem__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *)std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *ptr = (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuantityFlagVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "QuantityFlagVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___delitem__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "QuantityFlagVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuantityFlagVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuantityFlagVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'QuantityFlagVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::__delitem__(std::vector< sigrok::QuantityFlag const * >::difference_type)\n"
    "    std::vector< sigrok::QuantityFlag const * >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::value_type result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___getitem__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector___getitem__" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::QuantityFlag const * >::value_type)std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____getitem____SWIG_1(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "QuantityFlagVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuantityFlagVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuantityFlagVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'QuantityFlagVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< sigrok::QuantityFlag const * >::__getitem__(std::vector< sigrok::QuantityFlag const * >::difference_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::difference_type arg2 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector___setitem__" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector___setitem__" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuantityFlagVector___setitem__" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(sigrok::QuantityFlag const *)arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "QuantityFlagVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_QuantityFlagVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuantityFlagVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__QuantityFlag, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuantityFlagVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'QuantityFlagVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > const &)\n"
    "    std::vector< sigrok::QuantityFlag const * >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< sigrok::QuantityFlag const * >::__setitem__(std::vector< sigrok::QuantityFlag const * >::difference_type,std::vector< sigrok::QuantityFlag const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_pop" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< sigrok::QuantityFlag const * >::value_type)std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "QuantityFlagVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_append" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuantityFlagVector_append" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__append(arg1,(sigrok::QuantityFlag const *)arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuantityFlagVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::QuantityFlag const * > *)new std::vector< sigrok::QuantityFlag const * >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuantityFlagVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< sigrok::QuantityFlag const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *ptr = (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_QuantityFlagVector" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_QuantityFlagVector" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::QuantityFlag const * > *)new std::vector< sigrok::QuantityFlag const * >((std::vector< sigrok::QuantityFlag const * > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_empty" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< sigrok::QuantityFlag const * > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_size" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::QuantityFlag const * > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "QuantityFlagVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_swap" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuantityFlagVector_swap" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "QuantityFlagVector_swap" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_begin" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::QuantityFlag const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_end" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::QuantityFlag const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_rbegin" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::QuantityFlag const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_rend" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::QuantityFlag const * >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_clear" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< sigrok::QuantityFlag const * > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_get_allocator" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::QuantityFlag const * > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< sigrok::QuantityFlag const * >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuantityFlagVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< sigrok::QuantityFlag const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuantityFlagVector" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * >::size_type""'");
  } 
  arg1 = static_cast< std::vector< sigrok::QuantityFlag const * >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::QuantityFlag const * > *)new std::vector< sigrok::QuantityFlag const * >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_pop_back" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_resize" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector_resize" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< sigrok::QuantityFlag const * >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_erase" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::QuantityFlag const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::iterator arg2 ;
  std::vector< sigrok::QuantityFlag const * >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< sigrok::QuantityFlag const * >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_erase" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_erase" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_erase" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_erase" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::QuantityFlag const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "QuantityFlagVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_QuantityFlagVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_QuantityFlagVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'QuantityFlagVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::erase(std::vector< sigrok::QuantityFlag const * >::iterator)\n"
    "    std::vector< sigrok::QuantityFlag const * >::erase(std::vector< sigrok::QuantityFlag const * >::iterator,std::vector< sigrok::QuantityFlag const * >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_QuantityFlagVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * >::size_type arg1 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< sigrok::QuantityFlag const * > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_QuantityFlagVector" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * >::size_type""'");
  } 
  arg1 = static_cast< std::vector< sigrok::QuantityFlag const * >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_QuantityFlagVector" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::QuantityFlag const * > *)new std::vector< sigrok::QuantityFlag const * >(SWIG_STD_MOVE(arg1),arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_QuantityFlagVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_QuantityFlagVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_QuantityFlagVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_QuantityFlagVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_QuantityFlagVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__QuantityFlag, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_QuantityFlagVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_QuantityFlagVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::vector()\n"
    "    std::vector< sigrok::QuantityFlag const * >::vector(std::vector< sigrok::QuantityFlag const * > const &)\n"
    "    std::vector< sigrok::QuantityFlag const * >::vector(std::vector< sigrok::QuantityFlag const * >::size_type)\n"
    "    std::vector< sigrok::QuantityFlag const * >::vector(std::vector< sigrok::QuantityFlag const * >::size_type,std::vector< sigrok::QuantityFlag const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "QuantityFlagVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_push_back" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "QuantityFlagVector_push_back" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg2 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back(arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_front" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::QuantityFlag const * >::value_type)((std::vector< sigrok::QuantityFlag const * > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_back" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< sigrok::QuantityFlag const * >::value_type)((std::vector< sigrok::QuantityFlag const * > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::size_type arg2 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "QuantityFlagVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_assign" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector_assign" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuantityFlagVector_assign" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::size_type arg2 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_resize" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector_resize" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuantityFlagVector_resize" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "QuantityFlagVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_QuantityFlagVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__QuantityFlag, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuantityFlagVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'QuantityFlagVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::resize(std::vector< sigrok::QuantityFlag const * >::size_type)\n"
    "    std::vector< sigrok::QuantityFlag const * >::resize(std::vector< sigrok::QuantityFlag const * >::size_type,std::vector< sigrok::QuantityFlag const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::iterator arg2 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_insert" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "QuantityFlagVector_insert" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg3 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(sigrok::QuantityFlag const *)arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< sigrok::QuantityFlag const * >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::iterator arg2 ;
  std::vector< sigrok::QuantityFlag const * >::size_type arg3 ;
  std::vector< sigrok::QuantityFlag const * >::value_type arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_insert" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "QuantityFlagVector_insert" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "QuantityFlagVector_insert" "', argument " "3"" of type '" "std::vector< sigrok::QuantityFlag const * >::size_type""'");
  } 
  arg3 = static_cast< std::vector< sigrok::QuantityFlag const * >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_sigrok__QuantityFlag, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "QuantityFlagVector_insert" "', argument " "4"" of type '" "std::vector< sigrok::QuantityFlag const * >::value_type""'"); 
  }
  arg4 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * >::value_type >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_sigrok_QuantityFlag_SS_const_Sm__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(sigrok::QuantityFlag const *)arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "QuantityFlagVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter) != 0));
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__QuantityFlag, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_QuantityFlagVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< sigrok::QuantityFlag const * >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_sigrok__QuantityFlag, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_QuantityFlagVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'QuantityFlagVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< sigrok::QuantityFlag const * >::insert(std::vector< sigrok::QuantityFlag const * >::iterator,std::vector< sigrok::QuantityFlag const * >::value_type)\n"
    "    std::vector< sigrok::QuantityFlag const * >::insert(std::vector< sigrok::QuantityFlag const * >::iterator,std::vector< sigrok::QuantityFlag const * >::size_type,std::vector< sigrok::QuantityFlag const * >::value_type)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  std::vector< sigrok::QuantityFlag const * >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "QuantityFlagVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_reserve" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "QuantityFlagVector_reserve" "', argument " "2"" of type '" "std::vector< sigrok::QuantityFlag const * >::size_type""'");
  } 
  arg2 = static_cast< std::vector< sigrok::QuantityFlag const * >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlagVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const * >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "QuantityFlagVector_capacity" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< sigrok::QuantityFlag const * > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuantityFlagVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const * > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuantityFlagVector" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const * > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< sigrok::QuantityFlag const * > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuantityFlagVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_sigrok__QuantityFlag_const_p_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *QuantityFlagVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_TriggerStageVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_iterator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____nonzero__((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___bool__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____bool__((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___len__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____len__((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerStageVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___getslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector___getslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerStageVector___getslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerStageVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg3 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerStageVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val3);
  {
    std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *ptr = (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TriggerStageVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStageVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_TriggerStageVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_TriggerStageVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStageVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__setslice__(std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__setslice__(std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerStageVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___delslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector___delslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerStageVector___delslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector___delitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *ptr = (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerStageVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStageVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_TriggerStageVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_TriggerStageVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStageVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__delitem__(std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector___getitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *) &std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____getitem____SWIG_1((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStageVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_TriggerStageVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_TriggerStageVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStageVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__getitem__(std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector___setitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerStageVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::TriggerStage > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStageVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_TriggerStageVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerStageVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerStageVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStageVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::__setitem__(std::vector< std::shared_ptr< sigrok::TriggerStage > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_pop" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerStageVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_append" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerStageVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__append(arg1,(std::shared_ptr< sigrok::TriggerStage > const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerStageVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerStage > > *)new std::vector< std::shared_ptr< sigrok::TriggerStage > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerStageVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *ptr = (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TriggerStageVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_TriggerStageVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerStage > > *)new std::vector< std::shared_ptr< sigrok::TriggerStage > >((std::vector< std::shared_ptr< sigrok::TriggerStage > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_empty" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_size" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerStageVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_swap" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerStageVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_begin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_end" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_rbegin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerStage > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_rend" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerStage > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_clear" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::shared_ptr< sigrok::TriggerStage > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::TriggerStage > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerStageVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TriggerStageVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerStage > > *)new std::vector< std::shared_ptr< sigrok::TriggerStage > >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_pop_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStageVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_TriggerStageVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_TriggerStageVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStageVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::erase(std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::erase(std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator,std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_TriggerStageVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type arg1 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TriggerStageVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TriggerStageVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_TriggerStageVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerStage > > *)new std::vector< std::shared_ptr< sigrok::TriggerStage > >(SWIG_STD_MOVE(arg1),(std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerStageVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_TriggerStageVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_TriggerStageVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_TriggerStageVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_TriggerStageVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_TriggerStageVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_TriggerStageVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::vector()\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::vector(std::vector< std::shared_ptr< sigrok::TriggerStage > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::vector(std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::vector(std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerStageVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_push_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerStageVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back((std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_front" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *) &((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *) &((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerStageVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_assign" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector_assign" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerStageVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerStageVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStageVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_TriggerStageVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerStageVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStageVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::resize(std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::resize(std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerStageVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::TriggerStage > const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type arg3 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerStageVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerStageVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TriggerStageVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerStageVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type * >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerStage_Sg__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::shared_ptr< sigrok::TriggerStage > const &)*arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStageVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerStageVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_POINTER_NO_NULL | 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_TriggerStageVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStageVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::insert(std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerStage > >::insert(std::vector< std::shared_ptr< sigrok::TriggerStage > >::iterator,std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type,std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerStageVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_reserve" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerStageVector_reserve" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStageVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStageVector_capacity" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::TriggerStage > > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TriggerStageVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerStage > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TriggerStageVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerStage > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerStage > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TriggerStageVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *TriggerStageVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_TriggerMatchVector_iterator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  PyObject **arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  swig::SwigPyIterator *result = 0 ;
  
  arg2 = &swig_obj[0];
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_iterator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (swig::SwigPyIterator *)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__iterator(arg1,arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  if (!result) SWIG_fail;
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_swig__SwigPyIterator, SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___nonzero__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___nonzero__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____nonzero__((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___bool__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___bool__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____bool__((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___len__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___len__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____len__((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___getslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *result = 0 ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerMatchVector___getslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___getslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector___getslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerMatchVector___getslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____getslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___setslice____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerMatchVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setslice____SWIG_0(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___setslice____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg3 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  int res4 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___setslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector___setslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerMatchVector___setslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val3);
  {
    std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *ptr = (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *)0;
    res4 = swig::asptr(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res4)) {
      SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TriggerMatchVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector___setslice__" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &""'"); 
    }
    arg4 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setslice____SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &)*arg4);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res4)) delete arg4;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res4)) delete arg4;
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___setslice__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerMatchVector___setslice__", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          return _wrap_TriggerMatchVector___setslice____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_ptrdiff_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = swig::asptr(argv[3], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_TriggerMatchVector___setslice____SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerMatchVector___setslice__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__setslice__(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__setslice__(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___delslice__(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  ptrdiff_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerMatchVector___delslice__", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___delslice__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector___delslice__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val2);
  ecode3 = SWIG_AsVal_ptrdiff_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerMatchVector___delslice__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____delslice__(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___delitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector___delitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____delitem____SWIG_0(arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___getitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector___getitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *)std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____getitem____SWIG_0(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___setitem____SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  int res3 = SWIG_OLDOBJ ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  {
    std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *ptr = (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *)0;
    res3 = swig::asptr(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res3)) {
      SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerMatchVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &""'"); 
    }
    arg3 = ptr;
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setitem____SWIG_0(arg1,arg2,(std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res3)) delete arg3;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res3)) delete arg3;
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___setitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector___setitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___delitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  SWIGPY_SLICEOBJECT *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___delitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    if (!PySlice_Check(swig_obj[1])) {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector___delitem__" "', argument " "2"" of type '" "SWIGPY_SLICEOBJECT *""'");
    }
    arg2 = (SWIGPY_SLICEOBJECT *) swig_obj[1];
  }
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____delitem____SWIG_1(arg1,arg2);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  } catch(std::invalid_argument &_e) {
    SWIG_exception_fail(SWIG_ValueError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___delitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerMatchVector___delitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_TriggerMatchVector___delitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_TriggerMatchVector___delitem____SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerMatchVector___delitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__delitem__(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__delitem__(SWIGPY_SLICEOBJECT *)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___getitem____SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___getitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector___getitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val2);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = (std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *) &std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____getitem____SWIG_1((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1,SWIG_STD_MOVE(arg2));
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___getitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerMatchVector___getitem__", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_TriggerMatchVector___getitem____SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_TriggerMatchVector___getitem____SWIG_1(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerMatchVector___getitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__getitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__getitem__(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___setitem____SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  ptrdiff_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector___setitem__" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_ptrdiff_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector___setitem__" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerMatchVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector___setitem__" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp3);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg____setitem____SWIG_2(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::TriggerMatch > const &)*arg3);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector___setitem__(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerMatchVector___setitem__", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        return _wrap_TriggerMatchVector___setitem____SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        _v = PySlice_Check(argv[1]);
      }
      if (_v) {
        int res = swig::asptr(argv[2], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerMatchVector___setitem____SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_ptrdiff_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerMatchVector___setitem____SWIG_2(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerMatchVector___setitem__'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__setitem__(SWIGPY_SLICEOBJECT *,std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__setitem__(SWIGPY_SLICEOBJECT *)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::__setitem__(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::difference_type,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_pop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_pop" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  try {
    {
      SWIG_PYTHON_THREAD_BEGIN_ALLOW;
      result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__pop(arg1);
      SWIG_PYTHON_THREAD_END_ALLOW;
    }
  } catch(std::out_of_range &_e) {
    SWIG_exception_fail(SWIG_IndexError, (&_e)->what());
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_append(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerMatchVector_append", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_append" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerMatchVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector_append" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__append(arg1,(std::shared_ptr< sigrok::TriggerMatch > const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerMatchVector__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **SWIGUNUSEDPARM(swig_obj)) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 0) || (nobjs > 0)) SWIG_fail;
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerMatch > > *)new std::vector< std::shared_ptr< sigrok::TriggerMatch > >();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerMatchVector__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  int res1 = SWIG_OLDOBJ ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  {
    std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *ptr = (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *)0;
    res1 = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "new_TriggerMatchVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_TriggerMatchVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const &""'"); 
    }
    arg1 = ptr;
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerMatch > > *)new std::vector< std::shared_ptr< sigrok::TriggerMatch > >((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const &)*arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_NEW |  0 );
  if (SWIG_IsNewObj(res1)) delete arg1;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res1)) delete arg1;
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_empty(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_empty" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (bool)((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1)->empty();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_size" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1)->size();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_swap(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerMatchVector_swap", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_swap" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t,  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerMatchVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector_swap" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->swap(*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_begin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_begin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->begin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_end" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->end();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_rbegin(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_rbegin" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rbegin();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerMatch > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_rend(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::reverse_iterator result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_rend" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (arg1)->rend();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerMatch > >::reverse_iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_clear(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_clear" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->clear();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_get_allocator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_get_allocator" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1)->get_allocator();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::shared_ptr< sigrok::TriggerMatch > >::allocator_type(result)), SWIGTYPE_p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerMatchVector__SWIG_2(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type arg1 ;
  size_t val1 ;
  int ecode1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 1) || (nobjs > 1)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TriggerMatchVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type >(val1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerMatch > > *)new std::vector< std::shared_ptr< sigrok::TriggerMatch > >(SWIG_STD_MOVE(arg1));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_pop_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_pop_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->pop_back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_resize__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_erase__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__erase__SWIG_0(arg1,SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_erase__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  swig::SwigPyIterator *iter3 = 0 ;
  int res3 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_erase" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_erase" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], SWIG_as_voidptrptr(&iter3), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res3) || !iter3) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter3);
    if (iter_t) {
      arg3 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_erase" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__erase__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_erase(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerMatchVector_erase", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter) != 0));
      if (_v) {
        return _wrap_TriggerMatchVector_erase__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter) != 0));
      if (_v) {
        swig::SwigPyIterator *iter = 0;
        int res = SWIG_ConvertPtr(argv[2], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
        _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter) != 0));
        if (_v) {
          return _wrap_TriggerMatchVector_erase__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerMatchVector_erase'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::erase(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::erase(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_new_TriggerMatchVector__SWIG_3(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type arg1 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg2 = 0 ;
  size_t val1 ;
  int ecode1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *result = 0 ;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  ecode1 = SWIG_AsVal_size_t(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_TriggerMatchVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type""'");
  } 
  arg1 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type >(val1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "new_TriggerMatchVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "new_TriggerMatchVector" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerMatch > > *)new std::vector< std::shared_ptr< sigrok::TriggerMatch > >(SWIG_STD_MOVE(arg1),(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_new_TriggerMatchVector(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "new_TriggerMatchVector", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 0) {
    return _wrap_new_TriggerMatchVector__SWIG_0(self, argc, argv);
  }
  if (argc == 1) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      return _wrap_new_TriggerMatchVector__SWIG_2(self, argc, argv);
    }
  }
  if (argc == 1) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      return _wrap_new_TriggerMatchVector__SWIG_1(self, argc, argv);
    }
  }
  if (argc == 2) {
    int _v = 0;
    {
      int res = SWIG_AsVal_size_t(argv[0], NULL);
      _v = SWIG_CheckState(res);
    }
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, SWIG_POINTER_NO_NULL | 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_new_TriggerMatchVector__SWIG_3(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'new_TriggerMatchVector'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::vector()\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::vector(std::vector< std::shared_ptr< sigrok::TriggerMatch > > const &)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::vector(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::vector(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_push_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerMatchVector_push_back", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_push_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerMatchVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp2) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector_push_back" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg2 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->push_back((std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)*arg2);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_front(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_front" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *) &((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1)->front();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_back(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_back" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *) &((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1)->back();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, 0 |  0 );
  if (!swig::container_owner<swig::traits<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type>::category>::back_reference(resultobj, swig_obj[0]) && PyErr_Occurred()) {
    SWIG_fail;
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_assign(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerMatchVector_assign", 3, 3, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_assign" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector_assign" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerMatchVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector_assign" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->assign(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_resize__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_resize" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector_resize" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerMatchVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector_resize" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->resize(SWIG_STD_MOVE(arg2),(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_resize(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerMatchVector_resize", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_TriggerMatchVector_resize__SWIG_0(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_size_t(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerMatchVector_resize__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerMatchVector_resize'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::resize(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::resize(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_insert__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
    }
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerMatchVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg3 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp3);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__insert__SWIG_0(arg1,SWIG_STD_MOVE(arg2),(std::shared_ptr< sigrok::TriggerMatch > const &)*arg3);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_NewPointerObj(swig::make_output_iterator(static_cast< const std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator & >(result)),
    swig::SwigPyIterator::descriptor(),SWIG_POINTER_OWN);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_insert__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator arg2 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type arg3 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  swig::SwigPyIterator *iter2 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_insert" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  res2 = SWIG_ConvertPtr(swig_obj[1], SWIG_as_voidptrptr(&iter2), swig::SwigPyIterator::descriptor(), 0);
  if (!SWIG_IsOK(res2) || !iter2) {
    SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
  } else {
    swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *iter_t = dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter2);
    if (iter_t) {
      arg2 = iter_t->get_current();
    } else {
      SWIG_exception_fail(SWIG_ArgError(SWIG_TypeError), "in method '" "TriggerMatchVector_insert" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator""'");
    }
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "TriggerMatchVector_insert" "', argument " "3"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type""'");
  } 
  arg3 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t,  0  | 0);
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "TriggerMatchVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  if (!argp4) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "TriggerMatchVector_insert" "', argument " "4"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &""'"); 
  }
  arg4 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type * >(argp4);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    std_vector_Sl_std_shared_ptr_Sl_sigrok_TriggerMatch_Sg__Sg__insert__SWIG_1(arg1,SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),(std::shared_ptr< sigrok::TriggerMatch > const &)*arg4);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_insert(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerMatchVector_insert", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter) != 0));
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerMatchVector_insert__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = swig::asptr(argv[0], (std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > >**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      swig::SwigPyIterator *iter = 0;
      int res = SWIG_ConvertPtr(argv[1], SWIG_as_voidptrptr(&iter), swig::SwigPyIterator::descriptor(), 0);
      _v = (SWIG_IsOK(res) && iter && (dynamic_cast<swig::SwigPyIterator_T<std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator > *>(iter) != 0));
      if (_v) {
        {
          int res = SWIG_AsVal_size_t(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          int res = SWIG_ConvertPtr(argv[3], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, SWIG_POINTER_NO_NULL | 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_TriggerMatchVector_insert__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerMatchVector_insert'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::insert(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)\n"
    "    std::vector< std::shared_ptr< sigrok::TriggerMatch > >::insert(std::vector< std::shared_ptr< sigrok::TriggerMatch > >::iterator,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type,std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type const &)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_reserve(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  size_t val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "TriggerMatchVector_reserve", 2, 2, swig_obj)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_reserve" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  ecode2 = SWIG_AsVal_size_t(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "TriggerMatchVector_reserve" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type""'");
  } 
  arg2 = static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type >(val2);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    (arg1)->reserve(SWIG_STD_MOVE(arg2));
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatchVector_capacity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > >::size_type result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatchVector_capacity" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = ((std::vector< std::shared_ptr< sigrok::TriggerMatch > > const *)arg1)->capacity();
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_TriggerMatchVector(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< std::shared_ptr< sigrok::TriggerMatch > > *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TriggerMatchVector" "', argument " "1"" of type '" "std::vector< std::shared_ptr< sigrok::TriggerMatch > > *""'"); 
  }
  arg1 = reinterpret_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch > > * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TriggerMatchVector_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *TriggerMatchVector_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_new_Error(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::Error *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  ecode1 = SWIG_AsVal_int(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "new_Error" "', argument " "1"" of type '" "int""'");
  } 
  arg1 = static_cast< int >(val1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::Error *)new sigrok::Error(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Error, SWIG_POINTER_NEW |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Error(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Error *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Error, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Error" "', argument " "1"" of type '" "sigrok::Error *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Error * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Error_result_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Error *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Error, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_result_get" "', argument " "1"" of type '" "sigrok::Error *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Error * >(argp1);
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = (int)(int) ((arg1)->result);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Error_what(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Error *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  char *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Error, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Error_what" "', argument " "1"" of type '" "sigrok::Error const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Error * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (char *)((sigrok::Error const *)arg1)->what();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_FromCharPtr((const char *)result);
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Error_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__Error, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *Error_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  return SWIG_Python_InitShadowInstance(args);
}

SWIGINTERN PyObject *_wrap_delete_ResourceReader(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ResourceReader *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__ResourceReader, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ResourceReader" "', argument " "1"" of type '" "sigrok::ResourceReader *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::ResourceReader * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ResourceReader_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__ResourceReader, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Context_create(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::shared_ptr< sigrok::Context > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_create", 0, 0, 0)) SWIG_fail;
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = sigrok::Context::create();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Context > *smartresult = result ? new std::shared_ptr<  sigrok::Context >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context__drivers(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context__drivers" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->drivers();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context__input_formats(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context__input_formats" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->input_formats();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_input_format_match(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::string arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::InputFormat > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_input_format_match", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_input_format_match" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_input_format_match" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->input_format_match(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::InputFormat > *smartresult = result ? new std::shared_ptr<  sigrok::InputFormat >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context__output_formats(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context__output_formats" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->output_formats();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_set_log_callback(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  SwigValueWrapper< std::function< void (sigrok::LogLevel const *,std::string) > > arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_set_log_callback", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_set_log_callback" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    if (!PyCallable_Check(swig_obj[1]))
    SWIG_exception(SWIG_TypeError, "Expected a callable Python object");
    
    arg2 = [=] (const sigrok::LogLevel *loglevel, std::string message) {
      auto gstate = PyGILState_Ensure();
      
      auto log_obj = SWIG_NewPointerObj(
        SWIG_as_voidptr(loglevel), SWIGTYPE_p_sigrok__LogLevel, 0);
      
      auto string_obj = string_to_python(message.c_str());
      
      auto arglist = Py_BuildValue("(OO)", log_obj, string_obj);
      
      auto result = PyObject_CallObject(swig_obj[1], arglist);
      
      Py_XDECREF(arglist);
      Py_XDECREF(log_obj);
      Py_XDECREF(string_obj);
      
      bool completed = !PyErr_Occurred();
      
      if (!completed)
      PyErr_Print();
      
      bool valid_result = (completed && result == Py_None);
      
      Py_XDECREF(result);
      
      if (completed && !valid_result)
      {
        PyErr_SetString(PyExc_TypeError,
          "Log callback did not return None");
        PyErr_Print();
      }
      
      PyGILState_Release(gstate);
      
      if (!valid_result)
      throw sigrok::Error(SR_ERR);
    };
    
    Py_XINCREF(swig_obj[1]);
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->set_log_callback(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_set_log_callback_default(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_set_log_callback_default" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->set_log_callback_default();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_set_resource_reader(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  sigrok::ResourceReader *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_set_resource_reader", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_set_resource_reader" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ResourceReader, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Context_set_resource_reader" "', argument " "2"" of type '" "sigrok::ResourceReader *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::ResourceReader * >(argp2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->set_resource_reader(arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_session(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Session > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_session" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_session();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Session > *smartresult = result ? new std::shared_ptr<  sigrok::Session >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_user_device(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::string arg2 ;
  std::string arg3 ;
  std::string arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[4] ;
  std::shared_ptr< sigrok::UserDevice > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_create_user_device", 4, 4, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_user_device" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_create_user_device" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[2], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_create_user_device" "', argument " "3"" of type '" "std::string""'"); 
    }
    arg3 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_create_user_device" "', argument " "4"" of type '" "std::string""'"); 
    }
    arg4 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_user_device(SWIG_STD_MOVE(arg2),SWIG_STD_MOVE(arg3),SWIG_STD_MOVE(arg4));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::UserDevice > *smartresult = result ? new std::shared_ptr<  sigrok::UserDevice >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__UserDevice_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_header_packet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  Glib::TimeVal arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::Packet > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_create_header_packet", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_header_packet" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    res2 = SWIG_ConvertPtr(swig_obj[1], &argp2, SWIGTYPE_p_Glib__TimeVal,  0  | 0);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Context_create_header_packet" "', argument " "2"" of type '" "Glib::TimeVal""'"); 
    }  
    if (!argp2) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "Context_create_header_packet" "', argument " "2"" of type '" "Glib::TimeVal""'");
    } else {
      Glib::TimeVal * temp = reinterpret_cast< Glib::TimeVal * >(argp2);
      arg2 = *temp;
      if (SWIG_IsNewObj(res2)) delete temp;
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_header_packet(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Packet > *smartresult = result ? new std::shared_ptr<  sigrok::Packet >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_meta_packet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::Packet > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_create_meta_packet", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_meta_packet" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > *ptr = (std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > *)0;
    int res = swig::asptr(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_create_meta_packet" "', argument " "2"" of type '" "std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > >""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_meta_packet(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Packet > *smartresult = result ? new std::shared_ptr<  sigrok::Packet >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_logic_packet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *arg2 = 0 ;
  size_t arg3 ;
  unsigned int arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  PyObject *swig_obj[4] ;
  std::shared_ptr< sigrok::Packet > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_create_logic_packet", 4, 4, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_logic_packet" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Context_create_logic_packet" "', argument " "2"" of type '" "void *""'"); 
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Context_create_logic_packet" "', argument " "3"" of type '" "size_t""'");
  } 
  arg3 = static_cast< size_t >(val3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Context_create_logic_packet" "', argument " "4"" of type '" "unsigned int""'");
  } 
  arg4 = static_cast< unsigned int >(val4);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_logic_packet(arg2,SWIG_STD_MOVE(arg3),arg4);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Packet > *smartresult = result ? new std::shared_ptr<  sigrok::Packet >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_analog_packet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > arg2 ;
  float *arg3 = 0 ;
  unsigned int arg4 ;
  sigrok::Quantity *arg5 = 0 ;
  sigrok::Unit *arg6 = 0 ;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > arg7 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  unsigned int val4 ;
  int ecode4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  void *argp6 = 0 ;
  int res6 = 0 ;
  PyObject *swig_obj[7] ;
  std::shared_ptr< sigrok::Packet > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_create_analog_packet", 7, 7, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_analog_packet" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *ptr = (std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *)0;
    int res = swig::asptr(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_create_analog_packet" "', argument " "2"" of type '" "std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > >""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_float, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Context_create_analog_packet" "', argument " "3"" of type '" "float *""'"); 
  }
  arg3 = reinterpret_cast< float * >(argp3);
  ecode4 = SWIG_AsVal_unsigned_SS_int(swig_obj[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "Context_create_analog_packet" "', argument " "4"" of type '" "unsigned int""'");
  } 
  arg4 = static_cast< unsigned int >(val4);
  res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_sigrok__Quantity, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Context_create_analog_packet" "', argument " "5"" of type '" "sigrok::Quantity const *""'"); 
  }
  arg5 = reinterpret_cast< sigrok::Quantity * >(argp5);
  res6 = SWIG_ConvertPtr(swig_obj[5], &argp6,SWIGTYPE_p_sigrok__Unit, 0 |  0 );
  if (!SWIG_IsOK(res6)) {
    SWIG_exception_fail(SWIG_ArgError(res6), "in method '" "Context_create_analog_packet" "', argument " "6"" of type '" "sigrok::Unit const *""'"); 
  }
  arg6 = reinterpret_cast< sigrok::Unit * >(argp6);
  {
    std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *ptr = (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *)0;
    int res = swig::asptr(swig_obj[6], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_create_analog_packet" "', argument " "7"" of type '" "std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > >""'"); 
    }
    arg7 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_analog_packet(SWIG_STD_MOVE(arg2),arg3,arg4,(sigrok::Quantity const *)arg5,(sigrok::Unit const *)arg6,SWIG_STD_MOVE(arg7));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Packet > *smartresult = result ? new std::shared_ptr<  sigrok::Packet >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_end_packet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Packet > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_end_packet" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_end_packet();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Packet > *smartresult = result ? new std::shared_ptr<  sigrok::Packet >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_load_session(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::string arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::Session > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_load_session", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_load_session" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_load_session" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->load_session(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Session > *smartresult = result ? new std::shared_ptr<  sigrok::Session >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_create_trigger(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::string arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::Trigger > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_create_trigger", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_create_trigger" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_create_trigger" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->create_trigger(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Trigger > *smartresult = result ? new std::shared_ptr<  sigrok::Trigger >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_open_file(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::string arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::Input > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_open_file", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_open_file" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_open_file" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->open_file(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Input > *smartresult = result ? new std::shared_ptr<  sigrok::Input >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_open_stream(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::string arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::Input > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_open_stream", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_open_stream" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Context_open_stream" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->open_stream(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Input > *smartresult = result ? new std::shared_ptr<  sigrok::Input >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_serials(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  std::shared_ptr< sigrok::Driver > arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context const > tempshared1 ;
  std::shared_ptr< sigrok::Context const > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_serials", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_serials" "', argument " "1"" of type '" "sigrok::Context const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    int newmem = 0;
    res2 = SWIG_ConvertPtrAndOwn(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t,  0 , &newmem);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Context_serials" "', argument " "2"" of type '" "std::shared_ptr< sigrok::Driver >""'");
    }
    if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< sigrok::Driver > * >(argp2));
    if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< sigrok::Driver > * >(argp2);
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Context const *)arg1)->serials(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Context(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Context" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_package_version_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_package_version_get" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Context_package_version_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_lib_version_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_lib_version_get" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Context_lib_version_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_log_level_set(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  sigrok::LogLevel *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context_log_level_set", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_log_level_set" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__LogLevel, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Context_log_level_set" "', argument " "2"" of type '" "sigrok::LogLevel const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::LogLevel * >(argp2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        sigrok_Context_log_level_set(arg1,(sigrok::LogLevel const *)arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context_log_level_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::LogLevel *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context_log_level_get" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::LogLevel *)sigrok_Context_log_level_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__LogLevel, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Context__create_logic_packet_buf(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Context *arg1 = 0 ;
  PyObject *arg2 = 0 ;
  unsigned int arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Context > tempshared1 ;
  std::shared_ptr< sigrok::Context > *smartarg1 = 0 ;
  unsigned int val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  std::shared_ptr< sigrok::Packet > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Context__create_logic_packet_buf", 3, 3, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Context__create_logic_packet_buf" "', argument " "1"" of type '" "sigrok::Context *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Context > * >(argp1);
      arg1 = const_cast< sigrok::Context * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  arg2 = swig_obj[1];
  ecode3 = SWIG_AsVal_unsigned_SS_int(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Context__create_logic_packet_buf" "', argument " "3"" of type '" "unsigned int""'");
  } 
  arg3 = static_cast< unsigned int >(val3);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = sigrok_Context__create_logic_packet_buf(arg1,arg2,arg3);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Packet > *smartresult = result ? new std::shared_ptr<  sigrok::Packet >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Context_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Configurable_config_keys(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable const > tempshared1 ;
  std::shared_ptr< sigrok::Configurable const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Configurable_config_keys" "', argument " "1"" of type '" "sigrok::Configurable const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Configurable const *)arg1)->config_keys();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Configurable_config_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  sigrok::ConfigKey *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable const > tempshared1 ;
  std::shared_ptr< sigrok::Configurable const > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  Glib::VariantBase result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Configurable_config_get", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Configurable_config_get" "', argument " "1"" of type '" "sigrok::Configurable const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Configurable_config_get" "', argument " "2"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::ConfigKey * >(argp2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Configurable const *)arg1)->config_get((sigrok::ConfigKey const *)arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    GValue *value = g_new0(GValue, 1);
    g_value_init(value, G_TYPE_VARIANT);
    g_value_set_variant(value, (&result)->gobj());
    PyObject *variant = pyg_value_as_pyobject(value, true);
    resultobj = PyObject_CallMethod(variant,
      const_cast<char *>("unpack"), nullptr);
    Py_XDECREF(variant);
    g_free(value);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Configurable_config_set__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  sigrok::ConfigKey *arg2 = 0 ;
  Glib::VariantBase *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable > tempshared1 ;
  std::shared_ptr< sigrok::Configurable > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Configurable_config_set" "', argument " "1"" of type '" "sigrok::Configurable *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Configurable_config_set" "', argument " "2"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::ConfigKey * >(argp2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3, SWIGTYPE_p_Glib__VariantBase,  0  | 0);
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Configurable_config_set" "', argument " "3"" of type '" "Glib::VariantBase const &""'"); 
  }
  if (!argp3) {
    SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "Configurable_config_set" "', argument " "3"" of type '" "Glib::VariantBase const &""'"); 
  }
  arg3 = reinterpret_cast< Glib::VariantBase * >(argp3);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->config_set((sigrok::ConfigKey const *)arg2,(Glib::VariantBase const &)*arg3);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Configurable_config_list(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  sigrok::ConfigKey *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable const > tempshared1 ;
  std::shared_ptr< sigrok::Configurable const > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  Glib::VariantContainerBase result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Configurable_config_list", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Configurable_config_list" "', argument " "1"" of type '" "sigrok::Configurable const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Configurable_config_list" "', argument " "2"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::ConfigKey * >(argp2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Configurable const *)arg1)->config_list((sigrok::ConfigKey const *)arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new Glib::VariantContainerBase(result)), SWIGTYPE_p_Glib__VariantContainerBase, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Configurable_config_capabilities(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  sigrok::ConfigKey *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable const > tempshared1 ;
  std::shared_ptr< sigrok::Configurable const > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Configurable_config_capabilities", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Configurable_config_capabilities" "', argument " "1"" of type '" "sigrok::Configurable const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Configurable_config_capabilities" "', argument " "2"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::ConfigKey * >(argp2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Configurable const *)arg1)->config_capabilities((sigrok::ConfigKey const *)arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Configurable_config_check(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  sigrok::ConfigKey *arg2 = 0 ;
  sigrok::Capability *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable const > tempshared1 ;
  std::shared_ptr< sigrok::Configurable const > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[3] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Configurable_config_check", 3, 3, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Configurable_config_check" "', argument " "1"" of type '" "sigrok::Configurable const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Configurable_config_check" "', argument " "2"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::ConfigKey * >(argp2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__Capability, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Configurable_config_check" "', argument " "3"" of type '" "sigrok::Capability const *""'"); 
  }
  arg3 = reinterpret_cast< sigrok::Capability * >(argp3);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)((sigrok::Configurable const *)arg1)->config_check((sigrok::ConfigKey const *)arg2,(sigrok::Capability const *)arg3);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Configurable(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable > tempshared1 ;
  std::shared_ptr< sigrok::Configurable > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Configurable" "', argument " "1"" of type '" "sigrok::Configurable *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Configurable_config_set__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::Configurable *arg1 = 0 ;
  sigrok::ConfigKey *arg2 = 0 ;
  PyObject *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Configurable > tempshared1 ;
  std::shared_ptr< sigrok::Configurable > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Configurable_config_set" "', argument " "1"" of type '" "sigrok::Configurable *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Configurable > * >(argp1);
      arg1 = const_cast< sigrok::Configurable * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Configurable_config_set" "', argument " "2"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::ConfigKey * >(argp2);
  arg3 = swig_obj[2];
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        sigrok_Configurable_config_set__SWIG_1(arg1,(sigrok::ConfigKey const *)arg2,arg3);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Configurable_config_set(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "Configurable_config_set", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        int res = SWIG_ConvertPtr(argv[2], 0, SWIGTYPE_p_Glib__VariantBase, SWIG_POINTER_NO_NULL | 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Configurable_config_set__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      void *vptr = 0;
      int res = SWIG_ConvertPtr(argv[1], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        _v = (argv[2] != 0);
        if (_v) {
          return _wrap_Configurable_config_set__SWIG_1(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Configurable_config_set'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    sigrok::Configurable::config_set(sigrok::ConfigKey const *,Glib::VariantBase const &)\n"
    "    sigrok::Configurable::config_set(sigrok::ConfigKey const *,PyObject *)\n");
  return 0;
}


SWIGINTERN PyObject *Configurable_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Configurable_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Driver_scan_options(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Driver *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Driver const > tempshared1 ;
  std::shared_ptr< sigrok::Driver const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Driver_scan_options" "', argument " "1"" of type '" "sigrok::Driver const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Driver > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Driver const *)arg1)->scan_options();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Driver(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Driver *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Driver > tempshared1 ;
  std::shared_ptr< sigrok::Driver > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Driver" "', argument " "1"" of type '" "sigrok::Driver *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Driver_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Driver *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Driver > tempshared1 ;
  std::shared_ptr< sigrok::Driver > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Driver_name_get" "', argument " "1"" of type '" "sigrok::Driver *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Driver_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Driver_long_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Driver *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Driver > tempshared1 ;
  std::shared_ptr< sigrok::Driver > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Driver_long_name_get" "', argument " "1"" of type '" "sigrok::Driver *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Driver_long_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Driver__scan_kwargs(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Driver *arg1 = 0 ;
  PyObject *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Driver > tempshared1 ;
  std::shared_ptr< sigrok::Driver > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Driver__scan_kwargs", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Driver__scan_kwargs" "', argument " "1"" of type '" "sigrok::Driver *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Driver > * >(argp1);
      arg1 = const_cast< sigrok::Driver * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  arg2 = swig_obj[1];
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = sigrok_Driver__scan_kwargs(arg1,arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Driver_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Device_serial_number(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device const > tempshared1 ;
  std::shared_ptr< sigrok::Device const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_serial_number" "', argument " "1"" of type '" "sigrok::Device const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Device const *)arg1)->serial_number();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device_connection_id(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device const > tempshared1 ;
  std::shared_ptr< sigrok::Device const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_connection_id" "', argument " "1"" of type '" "sigrok::Device const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Device const *)arg1)->connection_id();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device__channels(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device__channels" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->channels();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device__channel_groups(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device__channel_groups" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->channel_groups();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device_open(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_open" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->open();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device_close(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_close" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->close();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Device(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Device" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device_vendor_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_vendor_get" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Device_vendor_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device_model_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_model_get" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Device_model_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Device_version_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Device *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Device > tempshared1 ;
  std::shared_ptr< sigrok::Device > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Device_version_get" "', argument " "1"" of type '" "sigrok::Device *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Device > * >(argp1);
      arg1 = const_cast< sigrok::Device * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Device_version_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Device_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_HardwareDevice(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::HardwareDevice *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::HardwareDevice > tempshared1 ;
  std::shared_ptr< sigrok::HardwareDevice > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_HardwareDevice" "', argument " "1"" of type '" "sigrok::HardwareDevice *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::HardwareDevice > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::HardwareDevice > * >(argp1);
      arg1 = const_cast< sigrok::HardwareDevice * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::HardwareDevice > * >(argp1);
      arg1 = const_cast< sigrok::HardwareDevice * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_HardwareDevice_driver_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::HardwareDevice *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::HardwareDevice > tempshared1 ;
  std::shared_ptr< sigrok::HardwareDevice > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Driver > *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "HardwareDevice_driver_get" "', argument " "1"" of type '" "sigrok::HardwareDevice *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::HardwareDevice > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::HardwareDevice > * >(argp1);
      arg1 = const_cast< sigrok::HardwareDevice * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::HardwareDevice > * >(argp1);
      arg1 = const_cast< sigrok::HardwareDevice * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::shared_ptr< sigrok::Driver > *) &sigrok_HardwareDevice_driver_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Driver > *smartresult = *result ? new std::shared_ptr<  sigrok::Driver >(*result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Driver_t, SWIG_POINTER_OWN);
  }
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *HardwareDevice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__HardwareDevice_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_UserDevice_add_channel(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::UserDevice *arg1 = 0 ;
  unsigned int arg2 ;
  sigrok::ChannelType *arg3 = 0 ;
  std::string arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::UserDevice > tempshared1 ;
  std::shared_ptr< sigrok::UserDevice > *smartarg1 = 0 ;
  unsigned int val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  PyObject *swig_obj[4] ;
  std::shared_ptr< sigrok::Channel > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "UserDevice_add_channel", 4, 4, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__UserDevice_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "UserDevice_add_channel" "', argument " "1"" of type '" "sigrok::UserDevice *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::UserDevice > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::UserDevice > * >(argp1);
      arg1 = const_cast< sigrok::UserDevice * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::UserDevice > * >(argp1);
      arg1 = const_cast< sigrok::UserDevice * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  ecode2 = SWIG_AsVal_unsigned_SS_int(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "UserDevice_add_channel" "', argument " "2"" of type '" "unsigned int""'");
  } 
  arg2 = static_cast< unsigned int >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__ChannelType, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "UserDevice_add_channel" "', argument " "3"" of type '" "sigrok::ChannelType const *""'"); 
  }
  arg3 = reinterpret_cast< sigrok::ChannelType * >(argp3);
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[3], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "UserDevice_add_channel" "', argument " "4"" of type '" "std::string""'"); 
    }
    arg4 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->add_channel(arg2,(sigrok::ChannelType const *)arg3,SWIG_STD_MOVE(arg4));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Channel > *smartresult = result ? new std::shared_ptr<  sigrok::Channel >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_UserDevice(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::UserDevice *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::UserDevice > tempshared1 ;
  std::shared_ptr< sigrok::UserDevice > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__UserDevice_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_UserDevice" "', argument " "1"" of type '" "sigrok::UserDevice *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::UserDevice > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::UserDevice > * >(argp1);
      arg1 = const_cast< sigrok::UserDevice * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::UserDevice > * >(argp1);
      arg1 = const_cast< sigrok::UserDevice * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *UserDevice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__UserDevice_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_Channel(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Channel *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Channel > tempshared1 ;
  std::shared_ptr< sigrok::Channel > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Channel" "', argument " "1"" of type '" "sigrok::Channel *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Channel_name_set(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Channel *arg1 = 0 ;
  std::string *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Channel > tempshared1 ;
  std::shared_ptr< sigrok::Channel > *smartarg1 = 0 ;
  int res2 = SWIG_OLDOBJ ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Channel_name_set", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Channel_name_set" "', argument " "1"" of type '" "sigrok::Channel *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Channel_name_set" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    if (!ptr) {
      SWIG_exception_fail(SWIG_NullReferenceError, "invalid null reference " "in method '" "Channel_name_set" "', argument " "2"" of type '" "std::string const &""'"); 
    }
    arg2 = ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        sigrok_Channel_name_set(arg1,(std::string const &)*arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  if (SWIG_IsNewObj(res2)) delete arg2;
  return resultobj;
fail:
  if (SWIG_IsNewObj(res2)) delete arg2;
  return NULL;
}


SWIGINTERN PyObject *_wrap_Channel_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Channel *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Channel > tempshared1 ;
  std::shared_ptr< sigrok::Channel > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Channel_name_get" "', argument " "1"" of type '" "sigrok::Channel *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Channel_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Channel_enabled_set(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Channel *arg1 = 0 ;
  bool arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Channel > tempshared1 ;
  std::shared_ptr< sigrok::Channel > *smartarg1 = 0 ;
  bool val2 ;
  int ecode2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Channel_enabled_set", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Channel_enabled_set" "', argument " "1"" of type '" "sigrok::Channel *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  ecode2 = SWIG_AsVal_bool(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Channel_enabled_set" "', argument " "2"" of type '" "bool""'");
  } 
  arg2 = static_cast< bool >(val2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        sigrok_Channel_enabled_set(arg1,arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Channel_enabled_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Channel *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Channel > tempshared1 ;
  std::shared_ptr< sigrok::Channel > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Channel_enabled_get" "', argument " "1"" of type '" "sigrok::Channel *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)sigrok_Channel_enabled_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Channel_type_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Channel *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Channel > tempshared1 ;
  std::shared_ptr< sigrok::Channel > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::ChannelType *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Channel_type_get" "', argument " "1"" of type '" "sigrok::Channel *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::ChannelType *)sigrok_Channel_type_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__ChannelType, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Channel_index_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Channel *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Channel > tempshared1 ;
  std::shared_ptr< sigrok::Channel > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  unsigned int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Channel_index_get" "', argument " "1"" of type '" "sigrok::Channel *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Channel > * >(argp1);
      arg1 = const_cast< sigrok::Channel * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (unsigned int)sigrok_Channel_index_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Channel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_ChannelGroup__channels(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ChannelGroup *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::ChannelGroup > tempshared1 ;
  std::shared_ptr< sigrok::ChannelGroup > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroup__channels" "', argument " "1"" of type '" "sigrok::ChannelGroup *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      arg1 = const_cast< sigrok::ChannelGroup * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      arg1 = const_cast< sigrok::ChannelGroup * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->channels();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_ChannelGroup(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ChannelGroup *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::ChannelGroup > tempshared1 ;
  std::shared_ptr< sigrok::ChannelGroup > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ChannelGroup" "', argument " "1"" of type '" "sigrok::ChannelGroup *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      arg1 = const_cast< sigrok::ChannelGroup * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      arg1 = const_cast< sigrok::ChannelGroup * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ChannelGroup_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ChannelGroup *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::ChannelGroup > tempshared1 ;
  std::shared_ptr< sigrok::ChannelGroup > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ChannelGroup_name_get" "', argument " "1"" of type '" "sigrok::ChannelGroup *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      arg1 = const_cast< sigrok::ChannelGroup * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::ChannelGroup > * >(argp1);
      arg1 = const_cast< sigrok::ChannelGroup * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_ChannelGroup_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ChannelGroup_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__ChannelGroup_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Trigger__stages(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Trigger *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Trigger > tempshared1 ;
  std::shared_ptr< sigrok::Trigger > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Trigger__stages" "', argument " "1"" of type '" "sigrok::Trigger *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->stages();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Trigger_add_stage(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Trigger *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Trigger > tempshared1 ;
  std::shared_ptr< sigrok::Trigger > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::TriggerStage > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Trigger_add_stage" "', argument " "1"" of type '" "sigrok::Trigger *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->add_stage();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::TriggerStage > *smartresult = result ? new std::shared_ptr<  sigrok::TriggerStage >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Trigger(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Trigger *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Trigger > tempshared1 ;
  std::shared_ptr< sigrok::Trigger > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Trigger" "', argument " "1"" of type '" "sigrok::Trigger *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Trigger_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Trigger *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Trigger > tempshared1 ;
  std::shared_ptr< sigrok::Trigger > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Trigger_name_get" "', argument " "1"" of type '" "sigrok::Trigger *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Trigger > * >(argp1);
      arg1 = const_cast< sigrok::Trigger * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Trigger_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Trigger_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_TriggerStage__matches(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerStage *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerStage > tempshared1 ;
  std::shared_ptr< sigrok::TriggerStage > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStage__matches" "', argument " "1"" of type '" "sigrok::TriggerStage *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->matches();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStage_add_match__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::TriggerStage *arg1 = 0 ;
  std::shared_ptr< sigrok::Channel > arg2 ;
  sigrok::TriggerMatchType *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerStage > tempshared1 ;
  std::shared_ptr< sigrok::TriggerStage > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStage_add_match" "', argument " "1"" of type '" "sigrok::TriggerStage *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    int newmem = 0;
    res2 = SWIG_ConvertPtrAndOwn(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0 , &newmem);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerStage_add_match" "', argument " "2"" of type '" "std::shared_ptr< sigrok::Channel >""'");
    }
    if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< sigrok::Channel > * >(argp2));
    if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< sigrok::Channel > * >(argp2);
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__TriggerMatchType, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerStage_add_match" "', argument " "3"" of type '" "sigrok::TriggerMatchType const *""'"); 
  }
  arg3 = reinterpret_cast< sigrok::TriggerMatchType * >(argp3);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->add_match(SWIG_STD_MOVE(arg2),(sigrok::TriggerMatchType const *)arg3);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStage_add_match__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::TriggerStage *arg1 = 0 ;
  std::shared_ptr< sigrok::Channel > arg2 ;
  sigrok::TriggerMatchType *arg3 = 0 ;
  float arg4 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerStage > tempshared1 ;
  std::shared_ptr< sigrok::TriggerStage > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  float val4 ;
  int ecode4 = 0 ;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStage_add_match" "', argument " "1"" of type '" "sigrok::TriggerStage *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    int newmem = 0;
    res2 = SWIG_ConvertPtrAndOwn(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t,  0 , &newmem);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "TriggerStage_add_match" "', argument " "2"" of type '" "std::shared_ptr< sigrok::Channel >""'");
    }
    if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< sigrok::Channel > * >(argp2));
    if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< sigrok::Channel > * >(argp2);
  }
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_sigrok__TriggerMatchType, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "TriggerStage_add_match" "', argument " "3"" of type '" "sigrok::TriggerMatchType const *""'"); 
  }
  arg3 = reinterpret_cast< sigrok::TriggerMatchType * >(argp3);
  ecode4 = SWIG_AsVal_float(swig_obj[3], &val4);
  if (!SWIG_IsOK(ecode4)) {
    SWIG_exception_fail(SWIG_ArgError(ecode4), "in method '" "TriggerStage_add_match" "', argument " "4"" of type '" "float""'");
  } 
  arg4 = static_cast< float >(val4);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->add_match(SWIG_STD_MOVE(arg2),(sigrok::TriggerMatchType const *)arg3,arg4);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStage_add_match(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[5] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "TriggerStage_add_match", 0, 4, argv))) SWIG_fail;
  --argc;
  if (argc == 3) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__TriggerMatchType, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_TriggerStage_add_match__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  if (argc == 4) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_ConvertPtr(argv[1], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, 0);
      _v = SWIG_CheckState(res);
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_sigrok__TriggerMatchType, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          {
            int res = SWIG_AsVal_float(argv[3], NULL);
            _v = SWIG_CheckState(res);
          }
          if (_v) {
            return _wrap_TriggerStage_add_match__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'TriggerStage_add_match'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    sigrok::TriggerStage::add_match(std::shared_ptr< sigrok::Channel >,sigrok::TriggerMatchType const *)\n"
    "    sigrok::TriggerStage::add_match(std::shared_ptr< sigrok::Channel >,sigrok::TriggerMatchType const *,float)\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_TriggerStage(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerStage *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerStage > tempshared1 ;
  std::shared_ptr< sigrok::TriggerStage > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TriggerStage" "', argument " "1"" of type '" "sigrok::TriggerStage *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerStage_number_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerStage *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerStage > tempshared1 ;
  std::shared_ptr< sigrok::TriggerStage > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerStage_number_get" "', argument " "1"" of type '" "sigrok::TriggerStage *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerStage > * >(argp1);
      arg1 = const_cast< sigrok::TriggerStage * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (int)sigrok_TriggerStage_number_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TriggerStage_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerStage_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_TriggerMatch(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerMatch *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerMatch > tempshared1 ;
  std::shared_ptr< sigrok::TriggerMatch > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TriggerMatch" "', argument " "1"" of type '" "sigrok::TriggerMatch *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatch_channel_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerMatch *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerMatch > tempshared1 ;
  std::shared_ptr< sigrok::TriggerMatch > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Channel > *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatch_channel_get" "', argument " "1"" of type '" "sigrok::TriggerMatch *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::shared_ptr< sigrok::Channel > *) &sigrok_TriggerMatch_channel_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Channel > *smartresult = *result ? new std::shared_ptr<  sigrok::Channel >(*result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Channel_t, SWIG_POINTER_OWN);
  }
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatch_type_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerMatch *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerMatch > tempshared1 ;
  std::shared_ptr< sigrok::TriggerMatch > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::TriggerMatchType *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatch_type_get" "', argument " "1"" of type '" "sigrok::TriggerMatch *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::TriggerMatchType *)sigrok_TriggerMatch_type_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__TriggerMatchType, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_TriggerMatch_value_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerMatch *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::TriggerMatch > tempshared1 ;
  std::shared_ptr< sigrok::TriggerMatch > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  float result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "TriggerMatch_value_get" "', argument " "1"" of type '" "sigrok::TriggerMatch *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::TriggerMatch > * >(argp1);
      arg1 = const_cast< sigrok::TriggerMatch * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (float)sigrok_TriggerMatch_value_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_float(static_cast< float >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TriggerMatch_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__TriggerMatch_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_SessionDevice(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::SessionDevice *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::SessionDevice > tempshared1 ;
  std::shared_ptr< sigrok::SessionDevice > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__SessionDevice_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_SessionDevice" "', argument " "1"" of type '" "sigrok::SessionDevice *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::SessionDevice > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::SessionDevice > * >(argp1);
      arg1 = const_cast< sigrok::SessionDevice * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::SessionDevice > * >(argp1);
      arg1 = const_cast< sigrok::SessionDevice * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *SessionDevice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__SessionDevice_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Session_add_device(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  std::shared_ptr< sigrok::Device > arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Session_add_device", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_add_device" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    int newmem = 0;
    res2 = SWIG_ConvertPtrAndOwn(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0 , &newmem);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_add_device" "', argument " "2"" of type '" "std::shared_ptr< sigrok::Device >""'");
    }
    if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< sigrok::Device > * >(argp2));
    if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< sigrok::Device > * >(argp2);
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->add_device(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session__devices(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session__devices" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->devices();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_remove_devices(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_remove_devices" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->remove_devices();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_add_datafeed_callback(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  SwigValueWrapper< std::function< void (std::shared_ptr< sigrok::Device >,std::shared_ptr< sigrok::Packet >) > > arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Session_add_datafeed_callback", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_add_datafeed_callback" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    if (!PyCallable_Check(swig_obj[1]))
    SWIG_exception(SWIG_TypeError, "Expected a callable Python object");
    
    arg2 = [=] (std::shared_ptr<sigrok::Device> device,
      std::shared_ptr<sigrok::Packet> packet) {
      auto gstate = PyGILState_Ensure();
      
      auto device_obj = SWIG_NewPointerObj(
        SWIG_as_voidptr(new std::shared_ptr<sigrok::Device>(device)),
        SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t, SWIG_POINTER_OWN);
      
      auto packet_obj = SWIG_NewPointerObj(
        SWIG_as_voidptr(new std::shared_ptr<sigrok::Packet>(packet)),
        SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_POINTER_OWN);
      
      auto arglist = Py_BuildValue("(OO)", device_obj, packet_obj);
      
      auto result = PyObject_CallObject(swig_obj[1], arglist);
      
      Py_XDECREF(arglist);
      Py_XDECREF(device_obj);
      Py_XDECREF(packet_obj);
      
      bool completed = !PyErr_Occurred();
      
      if (!completed)
      PyErr_Print();
      
      bool valid_result = (completed && result == Py_None);
      
      Py_XDECREF(result);
      
      if (completed && !valid_result)
      {
        PyErr_SetString(PyExc_TypeError,
          "Datafeed callback did not return None");
        PyErr_Print();
      }
      
      PyGILState_Release(gstate);
      
      if (!valid_result)
      throw sigrok::Error(SR_ERR);
    };
    
    Py_XINCREF(swig_obj[1]);
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->add_datafeed_callback(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_remove_datafeed_callbacks(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_remove_datafeed_callbacks" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->remove_datafeed_callbacks();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_start(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_start" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->start();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_run(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_run" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->run();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_stop(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_stop" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->stop();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_is_running(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session const > tempshared1 ;
  std::shared_ptr< sigrok::Session const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_is_running" "', argument " "1"" of type '" "sigrok::Session const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)((sigrok::Session const *)arg1)->is_running();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_set_stopped_callback(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  sigrok::SessionStoppedCallback arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Session_set_stopped_callback", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_set_stopped_callback" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    if (!PyCallable_Check(swig_obj[1]))
    SWIG_exception(SWIG_TypeError, "Expected a callable Python object");
    
    arg2 = [=] () {
      const auto gstate = PyGILState_Ensure();
      
      const auto result = PyObject_CallObject(swig_obj[1], nullptr);
      const bool completed = !PyErr_Occurred();
      const bool valid_result = (completed && result == Py_None);
      
      if (completed && !valid_result) {
        PyErr_SetString(PyExc_TypeError,
          "Session stop callback did not return None");
      }
      if (!valid_result)
      PyErr_Print();
      
      Py_XDECREF(result);
      PyGILState_Release(gstate);
      
      if (!valid_result)
      throw sigrok::Error(SR_ERR);
    };
    
    Py_XINCREF(swig_obj[1]);
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->set_stopped_callback(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_context(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Context > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_context" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->context();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Context > *smartresult = result ? new std::shared_ptr<  sigrok::Context >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Context_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Session(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Session" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_trigger_set(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  std::shared_ptr< sigrok::Trigger > *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  std::shared_ptr< sigrok::Trigger > tempshared2 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Session_trigger_set", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_trigger_set" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    int newmem = 0;
    res2 = SWIG_ConvertPtrAndOwn(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t,  0 , &newmem);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Session_trigger_set" "', argument " "2"" of type '" "std::shared_ptr< sigrok::Trigger > const &""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      if (argp2) tempshared2 = *reinterpret_cast< std::shared_ptr< sigrok::Trigger > * >(argp2);
      delete reinterpret_cast< std::shared_ptr< sigrok::Trigger > * >(argp2);
      arg2 = &tempshared2;
    } else {
      arg2 = (argp2) ? reinterpret_cast< std::shared_ptr< sigrok::Trigger > * >(argp2) : &tempshared2;
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        sigrok_Session_trigger_set(arg1,(std::shared_ptr< sigrok::Trigger > const &)*arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_trigger_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Trigger > *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_trigger_get" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::shared_ptr< sigrok::Trigger > *) &sigrok_Session_trigger_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Trigger > *smartresult = *result ? new std::shared_ptr<  sigrok::Trigger >(*result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Trigger_t, SWIG_POINTER_OWN);
  }
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Session_filename_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Session *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Session > tempshared1 ;
  std::shared_ptr< sigrok::Session > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Session_filename_get" "', argument " "1"" of type '" "sigrok::Session *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Session > * >(argp1);
      arg1 = const_cast< sigrok::Session * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Session_filename_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Session_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Session_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_Packet(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Packet *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Packet > tempshared1 ;
  std::shared_ptr< sigrok::Packet > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Packet" "', argument " "1"" of type '" "sigrok::Packet *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Packet__payload_header(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Packet *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Packet > tempshared1 ;
  std::shared_ptr< sigrok::Packet > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Header > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet__payload_header" "', argument " "1"" of type '" "sigrok::Packet *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = sigrok_Packet__payload_header(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  {
    std::shared_ptr<  sigrok::Header > *smartresult = result ? new std::shared_ptr<  sigrok::Header >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Header_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Packet__payload_meta(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Packet *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Packet > tempshared1 ;
  std::shared_ptr< sigrok::Packet > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Meta > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet__payload_meta" "', argument " "1"" of type '" "sigrok::Packet *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = sigrok_Packet__payload_meta(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  {
    std::shared_ptr<  sigrok::Meta > *smartresult = result ? new std::shared_ptr<  sigrok::Meta >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Meta_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Packet__payload_analog(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Packet *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Packet > tempshared1 ;
  std::shared_ptr< sigrok::Packet > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Analog > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet__payload_analog" "', argument " "1"" of type '" "sigrok::Packet *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = sigrok_Packet__payload_analog(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  {
    std::shared_ptr<  sigrok::Analog > *smartresult = result ? new std::shared_ptr<  sigrok::Analog >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Packet__payload_logic(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Packet *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Packet > tempshared1 ;
  std::shared_ptr< sigrok::Packet > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::Logic > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet__payload_logic" "', argument " "1"" of type '" "sigrok::Packet *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    SWIG_PYTHON_THREAD_BEGIN_ALLOW;
    result = sigrok_Packet__payload_logic(arg1);
    SWIG_PYTHON_THREAD_END_ALLOW;
  }
  {
    std::shared_ptr<  sigrok::Logic > *smartresult = result ? new std::shared_ptr<  sigrok::Logic >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Packet_type_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Packet *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Packet > tempshared1 ;
  std::shared_ptr< sigrok::Packet > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::PacketType *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Packet_type_get" "', argument " "1"" of type '" "sigrok::Packet *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Packet > * >(argp1);
      arg1 = const_cast< sigrok::Packet * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::PacketType *)sigrok_Packet_type_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__PacketType, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Packet_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_PacketPayload(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::PacketPayload *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::PacketPayload > tempshared1 ;
  std::shared_ptr< sigrok::PacketPayload > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__PacketPayload_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PacketPayload" "', argument " "1"" of type '" "sigrok::PacketPayload *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::PacketPayload > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::PacketPayload > * >(argp1);
      arg1 = const_cast< sigrok::PacketPayload * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::PacketPayload > * >(argp1);
      arg1 = const_cast< sigrok::PacketPayload * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PacketPayload_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__PacketPayload_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Header_feed_version(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Header *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Header const > tempshared1 ;
  std::shared_ptr< sigrok::Header const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Header_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Header_feed_version" "', argument " "1"" of type '" "sigrok::Header const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Header > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Header > * >(argp1);
      arg1 = const_cast< sigrok::Header * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Header > * >(argp1);
      arg1 = const_cast< sigrok::Header * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (int)((sigrok::Header const *)arg1)->feed_version();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Header_start_time(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Header *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Header const > tempshared1 ;
  std::shared_ptr< sigrok::Header const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  Glib::TimeVal result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Header_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Header_start_time" "', argument " "1"" of type '" "sigrok::Header const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Header > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Header > * >(argp1);
      arg1 = const_cast< sigrok::Header * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Header > * >(argp1);
      arg1 = const_cast< sigrok::Header * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Header const *)arg1)->start_time();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new Glib::TimeVal(result)), SWIGTYPE_p_Glib__TimeVal, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Header(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Header *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Header > tempshared1 ;
  std::shared_ptr< sigrok::Header > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Header_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Header" "', argument " "1"" of type '" "sigrok::Header *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Header > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Header > * >(argp1);
      arg1 = const_cast< sigrok::Header * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Header > * >(argp1);
      arg1 = const_cast< sigrok::Header * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Header_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Header_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Meta__config(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Meta *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Meta const > tempshared1 ;
  std::shared_ptr< sigrok::Meta const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Meta_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Meta__config" "', argument " "1"" of type '" "sigrok::Meta const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Meta > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Meta > * >(argp1);
      arg1 = const_cast< sigrok::Meta * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Meta > * >(argp1);
      arg1 = const_cast< sigrok::Meta * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Meta const *)arg1)->config();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Meta(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Meta *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Meta > tempshared1 ;
  std::shared_ptr< sigrok::Meta > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Meta_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Meta" "', argument " "1"" of type '" "sigrok::Meta *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Meta > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Meta > * >(argp1);
      arg1 = const_cast< sigrok::Meta * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Meta > * >(argp1);
      arg1 = const_cast< sigrok::Meta * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Meta_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Meta_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Logic_data_pointer(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Logic *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Logic > tempshared1 ;
  std::shared_ptr< sigrok::Logic > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  void *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logic_data_pointer" "', argument " "1"" of type '" "sigrok::Logic *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (void *)(arg1)->data_pointer();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Logic_data_length(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Logic *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Logic const > tempshared1 ;
  std::shared_ptr< sigrok::Logic const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  size_t result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logic_data_length" "', argument " "1"" of type '" "sigrok::Logic const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Logic > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Logic const *)arg1)->data_length();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_size_t(static_cast< size_t >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Logic_unit_size(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Logic *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Logic const > tempshared1 ;
  std::shared_ptr< sigrok::Logic const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  unsigned int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logic_unit_size" "', argument " "1"" of type '" "sigrok::Logic const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Logic > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (unsigned int)((sigrok::Logic const *)arg1)->unit_size();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Logic(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Logic *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Logic > tempshared1 ;
  std::shared_ptr< sigrok::Logic > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Logic" "', argument " "1"" of type '" "sigrok::Logic *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Logic__data(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Logic *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Logic > tempshared1 ;
  std::shared_ptr< sigrok::Logic > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Logic__data" "', argument " "1"" of type '" "sigrok::Logic *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Logic > * >(argp1);
      arg1 = const_cast< sigrok::Logic * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (PyObject *)sigrok_Logic__data(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Logic_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Analog_data_pointer(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  void *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_data_pointer" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (void *)(arg1)->data_pointer();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_void, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_get_data_as_float(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  float *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Analog_get_data_as_float", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_get_data_as_float" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_float, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Analog_get_data_as_float" "', argument " "2"" of type '" "float *""'"); 
  }
  arg2 = reinterpret_cast< float * >(argp2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->get_data_as_float(arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog__channels(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog__channels" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->channels();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_unitsize(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  unsigned int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_unitsize" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (unsigned int)((sigrok::Analog const *)arg1)->unitsize();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_is_signed(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_is_signed" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)((sigrok::Analog const *)arg1)->is_signed();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_is_float(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_is_float" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)((sigrok::Analog const *)arg1)->is_float();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_is_bigendian(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_is_bigendian" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)((sigrok::Analog const *)arg1)->is_bigendian();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_digits(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_digits" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (int)((sigrok::Analog const *)arg1)->digits();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_is_digits_decimal(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  bool result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_is_digits_decimal" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)((sigrok::Analog const *)arg1)->is_digits_decimal();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_scale(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::shared_ptr< sigrok::Rational > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_scale" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->scale();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new std::shared_ptr< sigrok::Rational >(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__Rational_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_offset(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::shared_ptr< sigrok::Rational > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_offset" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->offset();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new std::shared_ptr< sigrok::Rational >(result)), SWIGTYPE_p_std__shared_ptrT_sigrok__Rational_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog__mq_flags(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog__mq_flags" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Analog const *)arg1)->mq_flags();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_get_logic_via_threshold__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  float arg2 ;
  uint8_t *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  void *argp3 = 0 ;
  int res3 = 0 ;
  std::shared_ptr< sigrok::Logic > result;
  
  (void)self;
  if ((nobjs < 3) || (nobjs > 3)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_get_logic_via_threshold" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Analog_get_logic_via_threshold" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = static_cast< float >(val2);
  res3 = SWIG_ConvertPtr(swig_obj[2], &argp3,SWIGTYPE_p_uint8_t, 0 |  0 );
  if (!SWIG_IsOK(res3)) {
    SWIG_exception_fail(SWIG_ArgError(res3), "in method '" "Analog_get_logic_via_threshold" "', argument " "3"" of type '" "uint8_t *""'"); 
  }
  arg3 = reinterpret_cast< uint8_t * >(argp3);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Analog const *)arg1)->get_logic_via_threshold(arg2,arg3);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Logic > *smartresult = result ? new std::shared_ptr<  sigrok::Logic >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_get_logic_via_threshold__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  float arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  std::shared_ptr< sigrok::Logic > result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_get_logic_via_threshold" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Analog_get_logic_via_threshold" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = static_cast< float >(val2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Analog const *)arg1)->get_logic_via_threshold(arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Logic > *smartresult = result ? new std::shared_ptr<  sigrok::Logic >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_get_logic_via_threshold(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[4] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "Analog_get_logic_via_threshold", 0, 3, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_Analog_get_logic_via_threshold__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 3) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        void *vptr = 0;
        int res = SWIG_ConvertPtr(argv[2], &vptr, SWIGTYPE_p_uint8_t, 0);
        _v = SWIG_CheckState(res);
        if (_v) {
          return _wrap_Analog_get_logic_via_threshold__SWIG_0(self, argc, argv);
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Analog_get_logic_via_threshold'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    sigrok::Analog::get_logic_via_threshold(float,uint8_t *) const\n"
    "    sigrok::Analog::get_logic_via_threshold(float) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_Analog_get_logic_via_schmitt_trigger__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  float arg2 ;
  float arg3 ;
  uint8_t *arg4 = 0 ;
  uint8_t *arg5 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  void *argp5 = 0 ;
  int res5 = 0 ;
  std::shared_ptr< sigrok::Logic > result;
  
  (void)self;
  if ((nobjs < 5) || (nobjs > 5)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = static_cast< float >(val2);
  ecode3 = SWIG_AsVal_float(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = static_cast< float >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_uint8_t, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "4"" of type '" "uint8_t *""'"); 
  }
  arg4 = reinterpret_cast< uint8_t * >(argp4);
  res5 = SWIG_ConvertPtr(swig_obj[4], &argp5,SWIGTYPE_p_uint8_t, 0 |  0 );
  if (!SWIG_IsOK(res5)) {
    SWIG_exception_fail(SWIG_ArgError(res5), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "5"" of type '" "uint8_t *""'"); 
  }
  arg5 = reinterpret_cast< uint8_t * >(argp5);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Analog const *)arg1)->get_logic_via_schmitt_trigger(arg2,arg3,arg4,arg5);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Logic > *smartresult = result ? new std::shared_ptr<  sigrok::Logic >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_get_logic_via_schmitt_trigger__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  float arg2 ;
  float arg3 ;
  uint8_t *arg4 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog const > tempshared1 ;
  std::shared_ptr< sigrok::Analog const > *smartarg1 = 0 ;
  float val2 ;
  int ecode2 = 0 ;
  float val3 ;
  int ecode3 = 0 ;
  void *argp4 = 0 ;
  int res4 = 0 ;
  std::shared_ptr< sigrok::Logic > result;
  
  (void)self;
  if ((nobjs < 4) || (nobjs > 4)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "1"" of type '" "sigrok::Analog const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  ecode2 = SWIG_AsVal_float(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "2"" of type '" "float""'");
  } 
  arg2 = static_cast< float >(val2);
  ecode3 = SWIG_AsVal_float(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "3"" of type '" "float""'");
  } 
  arg3 = static_cast< float >(val3);
  res4 = SWIG_ConvertPtr(swig_obj[3], &argp4,SWIGTYPE_p_uint8_t, 0 |  0 );
  if (!SWIG_IsOK(res4)) {
    SWIG_exception_fail(SWIG_ArgError(res4), "in method '" "Analog_get_logic_via_schmitt_trigger" "', argument " "4"" of type '" "uint8_t *""'"); 
  }
  arg4 = reinterpret_cast< uint8_t * >(argp4);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Analog const *)arg1)->get_logic_via_schmitt_trigger(arg2,arg3,arg4);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Logic > *smartresult = result ? new std::shared_ptr<  sigrok::Logic >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Logic_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_get_logic_via_schmitt_trigger(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[6] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "Analog_get_logic_via_schmitt_trigger", 0, 5, argv))) SWIG_fail;
  --argc;
  if (argc == 4) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_uint8_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            return _wrap_Analog_get_logic_via_schmitt_trigger__SWIG_1(self, argc, argv);
          }
        }
      }
    }
  }
  if (argc == 5) {
    int _v = 0;
    int res = SWIG_ConvertPtr(argv[0], 0, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_float(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        {
          int res = SWIG_AsVal_float(argv[2], NULL);
          _v = SWIG_CheckState(res);
        }
        if (_v) {
          void *vptr = 0;
          int res = SWIG_ConvertPtr(argv[3], &vptr, SWIGTYPE_p_uint8_t, 0);
          _v = SWIG_CheckState(res);
          if (_v) {
            void *vptr = 0;
            int res = SWIG_ConvertPtr(argv[4], &vptr, SWIGTYPE_p_uint8_t, 0);
            _v = SWIG_CheckState(res);
            if (_v) {
              return _wrap_Analog_get_logic_via_schmitt_trigger__SWIG_0(self, argc, argv);
            }
          }
        }
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'Analog_get_logic_via_schmitt_trigger'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    sigrok::Analog::get_logic_via_schmitt_trigger(float,float,uint8_t *,uint8_t *) const\n"
    "    sigrok::Analog::get_logic_via_schmitt_trigger(float,float,uint8_t *) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_Analog(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Analog" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_num_samples_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_num_samples_get" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (int)sigrok_Analog_num_samples_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_int(static_cast< int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_mq_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::Quantity *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_mq_get" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::Quantity *)sigrok_Analog_mq_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Quantity, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog_unit_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::Unit *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog_unit_get" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::Unit *)sigrok_Analog_unit_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__Unit, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Analog__data(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Analog *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Analog > tempshared1 ;
  std::shared_ptr< sigrok::Analog > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  PyObject *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Analog__data" "', argument " "1"" of type '" "sigrok::Analog *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Analog > * >(argp1);
      arg1 = const_cast< sigrok::Analog * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (PyObject *)sigrok_Analog__data(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = result;
  if (!resultobj) SWIG_fail;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Analog_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Analog_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Rational_numerator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Rational *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  int64_t result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Rational, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rational_numerator" "', argument " "1"" of type '" "sigrok::Rational const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Rational * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Rational const *)arg1)->numerator();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new int64_t(result)), SWIGTYPE_p_int64_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Rational_denominator(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Rational *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  uint64_t result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Rational, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rational_denominator" "', argument " "1"" of type '" "sigrok::Rational const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Rational * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Rational const *)arg1)->denominator();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new uint64_t(result)), SWIGTYPE_p_uint64_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Rational_value(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Rational *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  float result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Rational, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Rational_value" "', argument " "1"" of type '" "sigrok::Rational const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Rational * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (float)((sigrok::Rational const *)arg1)->value();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_float(static_cast< float >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Rational_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__Rational, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_InputFormat_extensions(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::InputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::InputFormat const > tempshared1 ;
  std::shared_ptr< sigrok::InputFormat const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::vector< std::string,std::allocator< std::string > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormat_extensions" "', argument " "1"" of type '" "sigrok::InputFormat const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::InputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::InputFormat const *)arg1)->extensions();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::string,std::allocator< std::string > >(result)), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormat_options(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::InputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::InputFormat > tempshared1 ;
  std::shared_ptr< sigrok::InputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormat_options" "', argument " "1"" of type '" "sigrok::InputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->options();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_InputFormat(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::InputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::InputFormat > tempshared1 ;
  std::shared_ptr< sigrok::InputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InputFormat" "', argument " "1"" of type '" "sigrok::InputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormat_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::InputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::InputFormat > tempshared1 ;
  std::shared_ptr< sigrok::InputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormat_name_get" "', argument " "1"" of type '" "sigrok::InputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_InputFormat_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormat_description_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::InputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::InputFormat > tempshared1 ;
  std::shared_ptr< sigrok::InputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormat_description_get" "', argument " "1"" of type '" "sigrok::InputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_InputFormat_description_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_InputFormat__create_input_kwargs(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::InputFormat *arg1 = 0 ;
  PyObject *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::InputFormat > tempshared1 ;
  std::shared_ptr< sigrok::InputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  std::shared_ptr< sigrok::Input > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "InputFormat__create_input_kwargs", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "InputFormat__create_input_kwargs" "', argument " "1"" of type '" "sigrok::InputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::InputFormat > * >(argp1);
      arg1 = const_cast< sigrok::InputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  arg2 = swig_obj[1];
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = sigrok_InputFormat__create_input_kwargs(arg1,arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Input > *smartresult = result ? new std::shared_ptr<  sigrok::Input >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InputFormat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__InputFormat_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Input_send(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Input *arg1 = 0 ;
  void *arg2 = 0 ;
  size_t arg3 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Input > tempshared1 ;
  std::shared_ptr< sigrok::Input > *smartarg1 = 0 ;
  int res2 ;
  size_t val3 ;
  int ecode3 = 0 ;
  PyObject *swig_obj[3] ;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Input_send", 3, 3, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Input_send" "', argument " "1"" of type '" "sigrok::Input *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1],SWIG_as_voidptrptr(&arg2), 0, 0);
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Input_send" "', argument " "2"" of type '" "void *""'"); 
  }
  ecode3 = SWIG_AsVal_size_t(swig_obj[2], &val3);
  if (!SWIG_IsOK(ecode3)) {
    SWIG_exception_fail(SWIG_ArgError(ecode3), "in method '" "Input_send" "', argument " "3"" of type '" "size_t""'");
  } 
  arg3 = static_cast< size_t >(val3);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->send(arg2,SWIG_STD_MOVE(arg3));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Input_end(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Input *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Input > tempshared1 ;
  std::shared_ptr< sigrok::Input > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Input_end" "', argument " "1"" of type '" "sigrok::Input *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->end();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Input_reset(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Input *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Input > tempshared1 ;
  std::shared_ptr< sigrok::Input > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Input_reset" "', argument " "1"" of type '" "sigrok::Input *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (arg1)->reset();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Input(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Input *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Input > tempshared1 ;
  std::shared_ptr< sigrok::Input > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Input" "', argument " "1"" of type '" "sigrok::Input *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Input_device_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Input *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Input > tempshared1 ;
  std::shared_ptr< sigrok::Input > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::InputDevice > *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Input_device_get" "', argument " "1"" of type '" "sigrok::Input *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Input > * >(argp1);
      arg1 = const_cast< sigrok::Input * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::shared_ptr< sigrok::InputDevice > *) &sigrok_Input_device_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::InputDevice > *smartresult = *result ? new std::shared_ptr<  sigrok::InputDevice >(*result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__InputDevice_t, SWIG_POINTER_OWN);
  }
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Input_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Input_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_delete_InputDevice(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::InputDevice *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::InputDevice > tempshared1 ;
  std::shared_ptr< sigrok::InputDevice > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__InputDevice_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_InputDevice" "', argument " "1"" of type '" "sigrok::InputDevice *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::InputDevice > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::InputDevice > * >(argp1);
      arg1 = const_cast< sigrok::InputDevice * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::InputDevice > * >(argp1);
      arg1 = const_cast< sigrok::InputDevice * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *InputDevice_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__InputDevice_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Option_default_value(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Option *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Option const > tempshared1 ;
  std::shared_ptr< sigrok::Option const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  Glib::VariantBase result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Option_default_value" "', argument " "1"" of type '" "sigrok::Option const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Option > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Option const *)arg1)->default_value();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    GValue *value = g_new0(GValue, 1);
    g_value_init(value, G_TYPE_VARIANT);
    g_value_set_variant(value, (&result)->gobj());
    PyObject *variant = pyg_value_as_pyobject(value, true);
    resultobj = PyObject_CallMethod(variant,
      const_cast<char *>("unpack"), nullptr);
    Py_XDECREF(variant);
    g_free(value);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Option__values(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Option *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Option const > tempshared1 ;
  std::shared_ptr< sigrok::Option const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Option__values" "', argument " "1"" of type '" "sigrok::Option const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::Option > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::Option const *)arg1)->values();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Option_parse_string(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Option *arg1 = 0 ;
  std::string arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Option > tempshared1 ;
  std::shared_ptr< sigrok::Option > *smartarg1 = 0 ;
  PyObject *swig_obj[2] ;
  Glib::VariantBase result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Option_parse_string", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Option_parse_string" "', argument " "1"" of type '" "sigrok::Option *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "Option_parse_string" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->parse_string(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    GValue *value = g_new0(GValue, 1);
    g_value_init(value, G_TYPE_VARIANT);
    g_value_set_variant(value, (&result)->gobj());
    PyObject *variant = pyg_value_as_pyobject(value, true);
    resultobj = PyObject_CallMethod(variant,
      const_cast<char *>("unpack"), nullptr);
    Py_XDECREF(variant);
    g_free(value);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Option(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Option *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Option > tempshared1 ;
  std::shared_ptr< sigrok::Option > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Option" "', argument " "1"" of type '" "sigrok::Option *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Option_id_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Option *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Option > tempshared1 ;
  std::shared_ptr< sigrok::Option > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Option_id_get" "', argument " "1"" of type '" "sigrok::Option *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Option_id_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Option_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Option *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Option > tempshared1 ;
  std::shared_ptr< sigrok::Option > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Option_name_get" "', argument " "1"" of type '" "sigrok::Option *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Option_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Option_description_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Option *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Option > tempshared1 ;
  std::shared_ptr< sigrok::Option > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Option_description_get" "', argument " "1"" of type '" "sigrok::Option *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Option > * >(argp1);
      arg1 = const_cast< sigrok::Option * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_Option_description_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Option_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Option_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_OutputFormat_extensions(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::OutputFormat const > tempshared1 ;
  std::shared_ptr< sigrok::OutputFormat const > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  SwigValueWrapper< std::vector< std::string,std::allocator< std::string > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormat_extensions" "', argument " "1"" of type '" "sigrok::OutputFormat const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::OutputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::OutputFormat const *)arg1)->extensions();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj((new std::vector< std::string,std::allocator< std::string > >(result)), SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t, SWIG_POINTER_OWN |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormat__options(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::OutputFormat > tempshared1 ;
  std::shared_ptr< sigrok::OutputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormat__options" "', argument " "1"" of type '" "sigrok::OutputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->options();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormat_test_flag(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFormat *arg1 = 0 ;
  sigrok::OutputFlag *arg2 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::OutputFormat const > tempshared1 ;
  std::shared_ptr< sigrok::OutputFormat const > *smartarg1 = 0 ;
  void *argp2 = 0 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  bool result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormat_test_flag", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormat_test_flag" "', argument " "1"" of type '" "sigrok::OutputFormat const *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr< const sigrok::OutputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr< const sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr< const sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  res2 = SWIG_ConvertPtr(swig_obj[1], &argp2,SWIGTYPE_p_sigrok__OutputFlag, 0 |  0 );
  if (!SWIG_IsOK(res2)) {
    SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormat_test_flag" "', argument " "2"" of type '" "sigrok::OutputFlag const *""'"); 
  }
  arg2 = reinterpret_cast< sigrok::OutputFlag * >(argp2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (bool)((sigrok::OutputFormat const *)arg1)->test_flag((sigrok::OutputFlag const *)arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_bool(static_cast< bool >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_OutputFormat(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::OutputFormat > tempshared1 ;
  std::shared_ptr< sigrok::OutputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OutputFormat" "', argument " "1"" of type '" "sigrok::OutputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormat_name_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::OutputFormat > tempshared1 ;
  std::shared_ptr< sigrok::OutputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormat_name_get" "', argument " "1"" of type '" "sigrok::OutputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_OutputFormat_name_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormat_description_get(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFormat *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::OutputFormat > tempshared1 ;
  std::shared_ptr< sigrok::OutputFormat > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormat_description_get" "', argument " "1"" of type '" "sigrok::OutputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (std::string *) &sigrok_OutputFormat_description_get(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
  delete result;
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_OutputFormat__create_output_kwargs(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFormat *arg1 = 0 ;
  std::shared_ptr< sigrok::Device > arg2 ;
  PyObject *arg3 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::OutputFormat > tempshared1 ;
  std::shared_ptr< sigrok::OutputFormat > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject *swig_obj[3] ;
  std::shared_ptr< sigrok::Output > result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "OutputFormat__create_output_kwargs", 3, 3, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "OutputFormat__create_output_kwargs" "', argument " "1"" of type '" "sigrok::OutputFormat *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::OutputFormat > * >(argp1);
      arg1 = const_cast< sigrok::OutputFormat * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    int newmem = 0;
    res2 = SWIG_ConvertPtrAndOwn(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Device_t,  0 , &newmem);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "OutputFormat__create_output_kwargs" "', argument " "2"" of type '" "std::shared_ptr< sigrok::Device >""'");
    }
    if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< sigrok::Device > * >(argp2));
    if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< sigrok::Device > * >(argp2);
  }
  arg3 = swig_obj[2];
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = sigrok_OutputFormat__create_output_kwargs(arg1,SWIG_STD_MOVE(arg2),arg3);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::Output > *smartresult = result ? new std::shared_ptr<  sigrok::Output >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__Output_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OutputFormat_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN PyObject *_wrap_Output_receive(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Output *arg1 = 0 ;
  std::shared_ptr< sigrok::Packet > arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Output > tempshared1 ;
  std::shared_ptr< sigrok::Output > *smartarg1 = 0 ;
  void *argp2 ;
  int res2 = 0 ;
  PyObject *swig_obj[2] ;
  std::string result;
  
  (void)self;
  if (!SWIG_Python_UnpackTuple(args, "Output_receive", 2, 2, swig_obj)) SWIG_fail;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Output_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Output_receive" "', argument " "1"" of type '" "sigrok::Output *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      arg1 = const_cast< sigrok::Output * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      arg1 = const_cast< sigrok::Output * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    int newmem = 0;
    res2 = SWIG_ConvertPtrAndOwn(swig_obj[1], &argp2, SWIGTYPE_p_std__shared_ptrT_sigrok__Packet_t,  0 , &newmem);
    if (!SWIG_IsOK(res2)) {
      SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "Output_receive" "', argument " "2"" of type '" "std::shared_ptr< sigrok::Packet >""'");
    }
    if (argp2) arg2 = *(reinterpret_cast< std::shared_ptr< sigrok::Packet > * >(argp2));
    if (newmem & SWIG_CAST_NEW_MEMORY) delete reinterpret_cast< std::shared_ptr< sigrok::Packet > * >(argp2);
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->receive(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_Output_format(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Output *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Output > tempshared1 ;
  std::shared_ptr< sigrok::Output > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  std::shared_ptr< sigrok::OutputFormat > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Output_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "Output_format" "', argument " "1"" of type '" "sigrok::Output *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      arg1 = const_cast< sigrok::Output * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      arg1 = const_cast< sigrok::Output * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (arg1)->format();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    std::shared_ptr<  sigrok::OutputFormat > *smartresult = result ? new std::shared_ptr<  sigrok::OutputFormat >(result) : 0;
    resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(smartresult), SWIGTYPE_p_std__shared_ptrT_sigrok__OutputFormat_t, SWIG_POINTER_OWN);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_Output(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Output *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  std::shared_ptr< sigrok::Output > tempshared1 ;
  std::shared_ptr< sigrok::Output > *smartarg1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    int newmem = 0;
    res1 = SWIG_ConvertPtrAndOwn(swig_obj[0], &argp1, SWIGTYPE_p_std__shared_ptrT_sigrok__Output_t, 0 |  0 , &newmem);
    if (!SWIG_IsOK(res1)) {
      SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Output" "', argument " "1"" of type '" "sigrok::Output *""'");
    }
    if (newmem & SWIG_CAST_NEW_MEMORY) {
      tempshared1 = *reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      delete reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      arg1 = const_cast< sigrok::Output * >(tempshared1.get());
    } else {
      smartarg1 = reinterpret_cast< std::shared_ptr<  sigrok::Output > * >(argp1);
      arg1 = const_cast< sigrok::Output * >((smartarg1 ? smartarg1->get() : 0));
    }
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        (void)arg1; delete smartarg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Output_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_std__shared_ptrT_sigrok__Output_t, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_LogLevel_NONE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable LogLevel_NONE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_LogLevel_NONE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::LogLevel::NONE), SWIGTYPE_p_sigrok__LogLevel,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_LogLevel_ERR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable LogLevel_ERR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_LogLevel_ERR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::LogLevel::ERR), SWIGTYPE_p_sigrok__LogLevel,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_LogLevel_WARN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable LogLevel_WARN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_LogLevel_WARN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::LogLevel::WARN), SWIGTYPE_p_sigrok__LogLevel,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_LogLevel_INFO_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable LogLevel_INFO is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_LogLevel_INFO_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::LogLevel::INFO), SWIGTYPE_p_sigrok__LogLevel,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_LogLevel_DBG_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable LogLevel_DBG is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_LogLevel_DBG_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::LogLevel::DBG), SWIGTYPE_p_sigrok__LogLevel,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_LogLevel_SPEW_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable LogLevel_SPEW is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_LogLevel_SPEW_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::LogLevel::SPEW), SWIGTYPE_p_sigrok__LogLevel,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_LogLevel(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::LogLevel *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__LogLevel, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_LogLevel" "', argument " "1"" of type '" "sigrok::LogLevel *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::LogLevel * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *LogLevel_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__LogLevel, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_DataType_UINT64_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_UINT64 is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_UINT64_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::UINT64), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_STRING_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_STRING is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_STRING_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::STRING), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_BOOL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_BOOL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_BOOL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::BOOL), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_FLOAT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_FLOAT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_FLOAT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::FLOAT), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_RATIONAL_PERIOD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_RATIONAL_PERIOD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_RATIONAL_PERIOD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::RATIONAL_PERIOD), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_RATIONAL_VOLT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_RATIONAL_VOLT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_RATIONAL_VOLT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::RATIONAL_VOLT), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_KEYVALUE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_KEYVALUE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_KEYVALUE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::KEYVALUE), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_UINT64_RANGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_UINT64_RANGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_UINT64_RANGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::UINT64_RANGE), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_DOUBLE_RANGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_DOUBLE_RANGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_DOUBLE_RANGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::DOUBLE_RANGE), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_INT32_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_INT32 is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_INT32_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::INT32), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_DataType_MQ_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable DataType_MQ is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_DataType_MQ_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::DataType::MQ), SWIGTYPE_p_sigrok__DataType,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_DataType(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::DataType *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__DataType, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_DataType" "', argument " "1"" of type '" "sigrok::DataType *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::DataType * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *DataType_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__DataType, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_PacketType_HEADER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_HEADER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_HEADER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::HEADER), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_PacketType_END_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_END is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_END_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::END), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_PacketType_META_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_META is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_META_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::META), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_PacketType_TRIGGER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_TRIGGER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_TRIGGER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::TRIGGER), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_PacketType_LOGIC_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_LOGIC is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_LOGIC_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::LOGIC), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_PacketType_FRAME_BEGIN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_FRAME_BEGIN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_FRAME_BEGIN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::FRAME_BEGIN), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_PacketType_FRAME_END_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_FRAME_END is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_FRAME_END_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::FRAME_END), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_PacketType_ANALOG_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable PacketType_ANALOG is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_PacketType_ANALOG_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::PacketType::ANALOG), SWIGTYPE_p_sigrok__PacketType,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_PacketType(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::PacketType *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__PacketType, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_PacketType" "', argument " "1"" of type '" "sigrok::PacketType *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::PacketType * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *PacketType_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__PacketType, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_Quantity_VOLTAGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_VOLTAGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_VOLTAGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::VOLTAGE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_CURRENT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_CURRENT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_CURRENT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::CURRENT), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_RESISTANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_RESISTANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_RESISTANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::RESISTANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_CAPACITANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_CAPACITANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_CAPACITANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::CAPACITANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_TEMPERATURE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_TEMPERATURE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_TEMPERATURE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::TEMPERATURE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_FREQUENCY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_FREQUENCY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_FREQUENCY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::FREQUENCY), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_DUTY_CYCLE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_DUTY_CYCLE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_DUTY_CYCLE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::DUTY_CYCLE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_CONTINUITY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_CONTINUITY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_CONTINUITY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::CONTINUITY), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_PULSE_WIDTH_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_PULSE_WIDTH is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_PULSE_WIDTH_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::PULSE_WIDTH), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_CONDUCTANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_CONDUCTANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_CONDUCTANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::CONDUCTANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_POWER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_POWER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_POWER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::POWER), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_GAIN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_GAIN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_GAIN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::GAIN), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_SOUND_PRESSURE_LEVEL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_SOUND_PRESSURE_LEVEL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_SOUND_PRESSURE_LEVEL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::SOUND_PRESSURE_LEVEL), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_CARBON_MONOXIDE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_CARBON_MONOXIDE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_CARBON_MONOXIDE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::CARBON_MONOXIDE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_RELATIVE_HUMIDITY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_RELATIVE_HUMIDITY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_RELATIVE_HUMIDITY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::RELATIVE_HUMIDITY), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_TIME_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_TIME is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_TIME_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::TIME), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_WIND_SPEED_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_WIND_SPEED is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_WIND_SPEED_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::WIND_SPEED), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_PRESSURE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_PRESSURE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_PRESSURE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::PRESSURE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_PARALLEL_INDUCTANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_PARALLEL_INDUCTANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_PARALLEL_INDUCTANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::PARALLEL_INDUCTANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_PARALLEL_CAPACITANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_PARALLEL_CAPACITANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_PARALLEL_CAPACITANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::PARALLEL_CAPACITANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_PARALLEL_RESISTANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_PARALLEL_RESISTANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_PARALLEL_RESISTANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::PARALLEL_RESISTANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_SERIES_INDUCTANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_SERIES_INDUCTANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_SERIES_INDUCTANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::SERIES_INDUCTANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_SERIES_CAPACITANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_SERIES_CAPACITANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_SERIES_CAPACITANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::SERIES_CAPACITANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_SERIES_RESISTANCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_SERIES_RESISTANCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_SERIES_RESISTANCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::SERIES_RESISTANCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_DISSIPATION_FACTOR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_DISSIPATION_FACTOR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_DISSIPATION_FACTOR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::DISSIPATION_FACTOR), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_QUALITY_FACTOR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_QUALITY_FACTOR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_QUALITY_FACTOR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::QUALITY_FACTOR), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_PHASE_ANGLE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_PHASE_ANGLE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_PHASE_ANGLE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::PHASE_ANGLE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_DIFFERENCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_DIFFERENCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_DIFFERENCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::DIFFERENCE), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_COUNT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_COUNT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_COUNT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::COUNT), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_POWER_FACTOR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_POWER_FACTOR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_POWER_FACTOR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::POWER_FACTOR), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_APPARENT_POWER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_APPARENT_POWER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_APPARENT_POWER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::APPARENT_POWER), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_MASS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_MASS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_MASS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::MASS), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Quantity_HARMONIC_RATIO_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Quantity_HARMONIC_RATIO is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Quantity_HARMONIC_RATIO_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Quantity::HARMONIC_RATIO), SWIGTYPE_p_sigrok__Quantity,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_Quantity(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Quantity *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Quantity, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Quantity" "', argument " "1"" of type '" "sigrok::Quantity *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Quantity * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Quantity_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__Quantity, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_Unit_VOLT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_VOLT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_VOLT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::VOLT), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_AMPERE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_AMPERE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_AMPERE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::AMPERE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_OHM_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_OHM is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_OHM_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::OHM), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_FARAD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_FARAD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_FARAD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::FARAD), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_KELVIN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_KELVIN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_KELVIN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::KELVIN), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_CELSIUS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_CELSIUS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_CELSIUS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::CELSIUS), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_FAHRENHEIT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_FAHRENHEIT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_FAHRENHEIT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::FAHRENHEIT), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_HERTZ_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_HERTZ is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_HERTZ_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::HERTZ), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_PERCENTAGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_PERCENTAGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_PERCENTAGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::PERCENTAGE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_BOOLEAN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_BOOLEAN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_BOOLEAN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::BOOLEAN), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_SECOND_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_SECOND is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_SECOND_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::SECOND), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_SIEMENS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_SIEMENS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_SIEMENS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::SIEMENS), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_DECIBEL_MW_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_DECIBEL_MW is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_DECIBEL_MW_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::DECIBEL_MW), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_DECIBEL_VOLT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_DECIBEL_VOLT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_DECIBEL_VOLT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::DECIBEL_VOLT), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_UNITLESS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_UNITLESS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_UNITLESS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::UNITLESS), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_DECIBEL_SPL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_DECIBEL_SPL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_DECIBEL_SPL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::DECIBEL_SPL), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_CONCENTRATION_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_CONCENTRATION is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_CONCENTRATION_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::CONCENTRATION), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_REVOLUTIONS_PER_MINUTE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_REVOLUTIONS_PER_MINUTE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_REVOLUTIONS_PER_MINUTE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::REVOLUTIONS_PER_MINUTE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_VOLT_AMPERE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_VOLT_AMPERE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_VOLT_AMPERE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::VOLT_AMPERE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_WATT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_WATT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_WATT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::WATT), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_WATT_HOUR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_WATT_HOUR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_WATT_HOUR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::WATT_HOUR), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_METER_SECOND_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_METER_SECOND is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_METER_SECOND_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::METER_SECOND), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_HECTOPASCAL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_HECTOPASCAL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_HECTOPASCAL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::HECTOPASCAL), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_HUMIDITY_293K_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_HUMIDITY_293K is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_HUMIDITY_293K_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::HUMIDITY_293K), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_DEGREE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_DEGREE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_DEGREE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::DEGREE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_HENRY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_HENRY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_HENRY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::HENRY), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_GRAM_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_GRAM is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_GRAM_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::GRAM), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_CARAT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_CARAT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_CARAT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::CARAT), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_OUNCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_OUNCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_OUNCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::OUNCE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_TROY_OUNCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_TROY_OUNCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_TROY_OUNCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::TROY_OUNCE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_POUND_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_POUND is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_POUND_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::POUND), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_PENNYWEIGHT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_PENNYWEIGHT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_PENNYWEIGHT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::PENNYWEIGHT), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_GRAIN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_GRAIN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_GRAIN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::GRAIN), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_TAEL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_TAEL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_TAEL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::TAEL), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_MOMME_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_MOMME is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_MOMME_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::MOMME), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_TOLA_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_TOLA is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_TOLA_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::TOLA), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Unit_PIECE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Unit_PIECE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Unit_PIECE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Unit::PIECE), SWIGTYPE_p_sigrok__Unit,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_Unit(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Unit *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Unit, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Unit" "', argument " "1"" of type '" "sigrok::Unit *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Unit * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Unit_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__Unit, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_QuantityFlag_AC_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_AC is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_AC_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::AC), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_DC_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_DC is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_DC_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::DC), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_RMS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_RMS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_RMS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::RMS), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_DIODE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_DIODE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_DIODE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::DIODE), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_HOLD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_HOLD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_HOLD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::HOLD), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_MAX_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_MAX is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_MAX_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::MAX), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_MIN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_MIN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_MIN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::MIN), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_AUTORANGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_AUTORANGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_AUTORANGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::AUTORANGE), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_RELATIVE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_RELATIVE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_RELATIVE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::RELATIVE), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_A_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_FREQ_WEIGHT_A is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_A_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_FREQ_WEIGHT_A), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_C_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_FREQ_WEIGHT_C is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_C_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_FREQ_WEIGHT_C), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_Z_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_FREQ_WEIGHT_Z is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_Z_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_FREQ_WEIGHT_Z), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_FLAT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_FREQ_WEIGHT_FLAT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_FLAT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_FREQ_WEIGHT_FLAT), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_TIME_WEIGHT_S_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_TIME_WEIGHT_S is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_TIME_WEIGHT_S_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_TIME_WEIGHT_S), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_TIME_WEIGHT_F_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_TIME_WEIGHT_F is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_TIME_WEIGHT_F_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_TIME_WEIGHT_F), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_LAT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_LAT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_LAT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_LAT), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_SPL_PCT_OVER_ALARM_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_SPL_PCT_OVER_ALARM is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_SPL_PCT_OVER_ALARM_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::SPL_PCT_OVER_ALARM), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_DURATION_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_DURATION is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_DURATION_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::DURATION), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_AVG_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_AVG is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_AVG_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::AVG), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_REFERENCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_REFERENCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_REFERENCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::REFERENCE), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_UNSTABLE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_UNSTABLE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_UNSTABLE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::UNSTABLE), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_QuantityFlag_FOUR_WIRE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable QuantityFlag_FOUR_WIRE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_QuantityFlag_FOUR_WIRE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::QuantityFlag::FOUR_WIRE), SWIGTYPE_p_sigrok__QuantityFlag,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_QuantityFlag_flags_from_mask(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  unsigned int arg1 ;
  unsigned int val1 ;
  int ecode1 = 0 ;
  PyObject *swig_obj[1] ;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  ecode1 = SWIG_AsVal_unsigned_SS_int(swig_obj[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), "in method '" "QuantityFlag_flags_from_mask" "', argument " "1"" of type '" "unsigned int""'");
  } 
  arg1 = static_cast< unsigned int >(val1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = sigrok::QuantityFlag::flags_from_mask(arg1);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = swig::from(static_cast< std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_QuantityFlag_mask_from_flags(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > arg1 ;
  PyObject *swig_obj[1] ;
  unsigned int result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *ptr = (std::vector< sigrok::QuantityFlag const*,std::allocator< sigrok::QuantityFlag const * > > *)0;
    int res = swig::asptr(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "QuantityFlag_mask_from_flags" "', argument " "1"" of type '" "std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > >""'"); 
    }
    arg1 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (unsigned int)sigrok::QuantityFlag::mask_from_flags(SWIG_STD_MOVE(arg1));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_unsigned_SS_int(static_cast< unsigned int >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_delete_QuantityFlag(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::QuantityFlag *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__QuantityFlag, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_QuantityFlag" "', argument " "1"" of type '" "sigrok::QuantityFlag *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::QuantityFlag * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *QuantityFlag_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__QuantityFlag, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_TriggerMatchType_ZERO_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable TriggerMatchType_ZERO is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_TriggerMatchType_ZERO_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::TriggerMatchType::ZERO), SWIGTYPE_p_sigrok__TriggerMatchType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_TriggerMatchType_ONE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable TriggerMatchType_ONE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_TriggerMatchType_ONE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::TriggerMatchType::ONE), SWIGTYPE_p_sigrok__TriggerMatchType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_TriggerMatchType_RISING_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable TriggerMatchType_RISING is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_TriggerMatchType_RISING_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::TriggerMatchType::RISING), SWIGTYPE_p_sigrok__TriggerMatchType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_TriggerMatchType_FALLING_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable TriggerMatchType_FALLING is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_TriggerMatchType_FALLING_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::TriggerMatchType::FALLING), SWIGTYPE_p_sigrok__TriggerMatchType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_TriggerMatchType_EDGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable TriggerMatchType_EDGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_TriggerMatchType_EDGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::TriggerMatchType::EDGE), SWIGTYPE_p_sigrok__TriggerMatchType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_TriggerMatchType_OVER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable TriggerMatchType_OVER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_TriggerMatchType_OVER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::TriggerMatchType::OVER), SWIGTYPE_p_sigrok__TriggerMatchType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_TriggerMatchType_UNDER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable TriggerMatchType_UNDER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_TriggerMatchType_UNDER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::TriggerMatchType::UNDER), SWIGTYPE_p_sigrok__TriggerMatchType,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_TriggerMatchType(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::TriggerMatchType *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__TriggerMatchType, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_TriggerMatchType" "', argument " "1"" of type '" "sigrok::TriggerMatchType *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::TriggerMatchType * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *TriggerMatchType_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__TriggerMatchType, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_OutputFlag_INTERNAL_IO_HANDLING_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable OutputFlag_INTERNAL_IO_HANDLING is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_OutputFlag_INTERNAL_IO_HANDLING_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::OutputFlag::INTERNAL_IO_HANDLING), SWIGTYPE_p_sigrok__OutputFlag,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_OutputFlag(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::OutputFlag *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__OutputFlag, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_OutputFlag" "', argument " "1"" of type '" "sigrok::OutputFlag *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::OutputFlag * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *OutputFlag_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__OutputFlag, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_ChannelType_LOGIC_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ChannelType_LOGIC is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ChannelType_LOGIC_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ChannelType::LOGIC), SWIGTYPE_p_sigrok__ChannelType,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ChannelType_ANALOG_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ChannelType_ANALOG is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ChannelType_ANALOG_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ChannelType::ANALOG), SWIGTYPE_p_sigrok__ChannelType,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_ChannelType(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ChannelType *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__ChannelType, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ChannelType" "', argument " "1"" of type '" "sigrok::ChannelType *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::ChannelType * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ChannelType_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__ChannelType, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_Capability_GET_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Capability_GET is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Capability_GET_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Capability::GET), SWIGTYPE_p_sigrok__Capability,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Capability_SET_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Capability_SET is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Capability_SET_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Capability::SET), SWIGTYPE_p_sigrok__Capability,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_Capability_LIST_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable Capability_LIST is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_Capability_LIST_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::Capability::LIST), SWIGTYPE_p_sigrok__Capability,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_delete_Capability(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::Capability *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__Capability, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_Capability" "', argument " "1"" of type '" "sigrok::Capability *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::Capability * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *Capability_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__Capability, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

SWIGINTERN int Swig_var_ConfigKey_LOGIC_ANALYZER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_LOGIC_ANALYZER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_LOGIC_ANALYZER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::LOGIC_ANALYZER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OSCILLOSCOPE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OSCILLOSCOPE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OSCILLOSCOPE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OSCILLOSCOPE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_MULTIMETER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_MULTIMETER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_MULTIMETER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::MULTIMETER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_DEMO_DEV_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_DEMO_DEV is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_DEMO_DEV_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::DEMO_DEV), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SOUNDLEVELMETER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SOUNDLEVELMETER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SOUNDLEVELMETER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SOUNDLEVELMETER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_THERMOMETER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_THERMOMETER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_THERMOMETER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::THERMOMETER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_HYGROMETER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_HYGROMETER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_HYGROMETER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::HYGROMETER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_ENERGYMETER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_ENERGYMETER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_ENERGYMETER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::ENERGYMETER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_DEMODULATOR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_DEMODULATOR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_DEMODULATOR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::DEMODULATOR), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_POWER_SUPPLY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_POWER_SUPPLY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_POWER_SUPPLY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::POWER_SUPPLY), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_LCRMETER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_LCRMETER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_LCRMETER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::LCRMETER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_ELECTRONIC_LOAD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_ELECTRONIC_LOAD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_ELECTRONIC_LOAD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::ELECTRONIC_LOAD), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SCALE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SCALE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SCALE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SCALE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SIGNAL_GENERATOR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SIGNAL_GENERATOR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SIGNAL_GENERATOR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SIGNAL_GENERATOR), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_POWERMETER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_POWERMETER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_POWERMETER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::POWERMETER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CONN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CONN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CONN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CONN), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SERIALCOMM_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SERIALCOMM is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SERIALCOMM_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SERIALCOMM), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_MODBUSADDR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_MODBUSADDR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_MODBUSADDR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::MODBUSADDR), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SAMPLERATE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SAMPLERATE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SAMPLERATE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SAMPLERATE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CAPTURE_RATIO_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CAPTURE_RATIO is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CAPTURE_RATIO_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CAPTURE_RATIO), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_PATTERN_MODE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_PATTERN_MODE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_PATTERN_MODE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::PATTERN_MODE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_RLE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_RLE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_RLE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::RLE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_TRIGGER_SLOPE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_TRIGGER_SLOPE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_TRIGGER_SLOPE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::TRIGGER_SLOPE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_AVERAGING_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_AVERAGING is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_AVERAGING_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::AVERAGING), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_AVG_SAMPLES_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_AVG_SAMPLES is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_AVG_SAMPLES_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::AVG_SAMPLES), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_TRIGGER_SOURCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_TRIGGER_SOURCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_TRIGGER_SOURCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::TRIGGER_SOURCE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_HORIZ_TRIGGERPOS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_HORIZ_TRIGGERPOS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_HORIZ_TRIGGERPOS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::HORIZ_TRIGGERPOS), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_BUFFERSIZE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_BUFFERSIZE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_BUFFERSIZE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::BUFFERSIZE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_TIMEBASE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_TIMEBASE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_TIMEBASE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::TIMEBASE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_FILTER_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_FILTER is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_FILTER_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::FILTER), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_VDIV_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_VDIV is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_VDIV_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::VDIV), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_COUPLING_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_COUPLING is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_COUPLING_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::COUPLING), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_TRIGGER_MATCH_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_TRIGGER_MATCH is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_TRIGGER_MATCH_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::TRIGGER_MATCH), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SAMPLE_INTERVAL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SAMPLE_INTERVAL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SAMPLE_INTERVAL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SAMPLE_INTERVAL), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_NUM_HDIV_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_NUM_HDIV is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_NUM_HDIV_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::NUM_HDIV), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_NUM_VDIV_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_NUM_VDIV is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_NUM_VDIV_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::NUM_VDIV), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SPL_WEIGHT_FREQ_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SPL_WEIGHT_FREQ is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SPL_WEIGHT_FREQ_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SPL_WEIGHT_FREQ), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SPL_WEIGHT_TIME_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SPL_WEIGHT_TIME is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SPL_WEIGHT_TIME_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SPL_WEIGHT_TIME), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SPL_MEASUREMENT_RANGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SPL_MEASUREMENT_RANGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SPL_MEASUREMENT_RANGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SPL_MEASUREMENT_RANGE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_HOLD_MAX_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_HOLD_MAX is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_HOLD_MAX_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::HOLD_MAX), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_HOLD_MIN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_HOLD_MIN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_HOLD_MIN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::HOLD_MIN), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_VOLTAGE_THRESHOLD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_VOLTAGE_THRESHOLD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_VOLTAGE_THRESHOLD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::VOLTAGE_THRESHOLD), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_EXTERNAL_CLOCK_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_EXTERNAL_CLOCK is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_EXTERNAL_CLOCK_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::EXTERNAL_CLOCK), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SWAP_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SWAP is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SWAP_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SWAP), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CENTER_FREQUENCY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CENTER_FREQUENCY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CENTER_FREQUENCY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CENTER_FREQUENCY), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_NUM_LOGIC_CHANNELS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_NUM_LOGIC_CHANNELS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_NUM_LOGIC_CHANNELS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::NUM_LOGIC_CHANNELS), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_NUM_ANALOG_CHANNELS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_NUM_ANALOG_CHANNELS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_NUM_ANALOG_CHANNELS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::NUM_ANALOG_CHANNELS), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_VOLTAGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_VOLTAGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_VOLTAGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::VOLTAGE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_VOLTAGE_TARGET_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_VOLTAGE_TARGET is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_VOLTAGE_TARGET_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::VOLTAGE_TARGET), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CURRENT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CURRENT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CURRENT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CURRENT), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CURRENT_LIMIT_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CURRENT_LIMIT is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CURRENT_LIMIT_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CURRENT_LIMIT), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_ENABLED_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_ENABLED is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_ENABLED_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::ENABLED), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CHANNEL_CONFIG_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CHANNEL_CONFIG is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CHANNEL_CONFIG_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CHANNEL_CONFIG), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ENABLED_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_VOLTAGE_PROTECTION_ENABLED is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ENABLED_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_ENABLED), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ACTIVE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_VOLTAGE_PROTECTION_ACTIVE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ACTIVE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_ACTIVE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_THRESHOLD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_VOLTAGE_PROTECTION_THRESHOLD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_THRESHOLD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_VOLTAGE_PROTECTION_THRESHOLD), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ENABLED_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_CURRENT_PROTECTION_ENABLED is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ENABLED_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_CURRENT_PROTECTION_ENABLED), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ACTIVE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_CURRENT_PROTECTION_ACTIVE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ACTIVE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_CURRENT_PROTECTION_ACTIVE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_THRESHOLD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_CURRENT_PROTECTION_THRESHOLD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_THRESHOLD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_CURRENT_PROTECTION_THRESHOLD), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CLOCK_EDGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CLOCK_EDGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CLOCK_EDGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CLOCK_EDGE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_AMPLITUDE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_AMPLITUDE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_AMPLITUDE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::AMPLITUDE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_REGULATION_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_REGULATION is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_REGULATION_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::REGULATION), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_TEMPERATURE_PROTECTION is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_TEMPERATURE_PROTECTION), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OUTPUT_FREQUENCY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OUTPUT_FREQUENCY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OUTPUT_FREQUENCY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OUTPUT_FREQUENCY), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OUTPUT_FREQUENCY_TARGET_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OUTPUT_FREQUENCY_TARGET is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OUTPUT_FREQUENCY_TARGET_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OUTPUT_FREQUENCY_TARGET), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_MEASURED_QUANTITY_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_MEASURED_QUANTITY is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_MEASURED_QUANTITY_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::MEASURED_QUANTITY), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_EQUIV_CIRCUIT_MODEL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_EQUIV_CIRCUIT_MODEL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_EQUIV_CIRCUIT_MODEL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::EQUIV_CIRCUIT_MODEL), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_ACTIVE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OVER_TEMPERATURE_PROTECTION_ACTIVE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_ACTIVE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OVER_TEMPERATURE_PROTECTION_ACTIVE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_UNDER_VOLTAGE_CONDITION is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_ACTIVE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_UNDER_VOLTAGE_CONDITION_ACTIVE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_ACTIVE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION_ACTIVE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_TRIGGER_LEVEL_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_TRIGGER_LEVEL is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_TRIGGER_LEVEL_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::TRIGGER_LEVEL), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_THRESHOLD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_UNDER_VOLTAGE_CONDITION_THRESHOLD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_THRESHOLD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::UNDER_VOLTAGE_CONDITION_THRESHOLD), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_EXTERNAL_CLOCK_SOURCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_EXTERNAL_CLOCK_SOURCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_EXTERNAL_CLOCK_SOURCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::EXTERNAL_CLOCK_SOURCE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_OFFSET_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_OFFSET is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_OFFSET_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::OFFSET), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_TRIGGER_PATTERN_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_TRIGGER_PATTERN is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_TRIGGER_PATTERN_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::TRIGGER_PATTERN), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_HIGH_RESOLUTION_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_HIGH_RESOLUTION is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_HIGH_RESOLUTION_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::HIGH_RESOLUTION), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_PEAK_DETECTION_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_PEAK_DETECTION is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_PEAK_DETECTION_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::PEAK_DETECTION), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_LOGIC_THRESHOLD_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_LOGIC_THRESHOLD is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_LOGIC_THRESHOLD_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::LOGIC_THRESHOLD), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_LOGIC_THRESHOLD_CUSTOM_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_LOGIC_THRESHOLD_CUSTOM is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_LOGIC_THRESHOLD_CUSTOM_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::LOGIC_THRESHOLD_CUSTOM), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_RANGE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_RANGE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_RANGE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::RANGE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_DIGITS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_DIGITS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_DIGITS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::DIGITS), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_SESSIONFILE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_SESSIONFILE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_SESSIONFILE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::SESSIONFILE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CAPTUREFILE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CAPTUREFILE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CAPTUREFILE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CAPTUREFILE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CAPTURE_UNITSIZE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CAPTURE_UNITSIZE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CAPTURE_UNITSIZE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CAPTURE_UNITSIZE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_POWER_OFF_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_POWER_OFF is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_POWER_OFF_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::POWER_OFF), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_DATA_SOURCE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_DATA_SOURCE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_DATA_SOURCE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::DATA_SOURCE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_PROBE_FACTOR_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_PROBE_FACTOR is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_PROBE_FACTOR_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::PROBE_FACTOR), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_ADC_POWERLINE_CYCLES_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_ADC_POWERLINE_CYCLES is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_ADC_POWERLINE_CYCLES_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::ADC_POWERLINE_CYCLES), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_LIMIT_MSEC_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_LIMIT_MSEC is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_LIMIT_MSEC_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::LIMIT_MSEC), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_LIMIT_SAMPLES_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_LIMIT_SAMPLES is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_LIMIT_SAMPLES_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::LIMIT_SAMPLES), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_LIMIT_FRAMES_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_LIMIT_FRAMES is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_LIMIT_FRAMES_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::LIMIT_FRAMES), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_CONTINUOUS_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_CONTINUOUS is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_CONTINUOUS_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::CONTINUOUS), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_DATALOG_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_DATALOG is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_DATALOG_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::DATALOG), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_DEVICE_MODE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_DEVICE_MODE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_DEVICE_MODE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::DEVICE_MODE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN int Swig_var_ConfigKey_TEST_MODE_set(PyObject *) {
  SWIG_Error(SWIG_AttributeError,"Variable ConfigKey_TEST_MODE is read-only.");
  return 1;
}


SWIGINTERN PyObject *Swig_var_ConfigKey_TEST_MODE_get(void) {
  PyObject *pyobj = 0;
  
  pyobj = SWIG_NewPointerObj(SWIG_as_voidptr(sigrok::ConfigKey::TEST_MODE), SWIGTYPE_p_sigrok__ConfigKey,  0 );
  return pyobj;
}


SWIGINTERN PyObject *_wrap_ConfigKey_data_type(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ConfigKey *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  sigrok::DataType *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigKey_data_type" "', argument " "1"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::ConfigKey * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::DataType *)((sigrok::ConfigKey const *)arg1)->data_type();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__DataType, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigKey_identifier(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ConfigKey *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigKey_identifier" "', argument " "1"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::ConfigKey * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::ConfigKey const *)arg1)->identifier();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigKey_description(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ConfigKey *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  std::string result;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigKey_description" "', argument " "1"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::ConfigKey * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::ConfigKey const *)arg1)->description();
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_From_std_string(static_cast< std::string >(result));
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigKey_get_by_identifier(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  std::string arg1 ;
  PyObject *swig_obj[1] ;
  sigrok::ConfigKey *result = 0 ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ConfigKey_get_by_identifier" "', argument " "1"" of type '" "std::string""'"); 
    }
    arg1 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = (sigrok::ConfigKey *)sigrok::ConfigKey::get_by_identifier(SWIG_STD_MOVE(arg1));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigKey_parse_string__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  std::string arg1 ;
  enum sr_datatype arg2 ;
  int val2 ;
  int ecode2 = 0 ;
  Glib::VariantBase result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[0], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ConfigKey_parse_string" "', argument " "1"" of type '" "std::string""'"); 
    }
    arg1 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
  if (!SWIG_IsOK(ecode2)) {
    SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ConfigKey_parse_string" "', argument " "2"" of type '" "enum sr_datatype""'");
  } 
  arg2 = static_cast< enum sr_datatype >(val2);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = sigrok::ConfigKey::parse_string(SWIG_STD_MOVE(arg1),arg2);
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    GValue *value = g_new0(GValue, 1);
    g_value_init(value, G_TYPE_VARIANT);
    g_value_set_variant(value, (&result)->gobj());
    PyObject *variant = pyg_value_as_pyobject(value, true);
    resultobj = PyObject_CallMethod(variant,
      const_cast<char *>("unpack"), nullptr);
    Py_XDECREF(variant);
    g_free(value);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigKey_parse_string__SWIG_1(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
  PyObject *resultobj = 0;
  sigrok::ConfigKey *arg1 = 0 ;
  std::string arg2 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  Glib::VariantBase result;
  
  (void)self;
  if ((nobjs < 2) || (nobjs > 2)) SWIG_fail;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__ConfigKey, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ConfigKey_parse_string" "', argument " "1"" of type '" "sigrok::ConfigKey const *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::ConfigKey * >(argp1);
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), "in method '" "ConfigKey_parse_string" "', argument " "2"" of type '" "std::string""'"); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        result = ((sigrok::ConfigKey const *)arg1)->parse_string(SWIG_STD_MOVE(arg2));
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  {
    GValue *value = g_new0(GValue, 1);
    g_value_init(value, G_TYPE_VARIANT);
    g_value_set_variant(value, (&result)->gobj());
    PyObject *variant = pyg_value_as_pyobject(value, true);
    resultobj = PyObject_CallMethod(variant,
      const_cast<char *>("unpack"), nullptr);
    Py_XDECREF(variant);
    g_free(value);
  }
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *_wrap_ConfigKey_parse_string(PyObject *self, PyObject *args) {
  Py_ssize_t argc;
  PyObject *argv[3] = {
    0
  };
  
  if (!(argc = SWIG_Python_UnpackTuple(args, "ConfigKey_parse_string", 0, 2, argv))) SWIG_fail;
  --argc;
  if (argc == 2) {
    int _v = 0;
    void *vptr = 0;
    int res = SWIG_ConvertPtr(argv[0], &vptr, SWIGTYPE_p_sigrok__ConfigKey, 0);
    _v = SWIG_CheckState(res);
    if (_v) {
      int res = SWIG_AsPtr_std_string(argv[1], (std::string**)(0));
      _v = SWIG_CheckState(res);
      if (_v) {
        return _wrap_ConfigKey_parse_string__SWIG_1(self, argc, argv);
      }
    }
  }
  if (argc == 2) {
    int _v = 0;
    int res = SWIG_AsPtr_std_string(argv[0], (std::string**)(0));
    _v = SWIG_CheckState(res);
    if (_v) {
      {
        int res = SWIG_AsVal_int(argv[1], NULL);
        _v = SWIG_CheckState(res);
      }
      if (_v) {
        return _wrap_ConfigKey_parse_string__SWIG_0(self, argc, argv);
      }
    }
  }
  
fail:
  SWIG_Python_RaiseOrModifyTypeError("Wrong number or type of arguments for overloaded function 'ConfigKey_parse_string'.\n"
    "  Possible C/C++ prototypes are:\n"
    "    sigrok::ConfigKey::parse_string(std::string,enum sr_datatype)\n"
    "    sigrok::ConfigKey::parse_string(std::string) const\n");
  return 0;
}


SWIGINTERN PyObject *_wrap_delete_ConfigKey(PyObject *self, PyObject *args) {
  PyObject *resultobj = 0;
  sigrok::ConfigKey *arg1 = 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  PyObject *swig_obj[1] ;
  
  (void)self;
  if (!args) SWIG_fail;
  swig_obj[0] = args;
  res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_sigrok__ConfigKey, SWIG_POINTER_DISOWN |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ConfigKey" "', argument " "1"" of type '" "sigrok::ConfigKey *""'"); 
  }
  arg1 = reinterpret_cast< sigrok::ConfigKey * >(argp1);
  {
    try {
      {
        SWIG_PYTHON_THREAD_BEGIN_ALLOW;
        delete arg1;
        SWIG_PYTHON_THREAD_END_ALLOW;
      }
    } catch (sigrok::Error &e) {
      SWIG_exception(swig_exception_code(e.result),
        const_cast<char*>(e.what()));
    }
  }
  resultobj = SWIG_Py_Void();
  return resultobj;
fail:
  return NULL;
}


SWIGINTERN PyObject *ConfigKey_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
  PyObject *obj = NULL;
  if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
  SWIG_TypeNewClientData(SWIGTYPE_p_sigrok__ConfigKey, SWIG_NewClientData(obj));
  return SWIG_Py_Void();
}

static PyMethodDef SwigMethods[] = {
	 { "delete_SwigPyIterator", _wrap_delete_SwigPyIterator, METH_O, NULL},
	 { "SwigPyIterator_value", _wrap_SwigPyIterator_value, METH_O, NULL},
	 { "SwigPyIterator_incr", _wrap_SwigPyIterator_incr, METH_VARARGS, NULL},
	 { "SwigPyIterator_decr", _wrap_SwigPyIterator_decr, METH_VARARGS, NULL},
	 { "SwigPyIterator_distance", _wrap_SwigPyIterator_distance, METH_VARARGS, NULL},
	 { "SwigPyIterator_equal", _wrap_SwigPyIterator_equal, METH_VARARGS, NULL},
	 { "SwigPyIterator_copy", _wrap_SwigPyIterator_copy, METH_O, NULL},
	 { "SwigPyIterator_next", _wrap_SwigPyIterator_next, METH_O, NULL},
	 { "SwigPyIterator___next__", _wrap_SwigPyIterator___next__, METH_O, NULL},
	 { "SwigPyIterator_previous", _wrap_SwigPyIterator_previous, METH_O, NULL},
	 { "SwigPyIterator_advance", _wrap_SwigPyIterator_advance, METH_VARARGS, NULL},
	 { "SwigPyIterator___eq__", _wrap_SwigPyIterator___eq__, METH_VARARGS, NULL},
	 { "SwigPyIterator___ne__", _wrap_SwigPyIterator___ne__, METH_VARARGS, NULL},
	 { "SwigPyIterator___iadd__", _wrap_SwigPyIterator___iadd__, METH_VARARGS, NULL},
	 { "SwigPyIterator___isub__", _wrap_SwigPyIterator___isub__, METH_VARARGS, NULL},
	 { "SwigPyIterator___add__", _wrap_SwigPyIterator___add__, METH_VARARGS, NULL},
	 { "SwigPyIterator___sub__", _wrap_SwigPyIterator___sub__, METH_VARARGS, NULL},
	 { "SwigPyIterator_swigregister", SwigPyIterator_swigregister, METH_O, NULL},
	 { "StringMap_iterator", _wrap_StringMap_iterator, METH_O, NULL},
	 { "StringMap___nonzero__", _wrap_StringMap___nonzero__, METH_O, NULL},
	 { "StringMap___bool__", _wrap_StringMap___bool__, METH_O, NULL},
	 { "StringMap___len__", _wrap_StringMap___len__, METH_O, NULL},
	 { "StringMap___getitem__", _wrap_StringMap___getitem__, METH_VARARGS, NULL},
	 { "StringMap___delitem__", _wrap_StringMap___delitem__, METH_VARARGS, NULL},
	 { "StringMap_has_key", _wrap_StringMap_has_key, METH_VARARGS, NULL},
	 { "StringMap_keys", _wrap_StringMap_keys, METH_O, NULL},
	 { "StringMap_values", _wrap_StringMap_values, METH_O, NULL},
	 { "StringMap_items", _wrap_StringMap_items, METH_O, NULL},
	 { "StringMap___contains__", _wrap_StringMap___contains__, METH_VARARGS, NULL},
	 { "StringMap_key_iterator", _wrap_StringMap_key_iterator, METH_O, NULL},
	 { "StringMap_value_iterator", _wrap_StringMap_value_iterator, METH_O, NULL},
	 { "StringMap___setitem__", _wrap_StringMap___setitem__, METH_VARARGS, NULL},
	 { "StringMap_asdict", _wrap_StringMap_asdict, METH_O, NULL},
	 { "new_StringMap", _wrap_new_StringMap, METH_VARARGS, NULL},
	 { "StringMap_empty", _wrap_StringMap_empty, METH_O, NULL},
	 { "StringMap_size", _wrap_StringMap_size, METH_O, NULL},
	 { "StringMap_swap", _wrap_StringMap_swap, METH_VARARGS, NULL},
	 { "StringMap_begin", _wrap_StringMap_begin, METH_O, NULL},
	 { "StringMap_end", _wrap_StringMap_end, METH_O, NULL},
	 { "StringMap_rbegin", _wrap_StringMap_rbegin, METH_O, NULL},
	 { "StringMap_rend", _wrap_StringMap_rend, METH_O, NULL},
	 { "StringMap_clear", _wrap_StringMap_clear, METH_O, NULL},
	 { "StringMap_get_allocator", _wrap_StringMap_get_allocator, METH_O, NULL},
	 { "StringMap_count", _wrap_StringMap_count, METH_VARARGS, NULL},
	 { "StringMap_erase", _wrap_StringMap_erase, METH_VARARGS, NULL},
	 { "StringMap_find", _wrap_StringMap_find, METH_VARARGS, NULL},
	 { "StringMap_lower_bound", _wrap_StringMap_lower_bound, METH_VARARGS, NULL},
	 { "StringMap_upper_bound", _wrap_StringMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_StringMap", _wrap_delete_StringMap, METH_O, NULL},
	 { "StringMap_swigregister", StringMap_swigregister, METH_O, NULL},
	 { "StringMap_swiginit", StringMap_swiginit, METH_VARARGS, NULL},
	 { "DriverMap_iterator", _wrap_DriverMap_iterator, METH_O, NULL},
	 { "DriverMap___nonzero__", _wrap_DriverMap___nonzero__, METH_O, NULL},
	 { "DriverMap___bool__", _wrap_DriverMap___bool__, METH_O, NULL},
	 { "DriverMap___len__", _wrap_DriverMap___len__, METH_O, NULL},
	 { "DriverMap___getitem__", _wrap_DriverMap___getitem__, METH_VARARGS, NULL},
	 { "DriverMap___delitem__", _wrap_DriverMap___delitem__, METH_VARARGS, NULL},
	 { "DriverMap_has_key", _wrap_DriverMap_has_key, METH_VARARGS, NULL},
	 { "DriverMap_keys", _wrap_DriverMap_keys, METH_O, NULL},
	 { "DriverMap_values", _wrap_DriverMap_values, METH_O, NULL},
	 { "DriverMap_items", _wrap_DriverMap_items, METH_O, NULL},
	 { "DriverMap___contains__", _wrap_DriverMap___contains__, METH_VARARGS, NULL},
	 { "DriverMap_key_iterator", _wrap_DriverMap_key_iterator, METH_O, NULL},
	 { "DriverMap_value_iterator", _wrap_DriverMap_value_iterator, METH_O, NULL},
	 { "DriverMap___setitem__", _wrap_DriverMap___setitem__, METH_VARARGS, NULL},
	 { "DriverMap_asdict", _wrap_DriverMap_asdict, METH_O, NULL},
	 { "new_DriverMap", _wrap_new_DriverMap, METH_VARARGS, NULL},
	 { "DriverMap_empty", _wrap_DriverMap_empty, METH_O, NULL},
	 { "DriverMap_size", _wrap_DriverMap_size, METH_O, NULL},
	 { "DriverMap_swap", _wrap_DriverMap_swap, METH_VARARGS, NULL},
	 { "DriverMap_begin", _wrap_DriverMap_begin, METH_O, NULL},
	 { "DriverMap_end", _wrap_DriverMap_end, METH_O, NULL},
	 { "DriverMap_rbegin", _wrap_DriverMap_rbegin, METH_O, NULL},
	 { "DriverMap_rend", _wrap_DriverMap_rend, METH_O, NULL},
	 { "DriverMap_clear", _wrap_DriverMap_clear, METH_O, NULL},
	 { "DriverMap_get_allocator", _wrap_DriverMap_get_allocator, METH_O, NULL},
	 { "DriverMap_count", _wrap_DriverMap_count, METH_VARARGS, NULL},
	 { "DriverMap_erase", _wrap_DriverMap_erase, METH_VARARGS, NULL},
	 { "DriverMap_find", _wrap_DriverMap_find, METH_VARARGS, NULL},
	 { "DriverMap_lower_bound", _wrap_DriverMap_lower_bound, METH_VARARGS, NULL},
	 { "DriverMap_upper_bound", _wrap_DriverMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_DriverMap", _wrap_delete_DriverMap, METH_O, NULL},
	 { "DriverMap_swigregister", DriverMap_swigregister, METH_O, NULL},
	 { "DriverMap_swiginit", DriverMap_swiginit, METH_VARARGS, NULL},
	 { "InputFormatMap_iterator", _wrap_InputFormatMap_iterator, METH_O, NULL},
	 { "InputFormatMap___nonzero__", _wrap_InputFormatMap___nonzero__, METH_O, NULL},
	 { "InputFormatMap___bool__", _wrap_InputFormatMap___bool__, METH_O, NULL},
	 { "InputFormatMap___len__", _wrap_InputFormatMap___len__, METH_O, NULL},
	 { "InputFormatMap___getitem__", _wrap_InputFormatMap___getitem__, METH_VARARGS, NULL},
	 { "InputFormatMap___delitem__", _wrap_InputFormatMap___delitem__, METH_VARARGS, NULL},
	 { "InputFormatMap_has_key", _wrap_InputFormatMap_has_key, METH_VARARGS, NULL},
	 { "InputFormatMap_keys", _wrap_InputFormatMap_keys, METH_O, NULL},
	 { "InputFormatMap_values", _wrap_InputFormatMap_values, METH_O, NULL},
	 { "InputFormatMap_items", _wrap_InputFormatMap_items, METH_O, NULL},
	 { "InputFormatMap___contains__", _wrap_InputFormatMap___contains__, METH_VARARGS, NULL},
	 { "InputFormatMap_key_iterator", _wrap_InputFormatMap_key_iterator, METH_O, NULL},
	 { "InputFormatMap_value_iterator", _wrap_InputFormatMap_value_iterator, METH_O, NULL},
	 { "InputFormatMap___setitem__", _wrap_InputFormatMap___setitem__, METH_VARARGS, NULL},
	 { "InputFormatMap_asdict", _wrap_InputFormatMap_asdict, METH_O, NULL},
	 { "new_InputFormatMap", _wrap_new_InputFormatMap, METH_VARARGS, NULL},
	 { "InputFormatMap_empty", _wrap_InputFormatMap_empty, METH_O, NULL},
	 { "InputFormatMap_size", _wrap_InputFormatMap_size, METH_O, NULL},
	 { "InputFormatMap_swap", _wrap_InputFormatMap_swap, METH_VARARGS, NULL},
	 { "InputFormatMap_begin", _wrap_InputFormatMap_begin, METH_O, NULL},
	 { "InputFormatMap_end", _wrap_InputFormatMap_end, METH_O, NULL},
	 { "InputFormatMap_rbegin", _wrap_InputFormatMap_rbegin, METH_O, NULL},
	 { "InputFormatMap_rend", _wrap_InputFormatMap_rend, METH_O, NULL},
	 { "InputFormatMap_clear", _wrap_InputFormatMap_clear, METH_O, NULL},
	 { "InputFormatMap_get_allocator", _wrap_InputFormatMap_get_allocator, METH_O, NULL},
	 { "InputFormatMap_count", _wrap_InputFormatMap_count, METH_VARARGS, NULL},
	 { "InputFormatMap_erase", _wrap_InputFormatMap_erase, METH_VARARGS, NULL},
	 { "InputFormatMap_find", _wrap_InputFormatMap_find, METH_VARARGS, NULL},
	 { "InputFormatMap_lower_bound", _wrap_InputFormatMap_lower_bound, METH_VARARGS, NULL},
	 { "InputFormatMap_upper_bound", _wrap_InputFormatMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_InputFormatMap", _wrap_delete_InputFormatMap, METH_O, NULL},
	 { "InputFormatMap_swigregister", InputFormatMap_swigregister, METH_O, NULL},
	 { "InputFormatMap_swiginit", InputFormatMap_swiginit, METH_VARARGS, NULL},
	 { "OutputFormatMap_iterator", _wrap_OutputFormatMap_iterator, METH_O, NULL},
	 { "OutputFormatMap___nonzero__", _wrap_OutputFormatMap___nonzero__, METH_O, NULL},
	 { "OutputFormatMap___bool__", _wrap_OutputFormatMap___bool__, METH_O, NULL},
	 { "OutputFormatMap___len__", _wrap_OutputFormatMap___len__, METH_O, NULL},
	 { "OutputFormatMap___getitem__", _wrap_OutputFormatMap___getitem__, METH_VARARGS, NULL},
	 { "OutputFormatMap___delitem__", _wrap_OutputFormatMap___delitem__, METH_VARARGS, NULL},
	 { "OutputFormatMap_has_key", _wrap_OutputFormatMap_has_key, METH_VARARGS, NULL},
	 { "OutputFormatMap_keys", _wrap_OutputFormatMap_keys, METH_O, NULL},
	 { "OutputFormatMap_values", _wrap_OutputFormatMap_values, METH_O, NULL},
	 { "OutputFormatMap_items", _wrap_OutputFormatMap_items, METH_O, NULL},
	 { "OutputFormatMap___contains__", _wrap_OutputFormatMap___contains__, METH_VARARGS, NULL},
	 { "OutputFormatMap_key_iterator", _wrap_OutputFormatMap_key_iterator, METH_O, NULL},
	 { "OutputFormatMap_value_iterator", _wrap_OutputFormatMap_value_iterator, METH_O, NULL},
	 { "OutputFormatMap___setitem__", _wrap_OutputFormatMap___setitem__, METH_VARARGS, NULL},
	 { "OutputFormatMap_asdict", _wrap_OutputFormatMap_asdict, METH_O, NULL},
	 { "new_OutputFormatMap", _wrap_new_OutputFormatMap, METH_VARARGS, NULL},
	 { "OutputFormatMap_empty", _wrap_OutputFormatMap_empty, METH_O, NULL},
	 { "OutputFormatMap_size", _wrap_OutputFormatMap_size, METH_O, NULL},
	 { "OutputFormatMap_swap", _wrap_OutputFormatMap_swap, METH_VARARGS, NULL},
	 { "OutputFormatMap_begin", _wrap_OutputFormatMap_begin, METH_O, NULL},
	 { "OutputFormatMap_end", _wrap_OutputFormatMap_end, METH_O, NULL},
	 { "OutputFormatMap_rbegin", _wrap_OutputFormatMap_rbegin, METH_O, NULL},
	 { "OutputFormatMap_rend", _wrap_OutputFormatMap_rend, METH_O, NULL},
	 { "OutputFormatMap_clear", _wrap_OutputFormatMap_clear, METH_O, NULL},
	 { "OutputFormatMap_get_allocator", _wrap_OutputFormatMap_get_allocator, METH_O, NULL},
	 { "OutputFormatMap_count", _wrap_OutputFormatMap_count, METH_VARARGS, NULL},
	 { "OutputFormatMap_erase", _wrap_OutputFormatMap_erase, METH_VARARGS, NULL},
	 { "OutputFormatMap_find", _wrap_OutputFormatMap_find, METH_VARARGS, NULL},
	 { "OutputFormatMap_lower_bound", _wrap_OutputFormatMap_lower_bound, METH_VARARGS, NULL},
	 { "OutputFormatMap_upper_bound", _wrap_OutputFormatMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_OutputFormatMap", _wrap_delete_OutputFormatMap, METH_O, NULL},
	 { "OutputFormatMap_swigregister", OutputFormatMap_swigregister, METH_O, NULL},
	 { "OutputFormatMap_swiginit", OutputFormatMap_swiginit, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_iterator", _wrap_HardwareDeviceVector_iterator, METH_O, NULL},
	 { "HardwareDeviceVector___nonzero__", _wrap_HardwareDeviceVector___nonzero__, METH_O, NULL},
	 { "HardwareDeviceVector___bool__", _wrap_HardwareDeviceVector___bool__, METH_O, NULL},
	 { "HardwareDeviceVector___len__", _wrap_HardwareDeviceVector___len__, METH_O, NULL},
	 { "HardwareDeviceVector___getslice__", _wrap_HardwareDeviceVector___getslice__, METH_VARARGS, NULL},
	 { "HardwareDeviceVector___setslice__", _wrap_HardwareDeviceVector___setslice__, METH_VARARGS, NULL},
	 { "HardwareDeviceVector___delslice__", _wrap_HardwareDeviceVector___delslice__, METH_VARARGS, NULL},
	 { "HardwareDeviceVector___delitem__", _wrap_HardwareDeviceVector___delitem__, METH_VARARGS, NULL},
	 { "HardwareDeviceVector___getitem__", _wrap_HardwareDeviceVector___getitem__, METH_VARARGS, NULL},
	 { "HardwareDeviceVector___setitem__", _wrap_HardwareDeviceVector___setitem__, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_pop", _wrap_HardwareDeviceVector_pop, METH_O, NULL},
	 { "HardwareDeviceVector_append", _wrap_HardwareDeviceVector_append, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_empty", _wrap_HardwareDeviceVector_empty, METH_O, NULL},
	 { "HardwareDeviceVector_size", _wrap_HardwareDeviceVector_size, METH_O, NULL},
	 { "HardwareDeviceVector_swap", _wrap_HardwareDeviceVector_swap, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_begin", _wrap_HardwareDeviceVector_begin, METH_O, NULL},
	 { "HardwareDeviceVector_end", _wrap_HardwareDeviceVector_end, METH_O, NULL},
	 { "HardwareDeviceVector_rbegin", _wrap_HardwareDeviceVector_rbegin, METH_O, NULL},
	 { "HardwareDeviceVector_rend", _wrap_HardwareDeviceVector_rend, METH_O, NULL},
	 { "HardwareDeviceVector_clear", _wrap_HardwareDeviceVector_clear, METH_O, NULL},
	 { "HardwareDeviceVector_get_allocator", _wrap_HardwareDeviceVector_get_allocator, METH_O, NULL},
	 { "HardwareDeviceVector_pop_back", _wrap_HardwareDeviceVector_pop_back, METH_O, NULL},
	 { "HardwareDeviceVector_erase", _wrap_HardwareDeviceVector_erase, METH_VARARGS, NULL},
	 { "new_HardwareDeviceVector", _wrap_new_HardwareDeviceVector, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_push_back", _wrap_HardwareDeviceVector_push_back, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_front", _wrap_HardwareDeviceVector_front, METH_O, NULL},
	 { "HardwareDeviceVector_back", _wrap_HardwareDeviceVector_back, METH_O, NULL},
	 { "HardwareDeviceVector_assign", _wrap_HardwareDeviceVector_assign, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_resize", _wrap_HardwareDeviceVector_resize, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_insert", _wrap_HardwareDeviceVector_insert, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_reserve", _wrap_HardwareDeviceVector_reserve, METH_VARARGS, NULL},
	 { "HardwareDeviceVector_capacity", _wrap_HardwareDeviceVector_capacity, METH_O, NULL},
	 { "delete_HardwareDeviceVector", _wrap_delete_HardwareDeviceVector, METH_O, NULL},
	 { "HardwareDeviceVector_swigregister", HardwareDeviceVector_swigregister, METH_O, NULL},
	 { "HardwareDeviceVector_swiginit", HardwareDeviceVector_swiginit, METH_VARARGS, NULL},
	 { "DeviceVector_iterator", _wrap_DeviceVector_iterator, METH_O, NULL},
	 { "DeviceVector___nonzero__", _wrap_DeviceVector___nonzero__, METH_O, NULL},
	 { "DeviceVector___bool__", _wrap_DeviceVector___bool__, METH_O, NULL},
	 { "DeviceVector___len__", _wrap_DeviceVector___len__, METH_O, NULL},
	 { "DeviceVector___getslice__", _wrap_DeviceVector___getslice__, METH_VARARGS, NULL},
	 { "DeviceVector___setslice__", _wrap_DeviceVector___setslice__, METH_VARARGS, NULL},
	 { "DeviceVector___delslice__", _wrap_DeviceVector___delslice__, METH_VARARGS, NULL},
	 { "DeviceVector___delitem__", _wrap_DeviceVector___delitem__, METH_VARARGS, NULL},
	 { "DeviceVector___getitem__", _wrap_DeviceVector___getitem__, METH_VARARGS, NULL},
	 { "DeviceVector___setitem__", _wrap_DeviceVector___setitem__, METH_VARARGS, NULL},
	 { "DeviceVector_pop", _wrap_DeviceVector_pop, METH_O, NULL},
	 { "DeviceVector_append", _wrap_DeviceVector_append, METH_VARARGS, NULL},
	 { "DeviceVector_empty", _wrap_DeviceVector_empty, METH_O, NULL},
	 { "DeviceVector_size", _wrap_DeviceVector_size, METH_O, NULL},
	 { "DeviceVector_swap", _wrap_DeviceVector_swap, METH_VARARGS, NULL},
	 { "DeviceVector_begin", _wrap_DeviceVector_begin, METH_O, NULL},
	 { "DeviceVector_end", _wrap_DeviceVector_end, METH_O, NULL},
	 { "DeviceVector_rbegin", _wrap_DeviceVector_rbegin, METH_O, NULL},
	 { "DeviceVector_rend", _wrap_DeviceVector_rend, METH_O, NULL},
	 { "DeviceVector_clear", _wrap_DeviceVector_clear, METH_O, NULL},
	 { "DeviceVector_get_allocator", _wrap_DeviceVector_get_allocator, METH_O, NULL},
	 { "DeviceVector_pop_back", _wrap_DeviceVector_pop_back, METH_O, NULL},
	 { "DeviceVector_erase", _wrap_DeviceVector_erase, METH_VARARGS, NULL},
	 { "new_DeviceVector", _wrap_new_DeviceVector, METH_VARARGS, NULL},
	 { "DeviceVector_push_back", _wrap_DeviceVector_push_back, METH_VARARGS, NULL},
	 { "DeviceVector_front", _wrap_DeviceVector_front, METH_O, NULL},
	 { "DeviceVector_back", _wrap_DeviceVector_back, METH_O, NULL},
	 { "DeviceVector_assign", _wrap_DeviceVector_assign, METH_VARARGS, NULL},
	 { "DeviceVector_resize", _wrap_DeviceVector_resize, METH_VARARGS, NULL},
	 { "DeviceVector_insert", _wrap_DeviceVector_insert, METH_VARARGS, NULL},
	 { "DeviceVector_reserve", _wrap_DeviceVector_reserve, METH_VARARGS, NULL},
	 { "DeviceVector_capacity", _wrap_DeviceVector_capacity, METH_O, NULL},
	 { "delete_DeviceVector", _wrap_delete_DeviceVector, METH_O, NULL},
	 { "DeviceVector_swigregister", DeviceVector_swigregister, METH_O, NULL},
	 { "DeviceVector_swiginit", DeviceVector_swiginit, METH_VARARGS, NULL},
	 { "ChannelVector_iterator", _wrap_ChannelVector_iterator, METH_O, NULL},
	 { "ChannelVector___nonzero__", _wrap_ChannelVector___nonzero__, METH_O, NULL},
	 { "ChannelVector___bool__", _wrap_ChannelVector___bool__, METH_O, NULL},
	 { "ChannelVector___len__", _wrap_ChannelVector___len__, METH_O, NULL},
	 { "ChannelVector___getslice__", _wrap_ChannelVector___getslice__, METH_VARARGS, NULL},
	 { "ChannelVector___setslice__", _wrap_ChannelVector___setslice__, METH_VARARGS, NULL},
	 { "ChannelVector___delslice__", _wrap_ChannelVector___delslice__, METH_VARARGS, NULL},
	 { "ChannelVector___delitem__", _wrap_ChannelVector___delitem__, METH_VARARGS, NULL},
	 { "ChannelVector___getitem__", _wrap_ChannelVector___getitem__, METH_VARARGS, NULL},
	 { "ChannelVector___setitem__", _wrap_ChannelVector___setitem__, METH_VARARGS, NULL},
	 { "ChannelVector_pop", _wrap_ChannelVector_pop, METH_O, NULL},
	 { "ChannelVector_append", _wrap_ChannelVector_append, METH_VARARGS, NULL},
	 { "ChannelVector_empty", _wrap_ChannelVector_empty, METH_O, NULL},
	 { "ChannelVector_size", _wrap_ChannelVector_size, METH_O, NULL},
	 { "ChannelVector_swap", _wrap_ChannelVector_swap, METH_VARARGS, NULL},
	 { "ChannelVector_begin", _wrap_ChannelVector_begin, METH_O, NULL},
	 { "ChannelVector_end", _wrap_ChannelVector_end, METH_O, NULL},
	 { "ChannelVector_rbegin", _wrap_ChannelVector_rbegin, METH_O, NULL},
	 { "ChannelVector_rend", _wrap_ChannelVector_rend, METH_O, NULL},
	 { "ChannelVector_clear", _wrap_ChannelVector_clear, METH_O, NULL},
	 { "ChannelVector_get_allocator", _wrap_ChannelVector_get_allocator, METH_O, NULL},
	 { "ChannelVector_pop_back", _wrap_ChannelVector_pop_back, METH_O, NULL},
	 { "ChannelVector_erase", _wrap_ChannelVector_erase, METH_VARARGS, NULL},
	 { "new_ChannelVector", _wrap_new_ChannelVector, METH_VARARGS, NULL},
	 { "ChannelVector_push_back", _wrap_ChannelVector_push_back, METH_VARARGS, NULL},
	 { "ChannelVector_front", _wrap_ChannelVector_front, METH_O, NULL},
	 { "ChannelVector_back", _wrap_ChannelVector_back, METH_O, NULL},
	 { "ChannelVector_assign", _wrap_ChannelVector_assign, METH_VARARGS, NULL},
	 { "ChannelVector_resize", _wrap_ChannelVector_resize, METH_VARARGS, NULL},
	 { "ChannelVector_insert", _wrap_ChannelVector_insert, METH_VARARGS, NULL},
	 { "ChannelVector_reserve", _wrap_ChannelVector_reserve, METH_VARARGS, NULL},
	 { "ChannelVector_capacity", _wrap_ChannelVector_capacity, METH_O, NULL},
	 { "delete_ChannelVector", _wrap_delete_ChannelVector, METH_O, NULL},
	 { "ChannelVector_swigregister", ChannelVector_swigregister, METH_O, NULL},
	 { "ChannelVector_swiginit", ChannelVector_swiginit, METH_VARARGS, NULL},
	 { "ChannelGroupMap_iterator", _wrap_ChannelGroupMap_iterator, METH_O, NULL},
	 { "ChannelGroupMap___nonzero__", _wrap_ChannelGroupMap___nonzero__, METH_O, NULL},
	 { "ChannelGroupMap___bool__", _wrap_ChannelGroupMap___bool__, METH_O, NULL},
	 { "ChannelGroupMap___len__", _wrap_ChannelGroupMap___len__, METH_O, NULL},
	 { "ChannelGroupMap___getitem__", _wrap_ChannelGroupMap___getitem__, METH_VARARGS, NULL},
	 { "ChannelGroupMap___delitem__", _wrap_ChannelGroupMap___delitem__, METH_VARARGS, NULL},
	 { "ChannelGroupMap_has_key", _wrap_ChannelGroupMap_has_key, METH_VARARGS, NULL},
	 { "ChannelGroupMap_keys", _wrap_ChannelGroupMap_keys, METH_O, NULL},
	 { "ChannelGroupMap_values", _wrap_ChannelGroupMap_values, METH_O, NULL},
	 { "ChannelGroupMap_items", _wrap_ChannelGroupMap_items, METH_O, NULL},
	 { "ChannelGroupMap___contains__", _wrap_ChannelGroupMap___contains__, METH_VARARGS, NULL},
	 { "ChannelGroupMap_key_iterator", _wrap_ChannelGroupMap_key_iterator, METH_O, NULL},
	 { "ChannelGroupMap_value_iterator", _wrap_ChannelGroupMap_value_iterator, METH_O, NULL},
	 { "ChannelGroupMap___setitem__", _wrap_ChannelGroupMap___setitem__, METH_VARARGS, NULL},
	 { "ChannelGroupMap_asdict", _wrap_ChannelGroupMap_asdict, METH_O, NULL},
	 { "new_ChannelGroupMap", _wrap_new_ChannelGroupMap, METH_VARARGS, NULL},
	 { "ChannelGroupMap_empty", _wrap_ChannelGroupMap_empty, METH_O, NULL},
	 { "ChannelGroupMap_size", _wrap_ChannelGroupMap_size, METH_O, NULL},
	 { "ChannelGroupMap_swap", _wrap_ChannelGroupMap_swap, METH_VARARGS, NULL},
	 { "ChannelGroupMap_begin", _wrap_ChannelGroupMap_begin, METH_O, NULL},
	 { "ChannelGroupMap_end", _wrap_ChannelGroupMap_end, METH_O, NULL},
	 { "ChannelGroupMap_rbegin", _wrap_ChannelGroupMap_rbegin, METH_O, NULL},
	 { "ChannelGroupMap_rend", _wrap_ChannelGroupMap_rend, METH_O, NULL},
	 { "ChannelGroupMap_clear", _wrap_ChannelGroupMap_clear, METH_O, NULL},
	 { "ChannelGroupMap_get_allocator", _wrap_ChannelGroupMap_get_allocator, METH_O, NULL},
	 { "ChannelGroupMap_count", _wrap_ChannelGroupMap_count, METH_VARARGS, NULL},
	 { "ChannelGroupMap_erase", _wrap_ChannelGroupMap_erase, METH_VARARGS, NULL},
	 { "ChannelGroupMap_find", _wrap_ChannelGroupMap_find, METH_VARARGS, NULL},
	 { "ChannelGroupMap_lower_bound", _wrap_ChannelGroupMap_lower_bound, METH_VARARGS, NULL},
	 { "ChannelGroupMap_upper_bound", _wrap_ChannelGroupMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_ChannelGroupMap", _wrap_delete_ChannelGroupMap, METH_O, NULL},
	 { "ChannelGroupMap_swigregister", ChannelGroupMap_swigregister, METH_O, NULL},
	 { "ChannelGroupMap_swiginit", ChannelGroupMap_swiginit, METH_VARARGS, NULL},
	 { "ConfigVector_iterator", _wrap_ConfigVector_iterator, METH_O, NULL},
	 { "ConfigVector___nonzero__", _wrap_ConfigVector___nonzero__, METH_O, NULL},
	 { "ConfigVector___bool__", _wrap_ConfigVector___bool__, METH_O, NULL},
	 { "ConfigVector___len__", _wrap_ConfigVector___len__, METH_O, NULL},
	 { "ConfigVector___getslice__", _wrap_ConfigVector___getslice__, METH_VARARGS, NULL},
	 { "ConfigVector___setslice__", _wrap_ConfigVector___setslice__, METH_VARARGS, NULL},
	 { "ConfigVector___delslice__", _wrap_ConfigVector___delslice__, METH_VARARGS, NULL},
	 { "ConfigVector___delitem__", _wrap_ConfigVector___delitem__, METH_VARARGS, NULL},
	 { "ConfigVector___getitem__", _wrap_ConfigVector___getitem__, METH_VARARGS, NULL},
	 { "ConfigVector___setitem__", _wrap_ConfigVector___setitem__, METH_VARARGS, NULL},
	 { "ConfigVector_pop", _wrap_ConfigVector_pop, METH_O, NULL},
	 { "ConfigVector_append", _wrap_ConfigVector_append, METH_VARARGS, NULL},
	 { "ConfigVector_empty", _wrap_ConfigVector_empty, METH_O, NULL},
	 { "ConfigVector_size", _wrap_ConfigVector_size, METH_O, NULL},
	 { "ConfigVector_swap", _wrap_ConfigVector_swap, METH_VARARGS, NULL},
	 { "ConfigVector_begin", _wrap_ConfigVector_begin, METH_O, NULL},
	 { "ConfigVector_end", _wrap_ConfigVector_end, METH_O, NULL},
	 { "ConfigVector_rbegin", _wrap_ConfigVector_rbegin, METH_O, NULL},
	 { "ConfigVector_rend", _wrap_ConfigVector_rend, METH_O, NULL},
	 { "ConfigVector_clear", _wrap_ConfigVector_clear, METH_O, NULL},
	 { "ConfigVector_get_allocator", _wrap_ConfigVector_get_allocator, METH_O, NULL},
	 { "ConfigVector_pop_back", _wrap_ConfigVector_pop_back, METH_O, NULL},
	 { "ConfigVector_erase", _wrap_ConfigVector_erase, METH_VARARGS, NULL},
	 { "new_ConfigVector", _wrap_new_ConfigVector, METH_VARARGS, NULL},
	 { "ConfigVector_push_back", _wrap_ConfigVector_push_back, METH_VARARGS, NULL},
	 { "ConfigVector_front", _wrap_ConfigVector_front, METH_O, NULL},
	 { "ConfigVector_back", _wrap_ConfigVector_back, METH_O, NULL},
	 { "ConfigVector_assign", _wrap_ConfigVector_assign, METH_VARARGS, NULL},
	 { "ConfigVector_resize", _wrap_ConfigVector_resize, METH_VARARGS, NULL},
	 { "ConfigVector_insert", _wrap_ConfigVector_insert, METH_VARARGS, NULL},
	 { "ConfigVector_reserve", _wrap_ConfigVector_reserve, METH_VARARGS, NULL},
	 { "ConfigVector_capacity", _wrap_ConfigVector_capacity, METH_O, NULL},
	 { "delete_ConfigVector", _wrap_delete_ConfigVector, METH_O, NULL},
	 { "ConfigVector_swigregister", ConfigVector_swigregister, METH_O, NULL},
	 { "ConfigVector_swiginit", ConfigVector_swiginit, METH_VARARGS, NULL},
	 { "ConfigMap_iterator", _wrap_ConfigMap_iterator, METH_O, NULL},
	 { "ConfigMap___nonzero__", _wrap_ConfigMap___nonzero__, METH_O, NULL},
	 { "ConfigMap___bool__", _wrap_ConfigMap___bool__, METH_O, NULL},
	 { "ConfigMap___len__", _wrap_ConfigMap___len__, METH_O, NULL},
	 { "ConfigMap___getitem__", _wrap_ConfigMap___getitem__, METH_VARARGS, NULL},
	 { "ConfigMap___delitem__", _wrap_ConfigMap___delitem__, METH_VARARGS, NULL},
	 { "ConfigMap_has_key", _wrap_ConfigMap_has_key, METH_VARARGS, NULL},
	 { "ConfigMap_keys", _wrap_ConfigMap_keys, METH_O, NULL},
	 { "ConfigMap_values", _wrap_ConfigMap_values, METH_O, NULL},
	 { "ConfigMap_items", _wrap_ConfigMap_items, METH_O, NULL},
	 { "ConfigMap___contains__", _wrap_ConfigMap___contains__, METH_VARARGS, NULL},
	 { "ConfigMap_key_iterator", _wrap_ConfigMap_key_iterator, METH_O, NULL},
	 { "ConfigMap_value_iterator", _wrap_ConfigMap_value_iterator, METH_O, NULL},
	 { "ConfigMap___setitem__", _wrap_ConfigMap___setitem__, METH_VARARGS, NULL},
	 { "ConfigMap_asdict", _wrap_ConfigMap_asdict, METH_O, NULL},
	 { "new_ConfigMap", _wrap_new_ConfigMap, METH_VARARGS, NULL},
	 { "ConfigMap_empty", _wrap_ConfigMap_empty, METH_O, NULL},
	 { "ConfigMap_size", _wrap_ConfigMap_size, METH_O, NULL},
	 { "ConfigMap_swap", _wrap_ConfigMap_swap, METH_VARARGS, NULL},
	 { "ConfigMap_begin", _wrap_ConfigMap_begin, METH_O, NULL},
	 { "ConfigMap_end", _wrap_ConfigMap_end, METH_O, NULL},
	 { "ConfigMap_rbegin", _wrap_ConfigMap_rbegin, METH_O, NULL},
	 { "ConfigMap_rend", _wrap_ConfigMap_rend, METH_O, NULL},
	 { "ConfigMap_clear", _wrap_ConfigMap_clear, METH_O, NULL},
	 { "ConfigMap_get_allocator", _wrap_ConfigMap_get_allocator, METH_O, NULL},
	 { "ConfigMap_count", _wrap_ConfigMap_count, METH_VARARGS, NULL},
	 { "ConfigMap_erase", _wrap_ConfigMap_erase, METH_VARARGS, NULL},
	 { "ConfigMap_find", _wrap_ConfigMap_find, METH_VARARGS, NULL},
	 { "ConfigMap_lower_bound", _wrap_ConfigMap_lower_bound, METH_VARARGS, NULL},
	 { "ConfigMap_upper_bound", _wrap_ConfigMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_ConfigMap", _wrap_delete_ConfigMap, METH_O, NULL},
	 { "ConfigMap_swigregister", ConfigMap_swigregister, METH_O, NULL},
	 { "ConfigMap_swiginit", ConfigMap_swiginit, METH_VARARGS, NULL},
	 { "ConfigSet_iterator", _wrap_ConfigSet_iterator, METH_O, NULL},
	 { "ConfigSet___nonzero__", _wrap_ConfigSet___nonzero__, METH_O, NULL},
	 { "ConfigSet___bool__", _wrap_ConfigSet___bool__, METH_O, NULL},
	 { "ConfigSet___len__", _wrap_ConfigSet___len__, METH_O, NULL},
	 { "ConfigSet_append", _wrap_ConfigSet_append, METH_VARARGS, NULL},
	 { "ConfigSet___contains__", _wrap_ConfigSet___contains__, METH_VARARGS, NULL},
	 { "ConfigSet___getitem__", _wrap_ConfigSet___getitem__, METH_VARARGS, NULL},
	 { "ConfigSet_add", _wrap_ConfigSet_add, METH_VARARGS, NULL},
	 { "ConfigSet_discard", _wrap_ConfigSet_discard, METH_VARARGS, NULL},
	 { "new_ConfigSet", _wrap_new_ConfigSet, METH_VARARGS, NULL},
	 { "ConfigSet_empty", _wrap_ConfigSet_empty, METH_O, NULL},
	 { "ConfigSet_size", _wrap_ConfigSet_size, METH_O, NULL},
	 { "ConfigSet_clear", _wrap_ConfigSet_clear, METH_O, NULL},
	 { "ConfigSet_swap", _wrap_ConfigSet_swap, METH_VARARGS, NULL},
	 { "ConfigSet_count", _wrap_ConfigSet_count, METH_VARARGS, NULL},
	 { "ConfigSet_begin", _wrap_ConfigSet_begin, METH_O, NULL},
	 { "ConfigSet_end", _wrap_ConfigSet_end, METH_O, NULL},
	 { "ConfigSet_rbegin", _wrap_ConfigSet_rbegin, METH_O, NULL},
	 { "ConfigSet_rend", _wrap_ConfigSet_rend, METH_O, NULL},
	 { "ConfigSet_erase", _wrap_ConfigSet_erase, METH_VARARGS, NULL},
	 { "ConfigSet_find", _wrap_ConfigSet_find, METH_VARARGS, NULL},
	 { "ConfigSet_lower_bound", _wrap_ConfigSet_lower_bound, METH_VARARGS, NULL},
	 { "ConfigSet_upper_bound", _wrap_ConfigSet_upper_bound, METH_VARARGS, NULL},
	 { "ConfigSet_equal_range", _wrap_ConfigSet_equal_range, METH_VARARGS, NULL},
	 { "ConfigSet_insert", _wrap_ConfigSet_insert, METH_VARARGS, NULL},
	 { "delete_ConfigSet", _wrap_delete_ConfigSet, METH_O, NULL},
	 { "ConfigSet_swigregister", ConfigSet_swigregister, METH_O, NULL},
	 { "ConfigSet_swiginit", ConfigSet_swiginit, METH_VARARGS, NULL},
	 { "CapabilityVector_iterator", _wrap_CapabilityVector_iterator, METH_O, NULL},
	 { "CapabilityVector___nonzero__", _wrap_CapabilityVector___nonzero__, METH_O, NULL},
	 { "CapabilityVector___bool__", _wrap_CapabilityVector___bool__, METH_O, NULL},
	 { "CapabilityVector___len__", _wrap_CapabilityVector___len__, METH_O, NULL},
	 { "CapabilityVector___getslice__", _wrap_CapabilityVector___getslice__, METH_VARARGS, NULL},
	 { "CapabilityVector___setslice__", _wrap_CapabilityVector___setslice__, METH_VARARGS, NULL},
	 { "CapabilityVector___delslice__", _wrap_CapabilityVector___delslice__, METH_VARARGS, NULL},
	 { "CapabilityVector___delitem__", _wrap_CapabilityVector___delitem__, METH_VARARGS, NULL},
	 { "CapabilityVector___getitem__", _wrap_CapabilityVector___getitem__, METH_VARARGS, NULL},
	 { "CapabilityVector___setitem__", _wrap_CapabilityVector___setitem__, METH_VARARGS, NULL},
	 { "CapabilityVector_pop", _wrap_CapabilityVector_pop, METH_O, NULL},
	 { "CapabilityVector_append", _wrap_CapabilityVector_append, METH_VARARGS, NULL},
	 { "CapabilityVector_empty", _wrap_CapabilityVector_empty, METH_O, NULL},
	 { "CapabilityVector_size", _wrap_CapabilityVector_size, METH_O, NULL},
	 { "CapabilityVector_swap", _wrap_CapabilityVector_swap, METH_VARARGS, NULL},
	 { "CapabilityVector_begin", _wrap_CapabilityVector_begin, METH_O, NULL},
	 { "CapabilityVector_end", _wrap_CapabilityVector_end, METH_O, NULL},
	 { "CapabilityVector_rbegin", _wrap_CapabilityVector_rbegin, METH_O, NULL},
	 { "CapabilityVector_rend", _wrap_CapabilityVector_rend, METH_O, NULL},
	 { "CapabilityVector_clear", _wrap_CapabilityVector_clear, METH_O, NULL},
	 { "CapabilityVector_get_allocator", _wrap_CapabilityVector_get_allocator, METH_O, NULL},
	 { "CapabilityVector_pop_back", _wrap_CapabilityVector_pop_back, METH_O, NULL},
	 { "CapabilityVector_erase", _wrap_CapabilityVector_erase, METH_VARARGS, NULL},
	 { "new_CapabilityVector", _wrap_new_CapabilityVector, METH_VARARGS, NULL},
	 { "CapabilityVector_push_back", _wrap_CapabilityVector_push_back, METH_VARARGS, NULL},
	 { "CapabilityVector_front", _wrap_CapabilityVector_front, METH_O, NULL},
	 { "CapabilityVector_back", _wrap_CapabilityVector_back, METH_O, NULL},
	 { "CapabilityVector_assign", _wrap_CapabilityVector_assign, METH_VARARGS, NULL},
	 { "CapabilityVector_resize", _wrap_CapabilityVector_resize, METH_VARARGS, NULL},
	 { "CapabilityVector_insert", _wrap_CapabilityVector_insert, METH_VARARGS, NULL},
	 { "CapabilityVector_reserve", _wrap_CapabilityVector_reserve, METH_VARARGS, NULL},
	 { "CapabilityVector_capacity", _wrap_CapabilityVector_capacity, METH_O, NULL},
	 { "delete_CapabilityVector", _wrap_delete_CapabilityVector, METH_O, NULL},
	 { "CapabilityVector_swigregister", CapabilityVector_swigregister, METH_O, NULL},
	 { "CapabilityVector_swiginit", CapabilityVector_swiginit, METH_VARARGS, NULL},
	 { "CapabilitySet_iterator", _wrap_CapabilitySet_iterator, METH_O, NULL},
	 { "CapabilitySet___nonzero__", _wrap_CapabilitySet___nonzero__, METH_O, NULL},
	 { "CapabilitySet___bool__", _wrap_CapabilitySet___bool__, METH_O, NULL},
	 { "CapabilitySet___len__", _wrap_CapabilitySet___len__, METH_O, NULL},
	 { "CapabilitySet_append", _wrap_CapabilitySet_append, METH_VARARGS, NULL},
	 { "CapabilitySet___contains__", _wrap_CapabilitySet___contains__, METH_VARARGS, NULL},
	 { "CapabilitySet___getitem__", _wrap_CapabilitySet___getitem__, METH_VARARGS, NULL},
	 { "CapabilitySet_add", _wrap_CapabilitySet_add, METH_VARARGS, NULL},
	 { "CapabilitySet_discard", _wrap_CapabilitySet_discard, METH_VARARGS, NULL},
	 { "new_CapabilitySet", _wrap_new_CapabilitySet, METH_VARARGS, NULL},
	 { "CapabilitySet_empty", _wrap_CapabilitySet_empty, METH_O, NULL},
	 { "CapabilitySet_size", _wrap_CapabilitySet_size, METH_O, NULL},
	 { "CapabilitySet_clear", _wrap_CapabilitySet_clear, METH_O, NULL},
	 { "CapabilitySet_swap", _wrap_CapabilitySet_swap, METH_VARARGS, NULL},
	 { "CapabilitySet_count", _wrap_CapabilitySet_count, METH_VARARGS, NULL},
	 { "CapabilitySet_begin", _wrap_CapabilitySet_begin, METH_O, NULL},
	 { "CapabilitySet_end", _wrap_CapabilitySet_end, METH_O, NULL},
	 { "CapabilitySet_rbegin", _wrap_CapabilitySet_rbegin, METH_O, NULL},
	 { "CapabilitySet_rend", _wrap_CapabilitySet_rend, METH_O, NULL},
	 { "CapabilitySet_erase", _wrap_CapabilitySet_erase, METH_VARARGS, NULL},
	 { "CapabilitySet_find", _wrap_CapabilitySet_find, METH_VARARGS, NULL},
	 { "CapabilitySet_lower_bound", _wrap_CapabilitySet_lower_bound, METH_VARARGS, NULL},
	 { "CapabilitySet_upper_bound", _wrap_CapabilitySet_upper_bound, METH_VARARGS, NULL},
	 { "CapabilitySet_equal_range", _wrap_CapabilitySet_equal_range, METH_VARARGS, NULL},
	 { "CapabilitySet_insert", _wrap_CapabilitySet_insert, METH_VARARGS, NULL},
	 { "delete_CapabilitySet", _wrap_delete_CapabilitySet, METH_O, NULL},
	 { "CapabilitySet_swigregister", CapabilitySet_swigregister, METH_O, NULL},
	 { "CapabilitySet_swiginit", CapabilitySet_swiginit, METH_VARARGS, NULL},
	 { "OptionVector_iterator", _wrap_OptionVector_iterator, METH_O, NULL},
	 { "OptionVector___nonzero__", _wrap_OptionVector___nonzero__, METH_O, NULL},
	 { "OptionVector___bool__", _wrap_OptionVector___bool__, METH_O, NULL},
	 { "OptionVector___len__", _wrap_OptionVector___len__, METH_O, NULL},
	 { "OptionVector___getslice__", _wrap_OptionVector___getslice__, METH_VARARGS, NULL},
	 { "OptionVector___setslice__", _wrap_OptionVector___setslice__, METH_VARARGS, NULL},
	 { "OptionVector___delslice__", _wrap_OptionVector___delslice__, METH_VARARGS, NULL},
	 { "OptionVector___delitem__", _wrap_OptionVector___delitem__, METH_VARARGS, NULL},
	 { "OptionVector___getitem__", _wrap_OptionVector___getitem__, METH_VARARGS, NULL},
	 { "OptionVector___setitem__", _wrap_OptionVector___setitem__, METH_VARARGS, NULL},
	 { "OptionVector_pop", _wrap_OptionVector_pop, METH_O, NULL},
	 { "OptionVector_append", _wrap_OptionVector_append, METH_VARARGS, NULL},
	 { "OptionVector_empty", _wrap_OptionVector_empty, METH_O, NULL},
	 { "OptionVector_size", _wrap_OptionVector_size, METH_O, NULL},
	 { "OptionVector_swap", _wrap_OptionVector_swap, METH_VARARGS, NULL},
	 { "OptionVector_begin", _wrap_OptionVector_begin, METH_O, NULL},
	 { "OptionVector_end", _wrap_OptionVector_end, METH_O, NULL},
	 { "OptionVector_rbegin", _wrap_OptionVector_rbegin, METH_O, NULL},
	 { "OptionVector_rend", _wrap_OptionVector_rend, METH_O, NULL},
	 { "OptionVector_clear", _wrap_OptionVector_clear, METH_O, NULL},
	 { "OptionVector_get_allocator", _wrap_OptionVector_get_allocator, METH_O, NULL},
	 { "OptionVector_pop_back", _wrap_OptionVector_pop_back, METH_O, NULL},
	 { "OptionVector_erase", _wrap_OptionVector_erase, METH_VARARGS, NULL},
	 { "new_OptionVector", _wrap_new_OptionVector, METH_VARARGS, NULL},
	 { "OptionVector_push_back", _wrap_OptionVector_push_back, METH_VARARGS, NULL},
	 { "OptionVector_front", _wrap_OptionVector_front, METH_O, NULL},
	 { "OptionVector_back", _wrap_OptionVector_back, METH_O, NULL},
	 { "OptionVector_assign", _wrap_OptionVector_assign, METH_VARARGS, NULL},
	 { "OptionVector_resize", _wrap_OptionVector_resize, METH_VARARGS, NULL},
	 { "OptionVector_insert", _wrap_OptionVector_insert, METH_VARARGS, NULL},
	 { "OptionVector_reserve", _wrap_OptionVector_reserve, METH_VARARGS, NULL},
	 { "OptionVector_capacity", _wrap_OptionVector_capacity, METH_O, NULL},
	 { "delete_OptionVector", _wrap_delete_OptionVector, METH_O, NULL},
	 { "OptionVector_swigregister", OptionVector_swigregister, METH_O, NULL},
	 { "OptionVector_swiginit", OptionVector_swiginit, METH_VARARGS, NULL},
	 { "OptionMap_iterator", _wrap_OptionMap_iterator, METH_O, NULL},
	 { "OptionMap___nonzero__", _wrap_OptionMap___nonzero__, METH_O, NULL},
	 { "OptionMap___bool__", _wrap_OptionMap___bool__, METH_O, NULL},
	 { "OptionMap___len__", _wrap_OptionMap___len__, METH_O, NULL},
	 { "OptionMap___getitem__", _wrap_OptionMap___getitem__, METH_VARARGS, NULL},
	 { "OptionMap___delitem__", _wrap_OptionMap___delitem__, METH_VARARGS, NULL},
	 { "OptionMap_has_key", _wrap_OptionMap_has_key, METH_VARARGS, NULL},
	 { "OptionMap_keys", _wrap_OptionMap_keys, METH_O, NULL},
	 { "OptionMap_values", _wrap_OptionMap_values, METH_O, NULL},
	 { "OptionMap_items", _wrap_OptionMap_items, METH_O, NULL},
	 { "OptionMap___contains__", _wrap_OptionMap___contains__, METH_VARARGS, NULL},
	 { "OptionMap_key_iterator", _wrap_OptionMap_key_iterator, METH_O, NULL},
	 { "OptionMap_value_iterator", _wrap_OptionMap_value_iterator, METH_O, NULL},
	 { "OptionMap___setitem__", _wrap_OptionMap___setitem__, METH_VARARGS, NULL},
	 { "OptionMap_asdict", _wrap_OptionMap_asdict, METH_O, NULL},
	 { "new_OptionMap", _wrap_new_OptionMap, METH_VARARGS, NULL},
	 { "OptionMap_empty", _wrap_OptionMap_empty, METH_O, NULL},
	 { "OptionMap_size", _wrap_OptionMap_size, METH_O, NULL},
	 { "OptionMap_swap", _wrap_OptionMap_swap, METH_VARARGS, NULL},
	 { "OptionMap_begin", _wrap_OptionMap_begin, METH_O, NULL},
	 { "OptionMap_end", _wrap_OptionMap_end, METH_O, NULL},
	 { "OptionMap_rbegin", _wrap_OptionMap_rbegin, METH_O, NULL},
	 { "OptionMap_rend", _wrap_OptionMap_rend, METH_O, NULL},
	 { "OptionMap_clear", _wrap_OptionMap_clear, METH_O, NULL},
	 { "OptionMap_get_allocator", _wrap_OptionMap_get_allocator, METH_O, NULL},
	 { "OptionMap_count", _wrap_OptionMap_count, METH_VARARGS, NULL},
	 { "OptionMap_erase", _wrap_OptionMap_erase, METH_VARARGS, NULL},
	 { "OptionMap_find", _wrap_OptionMap_find, METH_VARARGS, NULL},
	 { "OptionMap_lower_bound", _wrap_OptionMap_lower_bound, METH_VARARGS, NULL},
	 { "OptionMap_upper_bound", _wrap_OptionMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_OptionMap", _wrap_delete_OptionMap, METH_O, NULL},
	 { "OptionMap_swigregister", OptionMap_swigregister, METH_O, NULL},
	 { "OptionMap_swiginit", OptionMap_swiginit, METH_VARARGS, NULL},
	 { "VariantVector_iterator", _wrap_VariantVector_iterator, METH_O, NULL},
	 { "VariantVector___nonzero__", _wrap_VariantVector___nonzero__, METH_O, NULL},
	 { "VariantVector___bool__", _wrap_VariantVector___bool__, METH_O, NULL},
	 { "VariantVector___len__", _wrap_VariantVector___len__, METH_O, NULL},
	 { "VariantVector___getslice__", _wrap_VariantVector___getslice__, METH_VARARGS, NULL},
	 { "VariantVector___setslice__", _wrap_VariantVector___setslice__, METH_VARARGS, NULL},
	 { "VariantVector___delslice__", _wrap_VariantVector___delslice__, METH_VARARGS, NULL},
	 { "VariantVector___delitem__", _wrap_VariantVector___delitem__, METH_VARARGS, NULL},
	 { "VariantVector___getitem__", _wrap_VariantVector___getitem__, METH_VARARGS, NULL},
	 { "VariantVector___setitem__", _wrap_VariantVector___setitem__, METH_VARARGS, NULL},
	 { "VariantVector_pop", _wrap_VariantVector_pop, METH_O, NULL},
	 { "VariantVector_append", _wrap_VariantVector_append, METH_VARARGS, NULL},
	 { "VariantVector_empty", _wrap_VariantVector_empty, METH_O, NULL},
	 { "VariantVector_size", _wrap_VariantVector_size, METH_O, NULL},
	 { "VariantVector_swap", _wrap_VariantVector_swap, METH_VARARGS, NULL},
	 { "VariantVector_begin", _wrap_VariantVector_begin, METH_O, NULL},
	 { "VariantVector_end", _wrap_VariantVector_end, METH_O, NULL},
	 { "VariantVector_rbegin", _wrap_VariantVector_rbegin, METH_O, NULL},
	 { "VariantVector_rend", _wrap_VariantVector_rend, METH_O, NULL},
	 { "VariantVector_clear", _wrap_VariantVector_clear, METH_O, NULL},
	 { "VariantVector_get_allocator", _wrap_VariantVector_get_allocator, METH_O, NULL},
	 { "VariantVector_pop_back", _wrap_VariantVector_pop_back, METH_O, NULL},
	 { "VariantVector_erase", _wrap_VariantVector_erase, METH_VARARGS, NULL},
	 { "new_VariantVector", _wrap_new_VariantVector, METH_VARARGS, NULL},
	 { "VariantVector_push_back", _wrap_VariantVector_push_back, METH_VARARGS, NULL},
	 { "VariantVector_front", _wrap_VariantVector_front, METH_O, NULL},
	 { "VariantVector_back", _wrap_VariantVector_back, METH_O, NULL},
	 { "VariantVector_assign", _wrap_VariantVector_assign, METH_VARARGS, NULL},
	 { "VariantVector_resize", _wrap_VariantVector_resize, METH_VARARGS, NULL},
	 { "VariantVector_insert", _wrap_VariantVector_insert, METH_VARARGS, NULL},
	 { "VariantVector_reserve", _wrap_VariantVector_reserve, METH_VARARGS, NULL},
	 { "VariantVector_capacity", _wrap_VariantVector_capacity, METH_O, NULL},
	 { "delete_VariantVector", _wrap_delete_VariantVector, METH_O, NULL},
	 { "VariantVector_swigregister", VariantVector_swigregister, METH_O, NULL},
	 { "VariantVector_swiginit", VariantVector_swiginit, METH_VARARGS, NULL},
	 { "VariantMap_iterator", _wrap_VariantMap_iterator, METH_O, NULL},
	 { "VariantMap___nonzero__", _wrap_VariantMap___nonzero__, METH_O, NULL},
	 { "VariantMap___bool__", _wrap_VariantMap___bool__, METH_O, NULL},
	 { "VariantMap___len__", _wrap_VariantMap___len__, METH_O, NULL},
	 { "VariantMap___getitem__", _wrap_VariantMap___getitem__, METH_VARARGS, NULL},
	 { "VariantMap___delitem__", _wrap_VariantMap___delitem__, METH_VARARGS, NULL},
	 { "VariantMap_has_key", _wrap_VariantMap_has_key, METH_VARARGS, NULL},
	 { "VariantMap_keys", _wrap_VariantMap_keys, METH_O, NULL},
	 { "VariantMap_values", _wrap_VariantMap_values, METH_O, NULL},
	 { "VariantMap_items", _wrap_VariantMap_items, METH_O, NULL},
	 { "VariantMap___contains__", _wrap_VariantMap___contains__, METH_VARARGS, NULL},
	 { "VariantMap_key_iterator", _wrap_VariantMap_key_iterator, METH_O, NULL},
	 { "VariantMap_value_iterator", _wrap_VariantMap_value_iterator, METH_O, NULL},
	 { "VariantMap___setitem__", _wrap_VariantMap___setitem__, METH_VARARGS, NULL},
	 { "VariantMap_asdict", _wrap_VariantMap_asdict, METH_O, NULL},
	 { "new_VariantMap", _wrap_new_VariantMap, METH_VARARGS, NULL},
	 { "VariantMap_empty", _wrap_VariantMap_empty, METH_O, NULL},
	 { "VariantMap_size", _wrap_VariantMap_size, METH_O, NULL},
	 { "VariantMap_swap", _wrap_VariantMap_swap, METH_VARARGS, NULL},
	 { "VariantMap_begin", _wrap_VariantMap_begin, METH_O, NULL},
	 { "VariantMap_end", _wrap_VariantMap_end, METH_O, NULL},
	 { "VariantMap_rbegin", _wrap_VariantMap_rbegin, METH_O, NULL},
	 { "VariantMap_rend", _wrap_VariantMap_rend, METH_O, NULL},
	 { "VariantMap_clear", _wrap_VariantMap_clear, METH_O, NULL},
	 { "VariantMap_get_allocator", _wrap_VariantMap_get_allocator, METH_O, NULL},
	 { "VariantMap_count", _wrap_VariantMap_count, METH_VARARGS, NULL},
	 { "VariantMap_erase", _wrap_VariantMap_erase, METH_VARARGS, NULL},
	 { "VariantMap_find", _wrap_VariantMap_find, METH_VARARGS, NULL},
	 { "VariantMap_lower_bound", _wrap_VariantMap_lower_bound, METH_VARARGS, NULL},
	 { "VariantMap_upper_bound", _wrap_VariantMap_upper_bound, METH_VARARGS, NULL},
	 { "delete_VariantMap", _wrap_delete_VariantMap, METH_O, NULL},
	 { "VariantMap_swigregister", VariantMap_swigregister, METH_O, NULL},
	 { "VariantMap_swiginit", VariantMap_swiginit, METH_VARARGS, NULL},
	 { "QuantityFlagVector_iterator", _wrap_QuantityFlagVector_iterator, METH_O, NULL},
	 { "QuantityFlagVector___nonzero__", _wrap_QuantityFlagVector___nonzero__, METH_O, NULL},
	 { "QuantityFlagVector___bool__", _wrap_QuantityFlagVector___bool__, METH_O, NULL},
	 { "QuantityFlagVector___len__", _wrap_QuantityFlagVector___len__, METH_O, NULL},
	 { "QuantityFlagVector___getslice__", _wrap_QuantityFlagVector___getslice__, METH_VARARGS, NULL},
	 { "QuantityFlagVector___setslice__", _wrap_QuantityFlagVector___setslice__, METH_VARARGS, NULL},
	 { "QuantityFlagVector___delslice__", _wrap_QuantityFlagVector___delslice__, METH_VARARGS, NULL},
	 { "QuantityFlagVector___delitem__", _wrap_QuantityFlagVector___delitem__, METH_VARARGS, NULL},
	 { "QuantityFlagVector___getitem__", _wrap_QuantityFlagVector___getitem__, METH_VARARGS, NULL},
	 { "QuantityFlagVector___setitem__", _wrap_QuantityFlagVector___setitem__, METH_VARARGS, NULL},
	 { "QuantityFlagVector_pop", _wrap_QuantityFlagVector_pop, METH_O, NULL},
	 { "QuantityFlagVector_append", _wrap_QuantityFlagVector_append, METH_VARARGS, NULL},
	 { "QuantityFlagVector_empty", _wrap_QuantityFlagVector_empty, METH_O, NULL},
	 { "QuantityFlagVector_size", _wrap_QuantityFlagVector_size, METH_O, NULL},
	 { "QuantityFlagVector_swap", _wrap_QuantityFlagVector_swap, METH_VARARGS, NULL},
	 { "QuantityFlagVector_begin", _wrap_QuantityFlagVector_begin, METH_O, NULL},
	 { "QuantityFlagVector_end", _wrap_QuantityFlagVector_end, METH_O, NULL},
	 { "QuantityFlagVector_rbegin", _wrap_QuantityFlagVector_rbegin, METH_O, NULL},
	 { "QuantityFlagVector_rend", _wrap_QuantityFlagVector_rend, METH_O, NULL},
	 { "QuantityFlagVector_clear", _wrap_QuantityFlagVector_clear, METH_O, NULL},
	 { "QuantityFlagVector_get_allocator", _wrap_QuantityFlagVector_get_allocator, METH_O, NULL},
	 { "QuantityFlagVector_pop_back", _wrap_QuantityFlagVector_pop_back, METH_O, NULL},
	 { "QuantityFlagVector_erase", _wrap_QuantityFlagVector_erase, METH_VARARGS, NULL},
	 { "new_QuantityFlagVector", _wrap_new_QuantityFlagVector, METH_VARARGS, NULL},
	 { "QuantityFlagVector_push_back", _wrap_QuantityFlagVector_push_back, METH_VARARGS, NULL},
	 { "QuantityFlagVector_front", _wrap_QuantityFlagVector_front, METH_O, NULL},
	 { "QuantityFlagVector_back", _wrap_QuantityFlagVector_back, METH_O, NULL},
	 { "QuantityFlagVector_assign", _wrap_QuantityFlagVector_assign, METH_VARARGS, NULL},
	 { "QuantityFlagVector_resize", _wrap_QuantityFlagVector_resize, METH_VARARGS, NULL},
	 { "QuantityFlagVector_insert", _wrap_QuantityFlagVector_insert, METH_VARARGS, NULL},
	 { "QuantityFlagVector_reserve", _wrap_QuantityFlagVector_reserve, METH_VARARGS, NULL},
	 { "QuantityFlagVector_capacity", _wrap_QuantityFlagVector_capacity, METH_O, NULL},
	 { "delete_QuantityFlagVector", _wrap_delete_QuantityFlagVector, METH_O, NULL},
	 { "QuantityFlagVector_swigregister", QuantityFlagVector_swigregister, METH_O, NULL},
	 { "QuantityFlagVector_swiginit", QuantityFlagVector_swiginit, METH_VARARGS, NULL},
	 { "TriggerStageVector_iterator", _wrap_TriggerStageVector_iterator, METH_O, NULL},
	 { "TriggerStageVector___nonzero__", _wrap_TriggerStageVector___nonzero__, METH_O, NULL},
	 { "TriggerStageVector___bool__", _wrap_TriggerStageVector___bool__, METH_O, NULL},
	 { "TriggerStageVector___len__", _wrap_TriggerStageVector___len__, METH_O, NULL},
	 { "TriggerStageVector___getslice__", _wrap_TriggerStageVector___getslice__, METH_VARARGS, NULL},
	 { "TriggerStageVector___setslice__", _wrap_TriggerStageVector___setslice__, METH_VARARGS, NULL},
	 { "TriggerStageVector___delslice__", _wrap_TriggerStageVector___delslice__, METH_VARARGS, NULL},
	 { "TriggerStageVector___delitem__", _wrap_TriggerStageVector___delitem__, METH_VARARGS, NULL},
	 { "TriggerStageVector___getitem__", _wrap_TriggerStageVector___getitem__, METH_VARARGS, NULL},
	 { "TriggerStageVector___setitem__", _wrap_TriggerStageVector___setitem__, METH_VARARGS, NULL},
	 { "TriggerStageVector_pop", _wrap_TriggerStageVector_pop, METH_O, NULL},
	 { "TriggerStageVector_append", _wrap_TriggerStageVector_append, METH_VARARGS, NULL},
	 { "TriggerStageVector_empty", _wrap_TriggerStageVector_empty, METH_O, NULL},
	 { "TriggerStageVector_size", _wrap_TriggerStageVector_size, METH_O, NULL},
	 { "TriggerStageVector_swap", _wrap_TriggerStageVector_swap, METH_VARARGS, NULL},
	 { "TriggerStageVector_begin", _wrap_TriggerStageVector_begin, METH_O, NULL},
	 { "TriggerStageVector_end", _wrap_TriggerStageVector_end, METH_O, NULL},
	 { "TriggerStageVector_rbegin", _wrap_TriggerStageVector_rbegin, METH_O, NULL},
	 { "TriggerStageVector_rend", _wrap_TriggerStageVector_rend, METH_O, NULL},
	 { "TriggerStageVector_clear", _wrap_TriggerStageVector_clear, METH_O, NULL},
	 { "TriggerStageVector_get_allocator", _wrap_TriggerStageVector_get_allocator, METH_O, NULL},
	 { "TriggerStageVector_pop_back", _wrap_TriggerStageVector_pop_back, METH_O, NULL},
	 { "TriggerStageVector_erase", _wrap_TriggerStageVector_erase, METH_VARARGS, NULL},
	 { "new_TriggerStageVector", _wrap_new_TriggerStageVector, METH_VARARGS, NULL},
	 { "TriggerStageVector_push_back", _wrap_TriggerStageVector_push_back, METH_VARARGS, NULL},
	 { "TriggerStageVector_front", _wrap_TriggerStageVector_front, METH_O, NULL},
	 { "TriggerStageVector_back", _wrap_TriggerStageVector_back, METH_O, NULL},
	 { "TriggerStageVector_assign", _wrap_TriggerStageVector_assign, METH_VARARGS, NULL},
	 { "TriggerStageVector_resize", _wrap_TriggerStageVector_resize, METH_VARARGS, NULL},
	 { "TriggerStageVector_insert", _wrap_TriggerStageVector_insert, METH_VARARGS, NULL},
	 { "TriggerStageVector_reserve", _wrap_TriggerStageVector_reserve, METH_VARARGS, NULL},
	 { "TriggerStageVector_capacity", _wrap_TriggerStageVector_capacity, METH_O, NULL},
	 { "delete_TriggerStageVector", _wrap_delete_TriggerStageVector, METH_O, NULL},
	 { "TriggerStageVector_swigregister", TriggerStageVector_swigregister, METH_O, NULL},
	 { "TriggerStageVector_swiginit", TriggerStageVector_swiginit, METH_VARARGS, NULL},
	 { "TriggerMatchVector_iterator", _wrap_TriggerMatchVector_iterator, METH_O, NULL},
	 { "TriggerMatchVector___nonzero__", _wrap_TriggerMatchVector___nonzero__, METH_O, NULL},
	 { "TriggerMatchVector___bool__", _wrap_TriggerMatchVector___bool__, METH_O, NULL},
	 { "TriggerMatchVector___len__", _wrap_TriggerMatchVector___len__, METH_O, NULL},
	 { "TriggerMatchVector___getslice__", _wrap_TriggerMatchVector___getslice__, METH_VARARGS, NULL},
	 { "TriggerMatchVector___setslice__", _wrap_TriggerMatchVector___setslice__, METH_VARARGS, NULL},
	 { "TriggerMatchVector___delslice__", _wrap_TriggerMatchVector___delslice__, METH_VARARGS, NULL},
	 { "TriggerMatchVector___delitem__", _wrap_TriggerMatchVector___delitem__, METH_VARARGS, NULL},
	 { "TriggerMatchVector___getitem__", _wrap_TriggerMatchVector___getitem__, METH_VARARGS, NULL},
	 { "TriggerMatchVector___setitem__", _wrap_TriggerMatchVector___setitem__, METH_VARARGS, NULL},
	 { "TriggerMatchVector_pop", _wrap_TriggerMatchVector_pop, METH_O, NULL},
	 { "TriggerMatchVector_append", _wrap_TriggerMatchVector_append, METH_VARARGS, NULL},
	 { "TriggerMatchVector_empty", _wrap_TriggerMatchVector_empty, METH_O, NULL},
	 { "TriggerMatchVector_size", _wrap_TriggerMatchVector_size, METH_O, NULL},
	 { "TriggerMatchVector_swap", _wrap_TriggerMatchVector_swap, METH_VARARGS, NULL},
	 { "TriggerMatchVector_begin", _wrap_TriggerMatchVector_begin, METH_O, NULL},
	 { "TriggerMatchVector_end", _wrap_TriggerMatchVector_end, METH_O, NULL},
	 { "TriggerMatchVector_rbegin", _wrap_TriggerMatchVector_rbegin, METH_O, NULL},
	 { "TriggerMatchVector_rend", _wrap_TriggerMatchVector_rend, METH_O, NULL},
	 { "TriggerMatchVector_clear", _wrap_TriggerMatchVector_clear, METH_O, NULL},
	 { "TriggerMatchVector_get_allocator", _wrap_TriggerMatchVector_get_allocator, METH_O, NULL},
	 { "TriggerMatchVector_pop_back", _wrap_TriggerMatchVector_pop_back, METH_O, NULL},
	 { "TriggerMatchVector_erase", _wrap_TriggerMatchVector_erase, METH_VARARGS, NULL},
	 { "new_TriggerMatchVector", _wrap_new_TriggerMatchVector, METH_VARARGS, NULL},
	 { "TriggerMatchVector_push_back", _wrap_TriggerMatchVector_push_back, METH_VARARGS, NULL},
	 { "TriggerMatchVector_front", _wrap_TriggerMatchVector_front, METH_O, NULL},
	 { "TriggerMatchVector_back", _wrap_TriggerMatchVector_back, METH_O, NULL},
	 { "TriggerMatchVector_assign", _wrap_TriggerMatchVector_assign, METH_VARARGS, NULL},
	 { "TriggerMatchVector_resize", _wrap_TriggerMatchVector_resize, METH_VARARGS, NULL},
	 { "TriggerMatchVector_insert", _wrap_TriggerMatchVector_insert, METH_VARARGS, NULL},
	 { "TriggerMatchVector_reserve", _wrap_TriggerMatchVector_reserve, METH_VARARGS, NULL},
	 { "TriggerMatchVector_capacity", _wrap_TriggerMatchVector_capacity, METH_O, NULL},
	 { "delete_TriggerMatchVector", _wrap_delete_TriggerMatchVector, METH_O, NULL},
	 { "TriggerMatchVector_swigregister", TriggerMatchVector_swigregister, METH_O, NULL},
	 { "TriggerMatchVector_swiginit", TriggerMatchVector_swiginit, METH_VARARGS, NULL},
	 { "new_Error", _wrap_new_Error, METH_O, NULL},
	 { "delete_Error", _wrap_delete_Error, METH_O, NULL},
	 { "Error_result_get", _wrap_Error_result_get, METH_O, NULL},
	 { "Error_what", _wrap_Error_what, METH_O, NULL},
	 { "Error_swigregister", Error_swigregister, METH_O, NULL},
	 { "Error_swiginit", Error_swiginit, METH_VARARGS, NULL},
	 { "delete_ResourceReader", _wrap_delete_ResourceReader, METH_O, NULL},
	 { "ResourceReader_swigregister", ResourceReader_swigregister, METH_O, NULL},
	 { "Context_create", _wrap_Context_create, METH_NOARGS, NULL},
	 { "Context__drivers", _wrap_Context__drivers, METH_O, "Available hardware drivers, indexed by name."},
	 { "Context__input_formats", _wrap_Context__input_formats, METH_O, "Available input formats, indexed by name."},
	 { "Context_input_format_match", _wrap_Context_input_format_match, METH_VARARGS, "Lookup the responsible input module for an input file."},
	 { "Context__output_formats", _wrap_Context__output_formats, METH_O, "Available output formats, indexed by name."},
	 { "Context_set_log_callback", _wrap_Context_set_log_callback, METH_VARARGS, "\n"
		"Set the log callback.\n"
		"@param callback Callback of the form callback(LogLevel, string).\n"
		""},
	 { "Context_set_log_callback_default", _wrap_Context_set_log_callback_default, METH_O, "Set the log callback to the default handler."},
	 { "Context_set_resource_reader", _wrap_Context_set_resource_reader, METH_VARARGS, "\n"
		"Install a delegate for reading resource files.\n"
		"@param reader The resource reader delegate, or nullptr to unset.\n"
		""},
	 { "Context_create_session", _wrap_Context_create_session, METH_O, "Create a new session."},
	 { "Context_create_user_device", _wrap_Context_create_user_device, METH_VARARGS, "Create a new user device."},
	 { "Context_create_header_packet", _wrap_Context_create_header_packet, METH_VARARGS, "Create a header packet."},
	 { "Context_create_meta_packet", _wrap_Context_create_meta_packet, METH_VARARGS, "Create a meta packet."},
	 { "Context_create_logic_packet", _wrap_Context_create_logic_packet, METH_VARARGS, "Create a logic packet."},
	 { "Context_create_analog_packet", _wrap_Context_create_analog_packet, METH_VARARGS, "Create an analog packet."},
	 { "Context_create_end_packet", _wrap_Context_create_end_packet, METH_O, "Create an end packet."},
	 { "Context_load_session", _wrap_Context_load_session, METH_VARARGS, "\n"
		"Load a saved session.\n"
		"@param filename File name string.\n"
		""},
	 { "Context_create_trigger", _wrap_Context_create_trigger, METH_VARARGS, "\n"
		"Create a new trigger.\n"
		"@param name Name string for new trigger.\n"
		""},
	 { "Context_open_file", _wrap_Context_open_file, METH_VARARGS, "\n"
		"Open an input file.\n"
		"@param filename File name string.\n"
		""},
	 { "Context_open_stream", _wrap_Context_open_stream, METH_VARARGS, "\n"
		"Open an input stream based on header data.\n"
		"@param header Initial data from stream.\n"
		""},
	 { "Context_serials", _wrap_Context_serials, METH_VARARGS, NULL},
	 { "delete_Context", _wrap_delete_Context, METH_O, NULL},
	 { "Context_package_version_get", _wrap_Context_package_version_get, METH_O, NULL},
	 { "Context_lib_version_get", _wrap_Context_lib_version_get, METH_O, NULL},
	 { "Context_log_level_set", _wrap_Context_log_level_set, METH_VARARGS, "Current log level."},
	 { "Context_log_level_get", _wrap_Context_log_level_get, METH_O, "Current log level."},
	 { "Context__create_logic_packet_buf", _wrap_Context__create_logic_packet_buf, METH_VARARGS, NULL},
	 { "Context_swigregister", Context_swigregister, METH_O, NULL},
	 { "Configurable_config_keys", _wrap_Configurable_config_keys, METH_O, "Supported configuration keys."},
	 { "Configurable_config_get", _wrap_Configurable_config_get, METH_VARARGS, "\n"
		"Read configuration for the given key.\n"
		"@param key ConfigKey to read.\n"
		""},
	 { "Configurable_config_list", _wrap_Configurable_config_list, METH_VARARGS, "\n"
		"Enumerate available values for the given configuration key.\n"
		"@param key ConfigKey to enumerate values for.\n"
		""},
	 { "Configurable_config_capabilities", _wrap_Configurable_config_capabilities, METH_VARARGS, "\n"
		"Enumerate configuration capabilities for the given configuration key.\n"
		"@param key ConfigKey to enumerate capabilities for.\n"
		""},
	 { "Configurable_config_check", _wrap_Configurable_config_check, METH_VARARGS, "\n"
		"Check whether a configuration capability is supported for a given key.\n"
		"@param key ConfigKey to check.\n"
		"@param capability Capability to check for.\n"
		""},
	 { "delete_Configurable", _wrap_delete_Configurable, METH_O, NULL},
	 { "Configurable_config_set", _wrap_Configurable_config_set, METH_VARARGS, "\n"
		"Set configuration for the given key to a specified value.\n"
		"@param key ConfigKey to set.\n"
		"@param value Value to set.\n"
		""},
	 { "Configurable_swigregister", Configurable_swigregister, METH_O, NULL},
	 { "Driver_scan_options", _wrap_Driver_scan_options, METH_O, "Scan options supported by this driver."},
	 { "delete_Driver", _wrap_delete_Driver, METH_O, NULL},
	 { "Driver_name_get", _wrap_Driver_name_get, METH_O, "Name of this driver."},
	 { "Driver_long_name_get", _wrap_Driver_long_name_get, METH_O, "Long name for this driver."},
	 { "Driver__scan_kwargs", _wrap_Driver__scan_kwargs, METH_VARARGS, NULL},
	 { "Driver_swigregister", Driver_swigregister, METH_O, NULL},
	 { "Device_serial_number", _wrap_Device_serial_number, METH_O, "Serial number for this device."},
	 { "Device_connection_id", _wrap_Device_connection_id, METH_O, "Connection ID for this device."},
	 { "Device__channels", _wrap_Device__channels, METH_O, "List of the channels available on this device."},
	 { "Device__channel_groups", _wrap_Device__channel_groups, METH_O, "Channel groups available on this device, indexed by name."},
	 { "Device_open", _wrap_Device_open, METH_O, "Open device."},
	 { "Device_close", _wrap_Device_close, METH_O, "Close device."},
	 { "delete_Device", _wrap_delete_Device, METH_O, NULL},
	 { "Device_vendor_get", _wrap_Device_vendor_get, METH_O, "Vendor name for this device."},
	 { "Device_model_get", _wrap_Device_model_get, METH_O, "Model name for this device."},
	 { "Device_version_get", _wrap_Device_version_get, METH_O, "Version string for this device."},
	 { "Device_swigregister", Device_swigregister, METH_O, NULL},
	 { "delete_HardwareDevice", _wrap_delete_HardwareDevice, METH_O, NULL},
	 { "HardwareDevice_driver_get", _wrap_HardwareDevice_driver_get, METH_O, "Driver providing this device."},
	 { "HardwareDevice_swigregister", HardwareDevice_swigregister, METH_O, NULL},
	 { "UserDevice_add_channel", _wrap_UserDevice_add_channel, METH_VARARGS, "Add a new channel to this device."},
	 { "delete_UserDevice", _wrap_delete_UserDevice, METH_O, NULL},
	 { "UserDevice_swigregister", UserDevice_swigregister, METH_O, NULL},
	 { "delete_Channel", _wrap_delete_Channel, METH_O, NULL},
	 { "Channel_name_set", _wrap_Channel_name_set, METH_VARARGS, "Current name of this channel."},
	 { "Channel_name_get", _wrap_Channel_name_get, METH_O, "Current name of this channel."},
	 { "Channel_enabled_set", _wrap_Channel_enabled_set, METH_VARARGS, "Enabled status of this channel."},
	 { "Channel_enabled_get", _wrap_Channel_enabled_get, METH_O, "Enabled status of this channel."},
	 { "Channel_type_get", _wrap_Channel_type_get, METH_O, "Type of this channel."},
	 { "Channel_index_get", _wrap_Channel_index_get, METH_O, "Get the index number of this channel."},
	 { "Channel_swigregister", Channel_swigregister, METH_O, NULL},
	 { "ChannelGroup__channels", _wrap_ChannelGroup__channels, METH_O, "List of the channels in this group."},
	 { "delete_ChannelGroup", _wrap_delete_ChannelGroup, METH_O, NULL},
	 { "ChannelGroup_name_get", _wrap_ChannelGroup_name_get, METH_O, "Name of this channel group."},
	 { "ChannelGroup_swigregister", ChannelGroup_swigregister, METH_O, NULL},
	 { "Trigger__stages", _wrap_Trigger__stages, METH_O, "List of the stages in this trigger."},
	 { "Trigger_add_stage", _wrap_Trigger_add_stage, METH_O, "Add a new stage to this trigger."},
	 { "delete_Trigger", _wrap_delete_Trigger, METH_O, NULL},
	 { "Trigger_name_get", _wrap_Trigger_name_get, METH_O, "Name of this trigger configuration."},
	 { "Trigger_swigregister", Trigger_swigregister, METH_O, NULL},
	 { "TriggerStage__matches", _wrap_TriggerStage__matches, METH_O, "List of match conditions on this stage."},
	 { "TriggerStage_add_match", _wrap_TriggerStage_add_match, METH_VARARGS, "\n"
		"Add a new match condition to this stage.\n"
		"@param channel Channel to match on.\n"
		"@param type TriggerMatchType to apply.\n"
		"@param value Threshold value.\n"
		""},
	 { "delete_TriggerStage", _wrap_delete_TriggerStage, METH_O, NULL},
	 { "TriggerStage_number_get", _wrap_TriggerStage_number_get, METH_O, "Index number of this stage."},
	 { "TriggerStage_swigregister", TriggerStage_swigregister, METH_O, NULL},
	 { "delete_TriggerMatch", _wrap_delete_TriggerMatch, METH_O, NULL},
	 { "TriggerMatch_channel_get", _wrap_TriggerMatch_channel_get, METH_O, "Channel this condition matches on."},
	 { "TriggerMatch_type_get", _wrap_TriggerMatch_type_get, METH_O, "Type of match."},
	 { "TriggerMatch_value_get", _wrap_TriggerMatch_value_get, METH_O, "Threshold value."},
	 { "TriggerMatch_swigregister", TriggerMatch_swigregister, METH_O, NULL},
	 { "delete_SessionDevice", _wrap_delete_SessionDevice, METH_O, NULL},
	 { "SessionDevice_swigregister", SessionDevice_swigregister, METH_O, NULL},
	 { "Session_add_device", _wrap_Session_add_device, METH_VARARGS, "\n"
		"Add a device to this session.\n"
		"@param device Device to add.\n"
		""},
	 { "Session__devices", _wrap_Session__devices, METH_O, "List devices attached to this session."},
	 { "Session_remove_devices", _wrap_Session_remove_devices, METH_O, "Remove all devices from this session."},
	 { "Session_add_datafeed_callback", _wrap_Session_add_datafeed_callback, METH_VARARGS, "\n"
		"Add a datafeed callback to this session.\n"
		"@param callback Callback of the form callback(Device, Packet).\n"
		""},
	 { "Session_remove_datafeed_callbacks", _wrap_Session_remove_datafeed_callbacks, METH_O, "Remove all datafeed callbacks from this session."},
	 { "Session_start", _wrap_Session_start, METH_O, "Start the session."},
	 { "Session_run", _wrap_Session_run, METH_O, "Run the session event loop."},
	 { "Session_stop", _wrap_Session_stop, METH_O, "Stop the session."},
	 { "Session_is_running", _wrap_Session_is_running, METH_O, "Return whether the session is running."},
	 { "Session_set_stopped_callback", _wrap_Session_set_stopped_callback, METH_VARARGS, "Set callback to be invoked on session stop."},
	 { "Session_context", _wrap_Session_context, METH_O, "Get the context."},
	 { "delete_Session", _wrap_delete_Session, METH_O, NULL},
	 { "Session_trigger_set", _wrap_Session_trigger_set, METH_VARARGS, "Get current trigger setting."},
	 { "Session_trigger_get", _wrap_Session_trigger_get, METH_O, "Get current trigger setting."},
	 { "Session_filename_get", _wrap_Session_filename_get, METH_O, "Get filename this session was loaded from."},
	 { "Session_swigregister", Session_swigregister, METH_O, NULL},
	 { "delete_Packet", _wrap_delete_Packet, METH_O, NULL},
	 { "Packet__payload_header", _wrap_Packet__payload_header, METH_O, NULL},
	 { "Packet__payload_meta", _wrap_Packet__payload_meta, METH_O, NULL},
	 { "Packet__payload_analog", _wrap_Packet__payload_analog, METH_O, NULL},
	 { "Packet__payload_logic", _wrap_Packet__payload_logic, METH_O, NULL},
	 { "Packet_type_get", _wrap_Packet_type_get, METH_O, "Type of this packet."},
	 { "Packet_swigregister", Packet_swigregister, METH_O, NULL},
	 { "delete_PacketPayload", _wrap_delete_PacketPayload, METH_O, NULL},
	 { "PacketPayload_swigregister", PacketPayload_swigregister, METH_O, NULL},
	 { "Header_feed_version", _wrap_Header_feed_version, METH_O, NULL},
	 { "Header_start_time", _wrap_Header_start_time, METH_O, NULL},
	 { "delete_Header", _wrap_delete_Header, METH_O, NULL},
	 { "Header_swigregister", Header_swigregister, METH_O, NULL},
	 { "Meta__config", _wrap_Meta__config, METH_O, NULL},
	 { "delete_Meta", _wrap_delete_Meta, METH_O, NULL},
	 { "Meta_swigregister", Meta_swigregister, METH_O, NULL},
	 { "Logic_data_pointer", _wrap_Logic_data_pointer, METH_O, NULL},
	 { "Logic_data_length", _wrap_Logic_data_length, METH_O, NULL},
	 { "Logic_unit_size", _wrap_Logic_unit_size, METH_O, NULL},
	 { "delete_Logic", _wrap_delete_Logic, METH_O, NULL},
	 { "Logic__data", _wrap_Logic__data, METH_O, NULL},
	 { "Logic_swigregister", Logic_swigregister, METH_O, NULL},
	 { "Analog_data_pointer", _wrap_Analog_data_pointer, METH_O, "Pointer to data."},
	 { "Analog_get_data_as_float", _wrap_Analog_get_data_as_float, METH_VARARGS, "Fills dest pointer with the analog data converted to float."},
	 { "Analog__channels", _wrap_Analog__channels, METH_O, "Channels for which this packet contains data."},
	 { "Analog_unitsize", _wrap_Analog_unitsize, METH_O, "Size of a single sample in bytes."},
	 { "Analog_is_signed", _wrap_Analog_is_signed, METH_O, "Samples use a signed data type."},
	 { "Analog_is_float", _wrap_Analog_is_float, METH_O, "Samples use float."},
	 { "Analog_is_bigendian", _wrap_Analog_is_bigendian, METH_O, "Samples are stored in big-endian order."},
	 { "Analog_digits", _wrap_Analog_digits, METH_O, "Number of significant digits after the decimal point if positive, or number of non-significant digits before the decimal point if negative (refers to the value we actually read on the wire)."},
	 { "Analog_is_digits_decimal", _wrap_Analog_is_digits_decimal, METH_O, "TBD."},
	 { "Analog_scale", _wrap_Analog_scale, METH_O, "TBD."},
	 { "Analog_offset", _wrap_Analog_offset, METH_O, "TBD."},
	 { "Analog__mq_flags", _wrap_Analog__mq_flags, METH_O, "Measurement flags associated with the samples in this packet."},
	 { "Analog_get_logic_via_threshold", _wrap_Analog_get_logic_via_threshold, METH_VARARGS, "\n"
		"Provides a Logic packet that contains a conversion of the analog data using a simple threshold.\n"
		"@param threshold Threshold to use.\n"
		"@param data_ptr Pointer to num_samples() bytes where the logic samples are stored. When nullptr, memory for logic->data_pointer() will be allocated and must be freed by the caller.\n"
		""},
	 { "Analog_get_logic_via_schmitt_trigger", _wrap_Analog_get_logic_via_schmitt_trigger, METH_VARARGS, "\n"
		"Provides a Logic packet that contains a conversion of the analog data using a Schmitt-Trigger.\n"
		"@param lo_thr Low threshold to use (anything below this is low).\n"
		"@param hi_thr High threshold to use (anything above this is high).\n"
		"@param state Points to a byte that contains the current state of the converter. For best results, set to value of logic sample n-1.\n"
		"@param data_ptr Pointer to num_samples() bytes where the logic samples are stored. When nullptr, memory for logic->data_pointer() will be allocated and must be freed by the caller.\n"
		""},
	 { "delete_Analog", _wrap_delete_Analog, METH_O, NULL},
	 { "Analog_num_samples_get", _wrap_Analog_num_samples_get, METH_O, "Number of samples in this packet."},
	 { "Analog_mq_get", _wrap_Analog_mq_get, METH_O, "Measured quantity of the samples in this packet."},
	 { "Analog_unit_get", _wrap_Analog_unit_get, METH_O, "Unit of the samples in this packet."},
	 { "Analog__data", _wrap_Analog__data, METH_O, NULL},
	 { "Analog_swigregister", Analog_swigregister, METH_O, NULL},
	 { "Rational_numerator", _wrap_Rational_numerator, METH_O, "Numerator, i.e."},
	 { "Rational_denominator", _wrap_Rational_denominator, METH_O, "Denominator, i.e."},
	 { "Rational_value", _wrap_Rational_value, METH_O, "Actual (lossy) value."},
	 { "Rational_swigregister", Rational_swigregister, METH_O, NULL},
	 { "InputFormat_extensions", _wrap_InputFormat_extensions, METH_O, "A list of preferred file name extensions for this file format."},
	 { "InputFormat_options", _wrap_InputFormat_options, METH_O, "Options supported by this input format."},
	 { "delete_InputFormat", _wrap_delete_InputFormat, METH_O, NULL},
	 { "InputFormat_name_get", _wrap_InputFormat_name_get, METH_O, "Name of this input format."},
	 { "InputFormat_description_get", _wrap_InputFormat_description_get, METH_O, "Description of this input format."},
	 { "InputFormat__create_input_kwargs", _wrap_InputFormat__create_input_kwargs, METH_VARARGS, NULL},
	 { "InputFormat_swigregister", InputFormat_swigregister, METH_O, NULL},
	 { "Input_send", _wrap_Input_send, METH_VARARGS, "\n"
		"Send next stream data.\n"
		"@param data Next stream data.\n"
		"@param length Length of data.\n"
		""},
	 { "Input_end", _wrap_Input_end, METH_O, "Signal end of input data."},
	 { "Input_reset", _wrap_Input_reset, METH_O, NULL},
	 { "delete_Input", _wrap_delete_Input, METH_O, NULL},
	 { "Input_device_get", _wrap_Input_device_get, METH_O, "Virtual device associated with this input."},
	 { "Input_swigregister", Input_swigregister, METH_O, NULL},
	 { "delete_InputDevice", _wrap_delete_InputDevice, METH_O, NULL},
	 { "InputDevice_swigregister", InputDevice_swigregister, METH_O, NULL},
	 { "Option_default_value", _wrap_Option_default_value, METH_O, "Default value for this option."},
	 { "Option__values", _wrap_Option__values, METH_O, "Possible values for this option, if a limited set."},
	 { "Option_parse_string", _wrap_Option_parse_string, METH_VARARGS, "Parse a string argument into the appropriate type for this option."},
	 { "delete_Option", _wrap_delete_Option, METH_O, NULL},
	 { "Option_id_get", _wrap_Option_id_get, METH_O, "Short name of this option suitable for command line usage."},
	 { "Option_name_get", _wrap_Option_name_get, METH_O, "Short name of this option suitable for GUI usage."},
	 { "Option_description_get", _wrap_Option_description_get, METH_O, "Description of this option in a sentence."},
	 { "Option_swigregister", Option_swigregister, METH_O, NULL},
	 { "OutputFormat_extensions", _wrap_OutputFormat_extensions, METH_O, "A list of preferred file name extensions for this file format."},
	 { "OutputFormat__options", _wrap_OutputFormat__options, METH_O, "Options supported by this output format."},
	 { "OutputFormat_test_flag", _wrap_OutputFormat_test_flag, METH_VARARGS, "\n"
		"Checks whether a given flag is set.\n"
		"@param flag Flag to check\n"
		""},
	 { "delete_OutputFormat", _wrap_delete_OutputFormat, METH_O, NULL},
	 { "OutputFormat_name_get", _wrap_OutputFormat_name_get, METH_O, "Name of this output format."},
	 { "OutputFormat_description_get", _wrap_OutputFormat_description_get, METH_O, "Description of this output format."},
	 { "OutputFormat__create_output_kwargs", _wrap_OutputFormat__create_output_kwargs, METH_VARARGS, NULL},
	 { "OutputFormat_swigregister", OutputFormat_swigregister, METH_O, NULL},
	 { "Output_receive", _wrap_Output_receive, METH_VARARGS, "\n"
		"Update output with data from the given packet.\n"
		"@param packet Packet to handle.\n"
		""},
	 { "Output_format", _wrap_Output_format, METH_O, "Output format in use for this output."},
	 { "delete_Output", _wrap_delete_Output, METH_O, NULL},
	 { "Output_swigregister", Output_swigregister, METH_O, NULL},
	 { "delete_LogLevel", _wrap_delete_LogLevel, METH_O, NULL},
	 { "LogLevel_swigregister", LogLevel_swigregister, METH_O, NULL},
	 { "delete_DataType", _wrap_delete_DataType, METH_O, NULL},
	 { "DataType_swigregister", DataType_swigregister, METH_O, NULL},
	 { "delete_PacketType", _wrap_delete_PacketType, METH_O, NULL},
	 { "PacketType_swigregister", PacketType_swigregister, METH_O, NULL},
	 { "delete_Quantity", _wrap_delete_Quantity, METH_O, NULL},
	 { "Quantity_swigregister", Quantity_swigregister, METH_O, NULL},
	 { "delete_Unit", _wrap_delete_Unit, METH_O, NULL},
	 { "Unit_swigregister", Unit_swigregister, METH_O, NULL},
	 { "QuantityFlag_flags_from_mask", _wrap_QuantityFlag_flags_from_mask, METH_O, NULL},
	 { "QuantityFlag_mask_from_flags", _wrap_QuantityFlag_mask_from_flags, METH_O, NULL},
	 { "delete_QuantityFlag", _wrap_delete_QuantityFlag, METH_O, NULL},
	 { "QuantityFlag_swigregister", QuantityFlag_swigregister, METH_O, NULL},
	 { "delete_TriggerMatchType", _wrap_delete_TriggerMatchType, METH_O, NULL},
	 { "TriggerMatchType_swigregister", TriggerMatchType_swigregister, METH_O, NULL},
	 { "delete_OutputFlag", _wrap_delete_OutputFlag, METH_O, NULL},
	 { "OutputFlag_swigregister", OutputFlag_swigregister, METH_O, NULL},
	 { "delete_ChannelType", _wrap_delete_ChannelType, METH_O, NULL},
	 { "ChannelType_swigregister", ChannelType_swigregister, METH_O, NULL},
	 { "delete_Capability", _wrap_delete_Capability, METH_O, NULL},
	 { "Capability_swigregister", Capability_swigregister, METH_O, NULL},
	 { "ConfigKey_data_type", _wrap_ConfigKey_data_type, METH_O, "Data type used for this configuration key."},
	 { "ConfigKey_identifier", _wrap_ConfigKey_identifier, METH_O, "String identifier for this configuration key, suitable for CLI use."},
	 { "ConfigKey_description", _wrap_ConfigKey_description, METH_O, "Description of this configuration key."},
	 { "ConfigKey_get_by_identifier", _wrap_ConfigKey_get_by_identifier, METH_O, NULL},
	 { "ConfigKey_parse_string", _wrap_ConfigKey_parse_string, METH_VARARGS, NULL},
	 { "delete_ConfigKey", _wrap_delete_ConfigKey, METH_O, NULL},
	 { "ConfigKey_swigregister", ConfigKey_swigregister, METH_O, NULL},
	 { NULL, NULL, 0, NULL }
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */

static void *_p_sigrok__ChannelGroupTo_p_sigrok__Configurable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Configurable *)  ((sigrok::ChannelGroup *) x));
}
static void *_p_sigrok__DeviceTo_p_sigrok__Configurable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Configurable *)  ((sigrok::Device *) x));
}
static void *_p_sigrok__DriverTo_p_sigrok__Configurable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Configurable *)  ((sigrok::Driver *) x));
}
static void *_p_sigrok__HardwareDeviceTo_p_sigrok__Configurable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Configurable *) (sigrok::Device *) ((sigrok::HardwareDevice *) x));
}
static void *_p_sigrok__InputDeviceTo_p_sigrok__Configurable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Configurable *) (sigrok::Device *) ((sigrok::InputDevice *) x));
}
static void *_p_sigrok__SessionDeviceTo_p_sigrok__Configurable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Configurable *) (sigrok::Device *) ((sigrok::SessionDevice *) x));
}
static void *_p_sigrok__UserDeviceTo_p_sigrok__Configurable(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Configurable *) (sigrok::Device *) ((sigrok::UserDevice *) x));
}
static void *_p_sigrok__HardwareDeviceTo_p_sigrok__Device(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Device *)  ((sigrok::HardwareDevice *) x));
}
static void *_p_sigrok__InputDeviceTo_p_sigrok__Device(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Device *)  ((sigrok::InputDevice *) x));
}
static void *_p_sigrok__SessionDeviceTo_p_sigrok__Device(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Device *)  ((sigrok::SessionDevice *) x));
}
static void *_p_sigrok__UserDeviceTo_p_sigrok__Device(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::Device *)  ((sigrok::UserDevice *) x));
}
static void *_p_sigrok__AnalogTo_p_sigrok__PacketPayload(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::PacketPayload *)  ((sigrok::Analog *) x));
}
static void *_p_sigrok__HeaderTo_p_sigrok__PacketPayload(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::PacketPayload *)  ((sigrok::Header *) x));
}
static void *_p_sigrok__LogicTo_p_sigrok__PacketPayload(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::PacketPayload *)  ((sigrok::Logic *) x));
}
static void *_p_sigrok__MetaTo_p_sigrok__PacketPayload(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((sigrok::PacketPayload *)  ((sigrok::Meta *) x));
}
static void *_p_sigrok__ErrorTo_p_std__exception(void *x, int *SWIGUNUSEDPARM(newmemory)) {
    return (void *)((std::exception *)  ((sigrok::Error *) x));
}
static void *_p_std__shared_ptrT_sigrok__ChannelGroup_tTo_p_std__shared_ptrT_sigrok__Configurable_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Configurable >(*(std::shared_ptr< sigrok::ChannelGroup > *)x);
}
static void *_p_std__shared_ptrT_sigrok__Device_tTo_p_std__shared_ptrT_sigrok__Configurable_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Configurable >(*(std::shared_ptr< sigrok::Device > *)x);
}
static void *_p_std__shared_ptrT_sigrok__Driver_tTo_p_std__shared_ptrT_sigrok__Configurable_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Configurable >(*(std::shared_ptr< sigrok::Driver > *)x);
}
static void *_p_std__shared_ptrT_sigrok__HardwareDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Configurable >(*(std::shared_ptr< sigrok::HardwareDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__InputDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Configurable >(*(std::shared_ptr< sigrok::InputDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__SessionDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Configurable >(*(std::shared_ptr< sigrok::SessionDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__UserDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Configurable >(*(std::shared_ptr< sigrok::UserDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__HardwareDevice_tTo_p_std__shared_ptrT_sigrok__Device_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Device >(*(std::shared_ptr< sigrok::HardwareDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__InputDevice_tTo_p_std__shared_ptrT_sigrok__Device_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Device >(*(std::shared_ptr< sigrok::InputDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__SessionDevice_tTo_p_std__shared_ptrT_sigrok__Device_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Device >(*(std::shared_ptr< sigrok::SessionDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__UserDevice_tTo_p_std__shared_ptrT_sigrok__Device_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::Device >(*(std::shared_ptr< sigrok::UserDevice > *)x);
}
static void *_p_std__shared_ptrT_sigrok__Analog_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::PacketPayload >(*(std::shared_ptr< sigrok::Analog > *)x);
}
static void *_p_std__shared_ptrT_sigrok__Header_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::PacketPayload >(*(std::shared_ptr< sigrok::Header > *)x);
}
static void *_p_std__shared_ptrT_sigrok__Logic_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::PacketPayload >(*(std::shared_ptr< sigrok::Logic > *)x);
}
static void *_p_std__shared_ptrT_sigrok__Meta_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t(void *x, int *newmemory) {
    *newmemory = SWIG_CAST_NEW_MEMORY;
    return (void *) new std::shared_ptr< sigrok::PacketPayload >(*(std::shared_ptr< sigrok::Meta > *)x);
}
static swig_type_info _swigt__p_Glib__TimeVal = {"_p_Glib__TimeVal", "Glib::TimeVal *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Glib__VariantBase = {"_p_Glib__VariantBase", "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::mapped_type *|std::map< std::string,Glib::VariantBase >::mapped_type *|std::vector< Glib::VariantBase >::value_type *|Glib::VariantBase *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_Glib__VariantContainerBase = {"_p_Glib__VariantContainerBase", "Glib::VariantContainerBase *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_allocator_type = {"_p_allocator_type", "allocator_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_char = {"_p_char", "char *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_difference_type = {"_p_difference_type", "difference_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_float = {"_p_float", "float *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_int64_t = {"_p_int64_t", "int64_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_key_type = {"_p_key_type", "key_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_mapped_type = {"_p_mapped_type", "mapped_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_p_PyObject = {"_p_p_PyObject", "PyObject **", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Analog = {"_p_sigrok__Analog", "sigrok::Analog *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Capability = {"_p_sigrok__Capability", "std::set< sigrok::Capability const * >::key_type|std::set< sigrok::Capability const * >::value_type|std::vector< sigrok::Capability const * >::value_type|sigrok::Capability *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Channel = {"_p_sigrok__Channel", "sigrok::Channel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__ChannelGroup = {"_p_sigrok__ChannelGroup", "sigrok::ChannelGroup *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__ChannelType = {"_p_sigrok__ChannelType", "sigrok::ChannelType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__ConfigKey = {"_p_sigrok__ConfigKey", "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::key_type|std::set< sigrok::ConfigKey const * >::key_type|std::set< sigrok::ConfigKey const * >::value_type|std::vector< sigrok::ConfigKey const * >::value_type|sigrok::ConfigKey *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Configurable = {"_p_sigrok__Configurable", "sigrok::Configurable *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Context = {"_p_sigrok__Context", "sigrok::Context *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__DataType = {"_p_sigrok__DataType", "sigrok::DataType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Device = {"_p_sigrok__Device", "sigrok::Device *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Driver = {"_p_sigrok__Driver", "sigrok::Driver *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Error = {"_p_sigrok__Error", "sigrok::Error *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__HardwareDevice = {"_p_sigrok__HardwareDevice", "sigrok::HardwareDevice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Header = {"_p_sigrok__Header", "sigrok::Header *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Input = {"_p_sigrok__Input", "sigrok::Input *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__InputDevice = {"_p_sigrok__InputDevice", "sigrok::InputDevice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__InputFormat = {"_p_sigrok__InputFormat", "sigrok::InputFormat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__LogLevel = {"_p_sigrok__LogLevel", "sigrok::LogLevel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Logic = {"_p_sigrok__Logic", "sigrok::Logic *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Meta = {"_p_sigrok__Meta", "sigrok::Meta *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Option = {"_p_sigrok__Option", "sigrok::Option *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Output = {"_p_sigrok__Output", "sigrok::Output *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__OutputFlag = {"_p_sigrok__OutputFlag", "sigrok::OutputFlag *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__OutputFormat = {"_p_sigrok__OutputFormat", "sigrok::OutputFormat *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Packet = {"_p_sigrok__Packet", "sigrok::Packet *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__PacketPayload = {"_p_sigrok__PacketPayload", "sigrok::PacketPayload *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__PacketType = {"_p_sigrok__PacketType", "sigrok::PacketType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Quantity = {"_p_sigrok__Quantity", "sigrok::Quantity *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__QuantityFlag = {"_p_sigrok__QuantityFlag", "std::vector< sigrok::QuantityFlag const * >::value_type|sigrok::QuantityFlag *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Rational = {"_p_sigrok__Rational", "sigrok::Rational *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__ResourceReader = {"_p_sigrok__ResourceReader", "sigrok::ResourceReader *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Session = {"_p_sigrok__Session", "sigrok::Session *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__SessionDevice = {"_p_sigrok__SessionDevice", "sigrok::SessionDevice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Trigger = {"_p_sigrok__Trigger", "sigrok::Trigger *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__TriggerMatch = {"_p_sigrok__TriggerMatch", "sigrok::TriggerMatch *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__TriggerMatchType = {"_p_sigrok__TriggerMatchType", "sigrok::TriggerMatchType *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__TriggerStage = {"_p_sigrok__TriggerStage", "sigrok::TriggerStage *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__Unit = {"_p_sigrok__Unit", "sigrok::Unit *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_sigrok__UserDevice = {"_p_sigrok__UserDevice", "sigrok::UserDevice *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_size_type = {"_p_size_type", "size_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_Glib__VariantBase_t = {"_p_std__allocatorT_Glib__VariantBase_t", "std::vector< Glib::VariantBase >::allocator_type *|std::allocator< Glib::VariantBase > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_sigrok__Capability_const_p_t = {"_p_std__allocatorT_sigrok__Capability_const_p_t", "std::vector< sigrok::Capability const * >::allocator_type *|std::allocator< sigrok::Capability const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_sigrok__ConfigKey_const_p_t = {"_p_std__allocatorT_sigrok__ConfigKey_const_p_t", "std::vector< sigrok::ConfigKey const * >::allocator_type *|std::allocator< sigrok::ConfigKey const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_sigrok__QuantityFlag_const_p_t = {"_p_std__allocatorT_sigrok__QuantityFlag_const_p_t", "std::vector< sigrok::QuantityFlag const * >::allocator_type *|std::allocator< sigrok::QuantityFlag const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t = {"_p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t", "std::map< sigrok::ConfigKey const *,Glib::VariantBase >::allocator_type *|std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t", "std::map< std::string,Glib::VariantBase >::allocator_type *|std::allocator< std::pair< std::string const,Glib::VariantBase > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t", "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::allocator_type *|std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t", "std::map< std::string,std::shared_ptr< sigrok::Driver > >::allocator_type *|std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t", "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::allocator_type *|std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t", "std::map< std::string,std::shared_ptr< sigrok::Option > >::allocator_type *|std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t", "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::allocator_type *|std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t = {"_p_std__allocatorT_std__pairT_std__string_const_std__string_t_t", "std::map< std::string,std::string >::allocator_type *|std::allocator< std::pair< std::string const,std::string > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t = {"_p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t", "std::vector< std::shared_ptr< sigrok::Channel > >::allocator_type *|std::allocator< std::shared_ptr< sigrok::Channel > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t = {"_p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t", "std::vector< std::shared_ptr< sigrok::Device > >::allocator_type *|std::allocator< std::shared_ptr< sigrok::Device > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t = {"_p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t", "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::allocator_type *|std::allocator< std::shared_ptr< sigrok::HardwareDevice > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t = {"_p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t", "std::vector< std::shared_ptr< sigrok::Option > >::allocator_type *|std::allocator< std::shared_ptr< sigrok::Option > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t = {"_p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t", "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::allocator_type *|std::allocator< std::shared_ptr< sigrok::TriggerMatch > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t = {"_p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t", "std::vector< std::shared_ptr< sigrok::TriggerStage > >::allocator_type *|std::allocator< std::shared_ptr< sigrok::TriggerStage > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__exception = {"_p_std__exception", "std::exception *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__functionT_void_fF_t = {"_p_std__functionT_void_fF_t", "sigrok::SessionStoppedCallback *|std::function< void () > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__functionT_void_fsigrok__LogLevel_const_p_std__stringF_t = {"_p_std__functionT_void_fsigrok__LogLevel_const_p_std__stringF_t", "sigrok::LogCallbackFunction *|std::function< void (sigrok::LogLevel const *,std::string) > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__functionT_void_fstd__shared_ptrT_sigrok__Device_t_std__shared_ptrT_sigrok__Packet_tF_t = {"_p_std__functionT_void_fstd__shared_ptrT_sigrok__Device_t_std__shared_ptrT_sigrok__Packet_tF_t", "sigrok::DatafeedCallbackFunction *|std::function< void (std::shared_ptr< sigrok::Device >,std::shared_ptr< sigrok::Packet >) > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__invalid_argument = {"_p_std__invalid_argument", "std::invalid_argument *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__lessT_sigrok__Capability_const_p_t = {"_p_std__lessT_sigrok__Capability_const_p_t", "std::less< sigrok::Capability const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__lessT_sigrok__ConfigKey_const_p_t = {"_p_std__lessT_sigrok__ConfigKey_const_p_t", "std::less< sigrok::ConfigKey const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__lessT_std__string_t = {"_p_std__lessT_std__string_t", "std::less< std::string > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t = {"_p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t", "map_ConfigKey_Variant *|std::map< sigrok::ConfigKey const *,Glib::VariantBase,std::less< sigrok::ConfigKey const * >,std::allocator< std::pair< sigrok::ConfigKey const *const,Glib::VariantBase > > > *|std::map< sigrok::ConfigKey const *,Glib::VariantBase > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_Glib__VariantBase_t = {"_p_std__mapT_std__string_Glib__VariantBase_t", "map_string_Variant *|std::map< std::string,Glib::VariantBase,std::less< std::string >,std::allocator< std::pair< std::string const,Glib::VariantBase > > > *|std::map< std::string,Glib::VariantBase > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t = {"_p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t", "map_string_ChannelGroup *|std::map< std::string,std::shared_ptr< sigrok::ChannelGroup >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::ChannelGroup > > > > *|std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t = {"_p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t", "map_string_Driver *|std::map< std::string,std::shared_ptr< sigrok::Driver >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Driver > > > > *|std::map< std::string,std::shared_ptr< sigrok::Driver > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t = {"_p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t", "map_string_InputFormat *|std::map< std::string,std::shared_ptr< sigrok::InputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::InputFormat > > > > *|std::map< std::string,std::shared_ptr< sigrok::InputFormat > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t = {"_p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t", "map_string_Option *|std::map< std::string,std::shared_ptr< sigrok::Option >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::Option > > > > *|std::map< std::string,std::shared_ptr< sigrok::Option > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t = {"_p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t", "map_string_OutputFormat *|std::map< std::string,std::shared_ptr< sigrok::OutputFormat >,std::less< std::string >,std::allocator< std::pair< std::string const,std::shared_ptr< sigrok::OutputFormat > > > > *|std::map< std::string,std::shared_ptr< sigrok::OutputFormat > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__mapT_std__string_std__string_t = {"_p_std__mapT_std__string_std__string_t", "std::map< std::string,std::string,std::less< std::string >,std::allocator< std::pair< std::string const,std::string > > > *|std::map< std::string,std::string > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__setT_sigrok__Capability_const_p_t = {"_p_std__setT_sigrok__Capability_const_p_t", "std::set< sigrok::Capability const *,std::less< sigrok::Capability const * >,std::allocator< sigrok::Capability const * > > *|std::set< sigrok::Capability const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__setT_sigrok__ConfigKey_const_p_t = {"_p_std__setT_sigrok__ConfigKey_const_p_t", "std::set< sigrok::ConfigKey const *,std::less< sigrok::ConfigKey const * >,std::allocator< sigrok::ConfigKey const * > > *|std::set< sigrok::ConfigKey const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Analog_t = {"_p_std__shared_ptrT_sigrok__Analog_t", "std::shared_ptr< sigrok::Analog > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__ChannelGroup_t = {"_p_std__shared_ptrT_sigrok__ChannelGroup_t", "std::map< std::string,std::shared_ptr< sigrok::ChannelGroup > >::mapped_type *|std::shared_ptr< sigrok::ChannelGroup > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Channel_t = {"_p_std__shared_ptrT_sigrok__Channel_t", "std::vector< std::shared_ptr< sigrok::Channel > >::value_type *|std::shared_ptr< sigrok::Channel > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Configurable_t = {"_p_std__shared_ptrT_sigrok__Configurable_t", "std::shared_ptr< sigrok::Configurable > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Context_t = {"_p_std__shared_ptrT_sigrok__Context_t", "std::shared_ptr< sigrok::Context > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Device_t = {"_p_std__shared_ptrT_sigrok__Device_t", "std::vector< std::shared_ptr< sigrok::Device > >::value_type *|std::shared_ptr< sigrok::Device > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Driver_t = {"_p_std__shared_ptrT_sigrok__Driver_t", "std::map< std::string,std::shared_ptr< sigrok::Driver > >::mapped_type *|std::shared_ptr< sigrok::Driver > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__HardwareDevice_t = {"_p_std__shared_ptrT_sigrok__HardwareDevice_t", "std::vector< std::shared_ptr< sigrok::HardwareDevice > >::value_type *|std::shared_ptr< sigrok::HardwareDevice > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Header_t = {"_p_std__shared_ptrT_sigrok__Header_t", "std::shared_ptr< sigrok::Header > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__InputDevice_t = {"_p_std__shared_ptrT_sigrok__InputDevice_t", "std::shared_ptr< sigrok::InputDevice > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__InputFormat_t = {"_p_std__shared_ptrT_sigrok__InputFormat_t", "std::map< std::string,std::shared_ptr< sigrok::InputFormat > >::mapped_type *|std::shared_ptr< sigrok::InputFormat > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Input_t = {"_p_std__shared_ptrT_sigrok__Input_t", "std::shared_ptr< sigrok::Input > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Logic_t = {"_p_std__shared_ptrT_sigrok__Logic_t", "std::shared_ptr< sigrok::Logic > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Meta_t = {"_p_std__shared_ptrT_sigrok__Meta_t", "std::shared_ptr< sigrok::Meta > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Option_t = {"_p_std__shared_ptrT_sigrok__Option_t", "std::map< std::string,std::shared_ptr< sigrok::Option > >::mapped_type *|std::vector< std::shared_ptr< sigrok::Option > >::value_type *|std::shared_ptr< sigrok::Option > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__OutputFormat_t = {"_p_std__shared_ptrT_sigrok__OutputFormat_t", "std::map< std::string,std::shared_ptr< sigrok::OutputFormat > >::mapped_type *|std::shared_ptr< sigrok::OutputFormat > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Output_t = {"_p_std__shared_ptrT_sigrok__Output_t", "std::shared_ptr< sigrok::Output > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__PacketPayload_t = {"_p_std__shared_ptrT_sigrok__PacketPayload_t", "std::shared_ptr< sigrok::PacketPayload > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Packet_t = {"_p_std__shared_ptrT_sigrok__Packet_t", "std::shared_ptr< sigrok::Packet > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Rational_t = {"_p_std__shared_ptrT_sigrok__Rational_t", "std::shared_ptr< sigrok::Rational > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__SessionDevice_t = {"_p_std__shared_ptrT_sigrok__SessionDevice_t", "std::shared_ptr< sigrok::SessionDevice > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Session_t = {"_p_std__shared_ptrT_sigrok__Session_t", "std::shared_ptr< sigrok::Session > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__TriggerMatch_t = {"_p_std__shared_ptrT_sigrok__TriggerMatch_t", "std::vector< std::shared_ptr< sigrok::TriggerMatch > >::value_type *|std::shared_ptr< sigrok::TriggerMatch > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__TriggerStage_t = {"_p_std__shared_ptrT_sigrok__TriggerStage_t", "std::vector< std::shared_ptr< sigrok::TriggerStage > >::value_type *|std::shared_ptr< sigrok::TriggerStage > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__Trigger_t = {"_p_std__shared_ptrT_sigrok__Trigger_t", "std::shared_ptr< sigrok::Trigger > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__shared_ptrT_sigrok__UserDevice_t = {"_p_std__shared_ptrT_sigrok__UserDevice_t", "std::shared_ptr< sigrok::UserDevice > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_Glib__VariantBase_t = {"_p_std__vectorT_Glib__VariantBase_t", "std::vector< Glib::VariantBase,std::allocator< Glib::VariantBase > > *|std::vector< Glib::VariantBase > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_sigrok__Capability_const_p_t = {"_p_std__vectorT_sigrok__Capability_const_p_t", "std::vector< sigrok::Capability const *,std::allocator< sigrok::Capability const * > > *|std::vector< sigrok::Capability const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_sigrok__ConfigKey_const_p_t = {"_p_std__vectorT_sigrok__ConfigKey_const_p_t", "std::vector< sigrok::ConfigKey const *,std::allocator< sigrok::ConfigKey const * > > *|std::vector< sigrok::ConfigKey const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_sigrok__QuantityFlag_const_p_t = {"_p_std__vectorT_sigrok__QuantityFlag_const_p_t", "std::vector< sigrok::QuantityFlag const *,std::allocator< sigrok::QuantityFlag const * > > *|std::vector< sigrok::QuantityFlag const * > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t = {"_p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t", "std::vector< std::shared_ptr< sigrok::Channel >,std::allocator< std::shared_ptr< sigrok::Channel > > > *|std::vector< std::shared_ptr< sigrok::Channel > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t = {"_p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t", "std::vector< std::shared_ptr< sigrok::Device >,std::allocator< std::shared_ptr< sigrok::Device > > > *|std::vector< std::shared_ptr< sigrok::Device > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t = {"_p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t", "std::vector< std::shared_ptr< sigrok::HardwareDevice >,std::allocator< std::shared_ptr< sigrok::HardwareDevice > > > *|std::vector< std::shared_ptr< sigrok::HardwareDevice > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t = {"_p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t", "std::vector< std::shared_ptr< sigrok::Option >,std::allocator< std::shared_ptr< sigrok::Option > > > *|std::vector< std::shared_ptr< sigrok::Option > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t = {"_p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t", "std::vector< std::shared_ptr< sigrok::TriggerMatch >,std::allocator< std::shared_ptr< sigrok::TriggerMatch > > > *|std::vector< std::shared_ptr< sigrok::TriggerMatch > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t = {"_p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t", "std::vector< std::shared_ptr< sigrok::TriggerStage >,std::allocator< std::shared_ptr< sigrok::TriggerStage > > > *|std::vector< std::shared_ptr< sigrok::TriggerStage > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t = {"_p_std__vectorT_std__string_std__allocatorT_std__string_t_t", "std::vector< std::string,std::allocator< std::string > > *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_swig__SwigPyIterator = {"_p_swig__SwigPyIterator", "swig::SwigPyIterator *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_uint64_t = {"_p_uint64_t", "uint64_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_uint8_t = {"_p_uint8_t", "uint8_t *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_value_type = {"_p_value_type", "value_type *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_void = {"_p_void", "void *", 0, 0, (void*)0, 0};

static swig_type_info *swig_type_initial[] = {
  &_swigt__p_Glib__TimeVal,
  &_swigt__p_Glib__VariantBase,
  &_swigt__p_Glib__VariantContainerBase,
  &_swigt__p_allocator_type,
  &_swigt__p_char,
  &_swigt__p_difference_type,
  &_swigt__p_float,
  &_swigt__p_int64_t,
  &_swigt__p_key_type,
  &_swigt__p_mapped_type,
  &_swigt__p_p_PyObject,
  &_swigt__p_sigrok__Analog,
  &_swigt__p_sigrok__Capability,
  &_swigt__p_sigrok__Channel,
  &_swigt__p_sigrok__ChannelGroup,
  &_swigt__p_sigrok__ChannelType,
  &_swigt__p_sigrok__ConfigKey,
  &_swigt__p_sigrok__Configurable,
  &_swigt__p_sigrok__Context,
  &_swigt__p_sigrok__DataType,
  &_swigt__p_sigrok__Device,
  &_swigt__p_sigrok__Driver,
  &_swigt__p_sigrok__Error,
  &_swigt__p_sigrok__HardwareDevice,
  &_swigt__p_sigrok__Header,
  &_swigt__p_sigrok__Input,
  &_swigt__p_sigrok__InputDevice,
  &_swigt__p_sigrok__InputFormat,
  &_swigt__p_sigrok__LogLevel,
  &_swigt__p_sigrok__Logic,
  &_swigt__p_sigrok__Meta,
  &_swigt__p_sigrok__Option,
  &_swigt__p_sigrok__Output,
  &_swigt__p_sigrok__OutputFlag,
  &_swigt__p_sigrok__OutputFormat,
  &_swigt__p_sigrok__Packet,
  &_swigt__p_sigrok__PacketPayload,
  &_swigt__p_sigrok__PacketType,
  &_swigt__p_sigrok__Quantity,
  &_swigt__p_sigrok__QuantityFlag,
  &_swigt__p_sigrok__Rational,
  &_swigt__p_sigrok__ResourceReader,
  &_swigt__p_sigrok__Session,
  &_swigt__p_sigrok__SessionDevice,
  &_swigt__p_sigrok__Trigger,
  &_swigt__p_sigrok__TriggerMatch,
  &_swigt__p_sigrok__TriggerMatchType,
  &_swigt__p_sigrok__TriggerStage,
  &_swigt__p_sigrok__Unit,
  &_swigt__p_sigrok__UserDevice,
  &_swigt__p_size_type,
  &_swigt__p_std__allocatorT_Glib__VariantBase_t,
  &_swigt__p_std__allocatorT_sigrok__Capability_const_p_t,
  &_swigt__p_std__allocatorT_sigrok__ConfigKey_const_p_t,
  &_swigt__p_std__allocatorT_sigrok__QuantityFlag_const_p_t,
  &_swigt__p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t,
  &_swigt__p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t,
  &_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t,
  &_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t,
  &_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t,
  &_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t,
  &_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t,
  &_swigt__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t,
  &_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t,
  &_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t,
  &_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t,
  &_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t,
  &_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t,
  &_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t,
  &_swigt__p_std__exception,
  &_swigt__p_std__functionT_void_fF_t,
  &_swigt__p_std__functionT_void_fsigrok__LogLevel_const_p_std__stringF_t,
  &_swigt__p_std__functionT_void_fstd__shared_ptrT_sigrok__Device_t_std__shared_ptrT_sigrok__Packet_tF_t,
  &_swigt__p_std__invalid_argument,
  &_swigt__p_std__lessT_sigrok__Capability_const_p_t,
  &_swigt__p_std__lessT_sigrok__ConfigKey_const_p_t,
  &_swigt__p_std__lessT_std__string_t,
  &_swigt__p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t,
  &_swigt__p_std__mapT_std__string_Glib__VariantBase_t,
  &_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t,
  &_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t,
  &_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t,
  &_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t,
  &_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t,
  &_swigt__p_std__mapT_std__string_std__string_t,
  &_swigt__p_std__setT_sigrok__Capability_const_p_t,
  &_swigt__p_std__setT_sigrok__ConfigKey_const_p_t,
  &_swigt__p_std__shared_ptrT_sigrok__Analog_t,
  &_swigt__p_std__shared_ptrT_sigrok__ChannelGroup_t,
  &_swigt__p_std__shared_ptrT_sigrok__Channel_t,
  &_swigt__p_std__shared_ptrT_sigrok__Configurable_t,
  &_swigt__p_std__shared_ptrT_sigrok__Context_t,
  &_swigt__p_std__shared_ptrT_sigrok__Device_t,
  &_swigt__p_std__shared_ptrT_sigrok__Driver_t,
  &_swigt__p_std__shared_ptrT_sigrok__HardwareDevice_t,
  &_swigt__p_std__shared_ptrT_sigrok__Header_t,
  &_swigt__p_std__shared_ptrT_sigrok__InputDevice_t,
  &_swigt__p_std__shared_ptrT_sigrok__InputFormat_t,
  &_swigt__p_std__shared_ptrT_sigrok__Input_t,
  &_swigt__p_std__shared_ptrT_sigrok__Logic_t,
  &_swigt__p_std__shared_ptrT_sigrok__Meta_t,
  &_swigt__p_std__shared_ptrT_sigrok__Option_t,
  &_swigt__p_std__shared_ptrT_sigrok__OutputFormat_t,
  &_swigt__p_std__shared_ptrT_sigrok__Output_t,
  &_swigt__p_std__shared_ptrT_sigrok__PacketPayload_t,
  &_swigt__p_std__shared_ptrT_sigrok__Packet_t,
  &_swigt__p_std__shared_ptrT_sigrok__Rational_t,
  &_swigt__p_std__shared_ptrT_sigrok__SessionDevice_t,
  &_swigt__p_std__shared_ptrT_sigrok__Session_t,
  &_swigt__p_std__shared_ptrT_sigrok__TriggerMatch_t,
  &_swigt__p_std__shared_ptrT_sigrok__TriggerStage_t,
  &_swigt__p_std__shared_ptrT_sigrok__Trigger_t,
  &_swigt__p_std__shared_ptrT_sigrok__UserDevice_t,
  &_swigt__p_std__vectorT_Glib__VariantBase_t,
  &_swigt__p_std__vectorT_sigrok__Capability_const_p_t,
  &_swigt__p_std__vectorT_sigrok__ConfigKey_const_p_t,
  &_swigt__p_std__vectorT_sigrok__QuantityFlag_const_p_t,
  &_swigt__p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t,
  &_swigt__p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t,
  &_swigt__p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t,
  &_swigt__p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t,
  &_swigt__p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t,
  &_swigt__p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t,
  &_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t,
  &_swigt__p_swig__SwigPyIterator,
  &_swigt__p_uint64_t,
  &_swigt__p_uint8_t,
  &_swigt__p_value_type,
  &_swigt__p_void,
};

static swig_cast_info _swigc__p_Glib__TimeVal[] = {  {&_swigt__p_Glib__TimeVal, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Glib__VariantBase[] = {  {&_swigt__p_Glib__VariantBase, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_Glib__VariantContainerBase[] = {  {&_swigt__p_Glib__VariantContainerBase, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_allocator_type[] = {  {&_swigt__p_allocator_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_char[] = {  {&_swigt__p_char, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_difference_type[] = {  {&_swigt__p_difference_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_float[] = {  {&_swigt__p_float, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_int64_t[] = {  {&_swigt__p_int64_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_key_type[] = {  {&_swigt__p_key_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_mapped_type[] = {  {&_swigt__p_mapped_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_p_PyObject[] = {  {&_swigt__p_p_PyObject, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Analog[] = {  {&_swigt__p_sigrok__Analog, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Capability[] = {  {&_swigt__p_sigrok__Capability, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Channel[] = {  {&_swigt__p_sigrok__Channel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__ChannelGroup[] = {  {&_swigt__p_sigrok__ChannelGroup, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__ChannelType[] = {  {&_swigt__p_sigrok__ChannelType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__ConfigKey[] = {  {&_swigt__p_sigrok__ConfigKey, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Configurable[] = {  {&_swigt__p_sigrok__Configurable, 0, 0, 0},  {&_swigt__p_sigrok__ChannelGroup, _p_sigrok__ChannelGroupTo_p_sigrok__Configurable, 0, 0},  {&_swigt__p_sigrok__Device, _p_sigrok__DeviceTo_p_sigrok__Configurable, 0, 0},  {&_swigt__p_sigrok__Driver, _p_sigrok__DriverTo_p_sigrok__Configurable, 0, 0},  {&_swigt__p_sigrok__HardwareDevice, _p_sigrok__HardwareDeviceTo_p_sigrok__Configurable, 0, 0},  {&_swigt__p_sigrok__InputDevice, _p_sigrok__InputDeviceTo_p_sigrok__Configurable, 0, 0},  {&_swigt__p_sigrok__SessionDevice, _p_sigrok__SessionDeviceTo_p_sigrok__Configurable, 0, 0},  {&_swigt__p_sigrok__UserDevice, _p_sigrok__UserDeviceTo_p_sigrok__Configurable, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Context[] = {  {&_swigt__p_sigrok__Context, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__DataType[] = {  {&_swigt__p_sigrok__DataType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Device[] = {  {&_swigt__p_sigrok__Device, 0, 0, 0},  {&_swigt__p_sigrok__HardwareDevice, _p_sigrok__HardwareDeviceTo_p_sigrok__Device, 0, 0},  {&_swigt__p_sigrok__InputDevice, _p_sigrok__InputDeviceTo_p_sigrok__Device, 0, 0},  {&_swigt__p_sigrok__SessionDevice, _p_sigrok__SessionDeviceTo_p_sigrok__Device, 0, 0},  {&_swigt__p_sigrok__UserDevice, _p_sigrok__UserDeviceTo_p_sigrok__Device, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Driver[] = {  {&_swigt__p_sigrok__Driver, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Error[] = {  {&_swigt__p_sigrok__Error, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__HardwareDevice[] = {  {&_swigt__p_sigrok__HardwareDevice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Header[] = {  {&_swigt__p_sigrok__Header, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Input[] = {  {&_swigt__p_sigrok__Input, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__InputDevice[] = {  {&_swigt__p_sigrok__InputDevice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__InputFormat[] = {  {&_swigt__p_sigrok__InputFormat, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__LogLevel[] = {  {&_swigt__p_sigrok__LogLevel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Logic[] = {  {&_swigt__p_sigrok__Logic, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Meta[] = {  {&_swigt__p_sigrok__Meta, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Option[] = {  {&_swigt__p_sigrok__Option, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Output[] = {  {&_swigt__p_sigrok__Output, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__OutputFlag[] = {  {&_swigt__p_sigrok__OutputFlag, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__OutputFormat[] = {  {&_swigt__p_sigrok__OutputFormat, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Packet[] = {  {&_swigt__p_sigrok__Packet, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__PacketPayload[] = {  {&_swigt__p_sigrok__PacketPayload, 0, 0, 0},  {&_swigt__p_sigrok__Analog, _p_sigrok__AnalogTo_p_sigrok__PacketPayload, 0, 0},  {&_swigt__p_sigrok__Header, _p_sigrok__HeaderTo_p_sigrok__PacketPayload, 0, 0},  {&_swigt__p_sigrok__Logic, _p_sigrok__LogicTo_p_sigrok__PacketPayload, 0, 0},  {&_swigt__p_sigrok__Meta, _p_sigrok__MetaTo_p_sigrok__PacketPayload, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__PacketType[] = {  {&_swigt__p_sigrok__PacketType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Quantity[] = {  {&_swigt__p_sigrok__Quantity, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__QuantityFlag[] = {  {&_swigt__p_sigrok__QuantityFlag, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Rational[] = {  {&_swigt__p_sigrok__Rational, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__ResourceReader[] = {  {&_swigt__p_sigrok__ResourceReader, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Session[] = {  {&_swigt__p_sigrok__Session, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__SessionDevice[] = {  {&_swigt__p_sigrok__SessionDevice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Trigger[] = {  {&_swigt__p_sigrok__Trigger, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__TriggerMatch[] = {  {&_swigt__p_sigrok__TriggerMatch, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__TriggerMatchType[] = {  {&_swigt__p_sigrok__TriggerMatchType, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__TriggerStage[] = {  {&_swigt__p_sigrok__TriggerStage, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__Unit[] = {  {&_swigt__p_sigrok__Unit, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_sigrok__UserDevice[] = {  {&_swigt__p_sigrok__UserDevice, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_size_type[] = {  {&_swigt__p_size_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_Glib__VariantBase_t[] = {  {&_swigt__p_std__allocatorT_Glib__VariantBase_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_sigrok__Capability_const_p_t[] = {  {&_swigt__p_std__allocatorT_sigrok__Capability_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_sigrok__ConfigKey_const_p_t[] = {  {&_swigt__p_std__allocatorT_sigrok__ConfigKey_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_sigrok__QuantityFlag_const_p_t[] = {  {&_swigt__p_std__allocatorT_sigrok__QuantityFlag_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t[] = {  {&_swigt__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t[] = {  {&_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t[] = {  {&_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t[] = {  {&_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t[] = {  {&_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t[] = {  {&_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t[] = {  {&_swigt__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__exception[] = {  {&_swigt__p_std__exception, 0, 0, 0},  {&_swigt__p_sigrok__Error, _p_sigrok__ErrorTo_p_std__exception, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__functionT_void_fF_t[] = {  {&_swigt__p_std__functionT_void_fF_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__functionT_void_fsigrok__LogLevel_const_p_std__stringF_t[] = {  {&_swigt__p_std__functionT_void_fsigrok__LogLevel_const_p_std__stringF_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__functionT_void_fstd__shared_ptrT_sigrok__Device_t_std__shared_ptrT_sigrok__Packet_tF_t[] = {  {&_swigt__p_std__functionT_void_fstd__shared_ptrT_sigrok__Device_t_std__shared_ptrT_sigrok__Packet_tF_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__invalid_argument[] = {  {&_swigt__p_std__invalid_argument, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__lessT_sigrok__Capability_const_p_t[] = {  {&_swigt__p_std__lessT_sigrok__Capability_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__lessT_sigrok__ConfigKey_const_p_t[] = {  {&_swigt__p_std__lessT_sigrok__ConfigKey_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__lessT_std__string_t[] = {  {&_swigt__p_std__lessT_std__string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t[] = {  {&_swigt__p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_Glib__VariantBase_t[] = {  {&_swigt__p_std__mapT_std__string_Glib__VariantBase_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t[] = {  {&_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t[] = {  {&_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t[] = {  {&_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t[] = {  {&_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t[] = {  {&_swigt__p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__mapT_std__string_std__string_t[] = {  {&_swigt__p_std__mapT_std__string_std__string_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__setT_sigrok__Capability_const_p_t[] = {  {&_swigt__p_std__setT_sigrok__Capability_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__setT_sigrok__ConfigKey_const_p_t[] = {  {&_swigt__p_std__setT_sigrok__ConfigKey_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Analog_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Analog_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__ChannelGroup_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__ChannelGroup_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Channel_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Channel_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Configurable_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Configurable_t, 0, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__ChannelGroup_t, _p_std__shared_ptrT_sigrok__ChannelGroup_tTo_p_std__shared_ptrT_sigrok__Configurable_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__Device_t, _p_std__shared_ptrT_sigrok__Device_tTo_p_std__shared_ptrT_sigrok__Configurable_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__Driver_t, _p_std__shared_ptrT_sigrok__Driver_tTo_p_std__shared_ptrT_sigrok__Configurable_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__HardwareDevice_t, _p_std__shared_ptrT_sigrok__HardwareDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__InputDevice_t, _p_std__shared_ptrT_sigrok__InputDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__SessionDevice_t, _p_std__shared_ptrT_sigrok__SessionDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__UserDevice_t, _p_std__shared_ptrT_sigrok__UserDevice_tTo_p_std__shared_ptrT_sigrok__Configurable_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Context_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Context_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Device_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Device_t, 0, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__HardwareDevice_t, _p_std__shared_ptrT_sigrok__HardwareDevice_tTo_p_std__shared_ptrT_sigrok__Device_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__InputDevice_t, _p_std__shared_ptrT_sigrok__InputDevice_tTo_p_std__shared_ptrT_sigrok__Device_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__SessionDevice_t, _p_std__shared_ptrT_sigrok__SessionDevice_tTo_p_std__shared_ptrT_sigrok__Device_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__UserDevice_t, _p_std__shared_ptrT_sigrok__UserDevice_tTo_p_std__shared_ptrT_sigrok__Device_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Driver_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Driver_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__HardwareDevice_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__HardwareDevice_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Header_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Header_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__InputDevice_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__InputDevice_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__InputFormat_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__InputFormat_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Input_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Input_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Logic_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Logic_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Meta_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Meta_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Option_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Option_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__OutputFormat_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__OutputFormat_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Output_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Output_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__PacketPayload_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__PacketPayload_t, 0, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__Analog_t, _p_std__shared_ptrT_sigrok__Analog_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__Header_t, _p_std__shared_ptrT_sigrok__Header_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__Logic_t, _p_std__shared_ptrT_sigrok__Logic_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t, 0, 0},  {&_swigt__p_std__shared_ptrT_sigrok__Meta_t, _p_std__shared_ptrT_sigrok__Meta_tTo_p_std__shared_ptrT_sigrok__PacketPayload_t, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Packet_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Packet_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Rational_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Rational_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__SessionDevice_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__SessionDevice_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Session_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Session_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__TriggerMatch_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__TriggerMatch_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__TriggerStage_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__TriggerStage_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__Trigger_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__Trigger_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__shared_ptrT_sigrok__UserDevice_t[] = {  {&_swigt__p_std__shared_ptrT_sigrok__UserDevice_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_Glib__VariantBase_t[] = {  {&_swigt__p_std__vectorT_Glib__VariantBase_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_sigrok__Capability_const_p_t[] = {  {&_swigt__p_std__vectorT_sigrok__Capability_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_sigrok__ConfigKey_const_p_t[] = {  {&_swigt__p_std__vectorT_sigrok__ConfigKey_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_sigrok__QuantityFlag_const_p_t[] = {  {&_swigt__p_std__vectorT_sigrok__QuantityFlag_const_p_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t[] = {  {&_swigt__p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t[] = {  {&_swigt__p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t[] = {  {&_swigt__p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t[] = {  {&_swigt__p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t[] = {  {&_swigt__p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t[] = {  {&_swigt__p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t[] = {  {&_swigt__p_std__vectorT_std__string_std__allocatorT_std__string_t_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_swig__SwigPyIterator[] = {  {&_swigt__p_swig__SwigPyIterator, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_uint64_t[] = {  {&_swigt__p_uint64_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_uint8_t[] = {  {&_swigt__p_uint8_t, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_value_type[] = {  {&_swigt__p_value_type, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_void[] = {  {&_swigt__p_void, 0, 0, 0},{0, 0, 0, 0}};

static swig_cast_info *swig_cast_initial[] = {
  _swigc__p_Glib__TimeVal,
  _swigc__p_Glib__VariantBase,
  _swigc__p_Glib__VariantContainerBase,
  _swigc__p_allocator_type,
  _swigc__p_char,
  _swigc__p_difference_type,
  _swigc__p_float,
  _swigc__p_int64_t,
  _swigc__p_key_type,
  _swigc__p_mapped_type,
  _swigc__p_p_PyObject,
  _swigc__p_sigrok__Analog,
  _swigc__p_sigrok__Capability,
  _swigc__p_sigrok__Channel,
  _swigc__p_sigrok__ChannelGroup,
  _swigc__p_sigrok__ChannelType,
  _swigc__p_sigrok__ConfigKey,
  _swigc__p_sigrok__Configurable,
  _swigc__p_sigrok__Context,
  _swigc__p_sigrok__DataType,
  _swigc__p_sigrok__Device,
  _swigc__p_sigrok__Driver,
  _swigc__p_sigrok__Error,
  _swigc__p_sigrok__HardwareDevice,
  _swigc__p_sigrok__Header,
  _swigc__p_sigrok__Input,
  _swigc__p_sigrok__InputDevice,
  _swigc__p_sigrok__InputFormat,
  _swigc__p_sigrok__LogLevel,
  _swigc__p_sigrok__Logic,
  _swigc__p_sigrok__Meta,
  _swigc__p_sigrok__Option,
  _swigc__p_sigrok__Output,
  _swigc__p_sigrok__OutputFlag,
  _swigc__p_sigrok__OutputFormat,
  _swigc__p_sigrok__Packet,
  _swigc__p_sigrok__PacketPayload,
  _swigc__p_sigrok__PacketType,
  _swigc__p_sigrok__Quantity,
  _swigc__p_sigrok__QuantityFlag,
  _swigc__p_sigrok__Rational,
  _swigc__p_sigrok__ResourceReader,
  _swigc__p_sigrok__Session,
  _swigc__p_sigrok__SessionDevice,
  _swigc__p_sigrok__Trigger,
  _swigc__p_sigrok__TriggerMatch,
  _swigc__p_sigrok__TriggerMatchType,
  _swigc__p_sigrok__TriggerStage,
  _swigc__p_sigrok__Unit,
  _swigc__p_sigrok__UserDevice,
  _swigc__p_size_type,
  _swigc__p_std__allocatorT_Glib__VariantBase_t,
  _swigc__p_std__allocatorT_sigrok__Capability_const_p_t,
  _swigc__p_std__allocatorT_sigrok__ConfigKey_const_p_t,
  _swigc__p_std__allocatorT_sigrok__QuantityFlag_const_p_t,
  _swigc__p_std__allocatorT_std__pairT_sigrok__ConfigKey_const_pconst_Glib__VariantBase_t_t,
  _swigc__p_std__allocatorT_std__pairT_std__string_const_Glib__VariantBase_t_t,
  _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__ChannelGroup_t_t_t,
  _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Driver_t_t_t,
  _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__InputFormat_t_t_t,
  _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__Option_t_t_t,
  _swigc__p_std__allocatorT_std__pairT_std__string_const_std__shared_ptrT_sigrok__OutputFormat_t_t_t,
  _swigc__p_std__allocatorT_std__pairT_std__string_const_std__string_t_t,
  _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__Channel_t_t,
  _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__Device_t_t,
  _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__HardwareDevice_t_t,
  _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__Option_t_t,
  _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerMatch_t_t,
  _swigc__p_std__allocatorT_std__shared_ptrT_sigrok__TriggerStage_t_t,
  _swigc__p_std__exception,
  _swigc__p_std__functionT_void_fF_t,
  _swigc__p_std__functionT_void_fsigrok__LogLevel_const_p_std__stringF_t,
  _swigc__p_std__functionT_void_fstd__shared_ptrT_sigrok__Device_t_std__shared_ptrT_sigrok__Packet_tF_t,
  _swigc__p_std__invalid_argument,
  _swigc__p_std__lessT_sigrok__Capability_const_p_t,
  _swigc__p_std__lessT_sigrok__ConfigKey_const_p_t,
  _swigc__p_std__lessT_std__string_t,
  _swigc__p_std__mapT_sigrok__ConfigKey_const_p_Glib__VariantBase_t,
  _swigc__p_std__mapT_std__string_Glib__VariantBase_t,
  _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__ChannelGroup_t_t,
  _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__Driver_t_t,
  _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__InputFormat_t_t,
  _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__Option_t_t,
  _swigc__p_std__mapT_std__string_std__shared_ptrT_sigrok__OutputFormat_t_t,
  _swigc__p_std__mapT_std__string_std__string_t,
  _swigc__p_std__setT_sigrok__Capability_const_p_t,
  _swigc__p_std__setT_sigrok__ConfigKey_const_p_t,
  _swigc__p_std__shared_ptrT_sigrok__Analog_t,
  _swigc__p_std__shared_ptrT_sigrok__ChannelGroup_t,
  _swigc__p_std__shared_ptrT_sigrok__Channel_t,
  _swigc__p_std__shared_ptrT_sigrok__Configurable_t,
  _swigc__p_std__shared_ptrT_sigrok__Context_t,
  _swigc__p_std__shared_ptrT_sigrok__Device_t,
  _swigc__p_std__shared_ptrT_sigrok__Driver_t,
  _swigc__p_std__shared_ptrT_sigrok__HardwareDevice_t,
  _swigc__p_std__shared_ptrT_sigrok__Header_t,
  _swigc__p_std__shared_ptrT_sigrok__InputDevice_t,
  _swigc__p_std__shared_ptrT_sigrok__InputFormat_t,
  _swigc__p_std__shared_ptrT_sigrok__Input_t,
  _swigc__p_std__shared_ptrT_sigrok__Logic_t,
  _swigc__p_std__shared_ptrT_sigrok__Meta_t,
  _swigc__p_std__shared_ptrT_sigrok__Option_t,
  _swigc__p_std__shared_ptrT_sigrok__OutputFormat_t,
  _swigc__p_std__shared_ptrT_sigrok__Output_t,
  _swigc__p_std__shared_ptrT_sigrok__PacketPayload_t,
  _swigc__p_std__shared_ptrT_sigrok__Packet_t,
  _swigc__p_std__shared_ptrT_sigrok__Rational_t,
  _swigc__p_std__shared_ptrT_sigrok__SessionDevice_t,
  _swigc__p_std__shared_ptrT_sigrok__Session_t,
  _swigc__p_std__shared_ptrT_sigrok__TriggerMatch_t,
  _swigc__p_std__shared_ptrT_sigrok__TriggerStage_t,
  _swigc__p_std__shared_ptrT_sigrok__Trigger_t,
  _swigc__p_std__shared_ptrT_sigrok__UserDevice_t,
  _swigc__p_std__vectorT_Glib__VariantBase_t,
  _swigc__p_std__vectorT_sigrok__Capability_const_p_t,
  _swigc__p_std__vectorT_sigrok__ConfigKey_const_p_t,
  _swigc__p_std__vectorT_sigrok__QuantityFlag_const_p_t,
  _swigc__p_std__vectorT_std__shared_ptrT_sigrok__Channel_t_t,
  _swigc__p_std__vectorT_std__shared_ptrT_sigrok__Device_t_t,
  _swigc__p_std__vectorT_std__shared_ptrT_sigrok__HardwareDevice_t_t,
  _swigc__p_std__vectorT_std__shared_ptrT_sigrok__Option_t_t,
  _swigc__p_std__vectorT_std__shared_ptrT_sigrok__TriggerMatch_t_t,
  _swigc__p_std__vectorT_std__shared_ptrT_sigrok__TriggerStage_t_t,
  _swigc__p_std__vectorT_std__string_std__allocatorT_std__string_t_t,
  _swigc__p_swig__SwigPyIterator,
  _swigc__p_uint64_t,
  _swigc__p_uint8_t,
  _swigc__p_value_type,
  _swigc__p_void,
};


/* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */

static swig_const_info swig_const_table[] = {
{0, 0, 0, 0.0, 0, 0}};

#ifdef __cplusplus
}
#endif
/* -----------------------------------------------------------------------------
 * Type initialization:
 * This problem is made tough by the requirement that no dynamic
 * memory is used. Also, since swig_type_info structures store pointers to
 * swig_cast_info structures and swig_cast_info structures store pointers back
 * to swig_type_info structures, we need some lookup code at initialization.
 * The idea is that swig generates all the structures that are needed.
 * The runtime then collects these partially filled structures.
 * The SWIG_InitializeModule function takes these initial arrays out of
 * swig_module, and does all the lookup, filling in the swig_module.types
 * array with the correct data and linking the correct swig_cast_info
 * structures together.
 *
 * The generated swig_type_info structures are assigned statically to an initial
 * array. We just loop through that array, and handle each type individually.
 * First we lookup if this type has been already loaded, and if so, use the
 * loaded structure instead of the generated one. Then we have to fill in the
 * cast dependencies. The cast data is initially stored in something like a
 * two-dimensional array. Each row corresponds to a type (there are the same
 * number of rows as there are in the swig_type_initial array). Each entry in
 * a column is one of the swig_cast_info structures for that type.
 * The cast_initial array is actually an array of arrays, because each row has
 * a variable number of columns.
 *
 * We loop through the cast[] array associated with the type and mark casts
 * which have not been defined in previously loaded modules by assigning
 * cast pointer value to cast->next. We also hash cast->type->name string
 * and store the value in the cast->value field. If we encounter swig_cast_info
 * structure that represents a cast to self we move it to the beginning
 * of the cast array. One trick we need to do is making sure the type pointer
 * in the swig_cast_info struct is correct.
 *
 * First off, we lookup the cast->type name to see if it is already loaded.
 * There are three cases to handle:
 *  1) If the cast->type has already been loaded AND the type we are adding
 *     casting info to has not been loaded (it is in this module), THEN we
 *     replace the cast->type pointer with the type pointer that has already
 *     been loaded.
 *  2) If BOTH types (the one we are adding casting info to, and the
 *     cast->type) are loaded, THEN the cast info has already been loaded by
 *     the previous module so we just ignore it.
 *  3) Finally, if cast->type has not already been loaded, then we add that
 *     swig_cast_info to the list (because the cast->type) pointer will
 *     be correct.
 *
 * Once the cast array has been set up AND it does have new casts that need
 * to be added we sort non-self cast entries to move filtered out entries
 * to the end of the array and to arrange the rest in the increasing order
 * of their type pointer values. We store the index of the last added entry
 * in the cast->value field of the entry[0] (overwriting the name hash). Then
 * we sort <next|value> fields of the remaining entries to arrange hash values
 * in the increasing order. This way cast->next->type->name field matches
 * the cast->value hash.
 *
 * Example:
 * Array of casts for type stored at 0x5000, cast to type stored at 0x3000
 * has already been loaded
 *
 *      After sweep-and-hash:   After sort-by-type:    After sort-by-hash:
 *        ________________       ________________       ________________
 *       |                |     |                |     |                |
 * Entry |  type = 0x5000 |     |  type = 0x5000 |     |  type = 0x5000 |
 *   0   |                |     |                |     |                |
 *       |  next = Entry0 |     |  next = Entry0 |     |  next = Entry0 |
 *       | value = 1212   |     | value = 3      |     | value = 3      |
 *       |                |     |                |     |                |
 *       |================|     |================|     |================|
 *       |                |     |                |     |                |
 * Entry |  type = 0x2000 |     |  type = 0x1000 |     |  type = 0x1000 |
 *   1   |                |     |                |     |                |
 *       |  next = Entry1 |     |  next = Entry1 |     |  next = Entry3 |
 *       | value = 3434   |     | value = 4545   |     | value = 2323   |
 *       |________________|     |________________|     |________________|
 *       |                |     |                |     |                |
 * Entry |  type = 0x3000 |     |  type = 0x2000 |     |  type = 0x2000 |
 *   2   |                |     |                |     |                |
 *       |  next = 0      |     |  next = Entry2 |     |  next = Entry2 |
 *       | value = 0      |     | value = 3434   |     | value = 3434   |
 *       |________________|     |________________|     |________________|
 *       |                |     |                |     |                |
 * Entry |  type = 0x1000 |     |  type = 0x4000 |     |  type = 0x4000 |
 *   3   |                |     |                |     |                |
 *       |  next = Entry3 |     |  next = Entry3 |     |  next = Entry1 |
 *       | value = 4545   |     | value = 2323   |     | value = 4545   |
 *       |________________|     |________________|     |________________|
 *       |                |     |                |     |                |
 * Entry |  type = 0x4000 |     |  type = 0x3000 |     |  type = 0x3000 |
 *   4   |                |     |                |     |                |
 *       |  next = Entry4 |     |  next = 0      |     |  next = 0      |
 *       | value = 2323   |     | value = 0      |     | value = 0      |
 *       |________________|     |________________|     |________________|
 *
 * Once the cast array has been initialized, we use cast[0]->next field to link
 * it into the list of cast arrays for the type.
 *              ____    ____    ____
 * type->cast->|next|->|next|->|next|->0
 *             |----|  |----|  |----|
 *             |----|  |----|  |----|
 *             |----|  |----|  |----|
 *
 * Subsequent cast resolution works as follows:
 *
 * 1. Check whether the type matches the first entry in the current cast array.
 * 2. If not, then do a binary search over the (0:cast->value] interval using
 *    either type address or the hash value of the type name.
 * 3. If not found, then move over to the next cast array (cast[0]->next).
 *
 * ----------------------------------------------------------------------------- */

#ifdef __cplusplus
extern "C" {
#if 0
} /* c-mode */
#endif
#endif

#if 0
#define SWIGRUNTIME_DEBUG
#endif

#ifndef SWIG_INIT_CLIENT_DATA_TYPE
#define SWIG_INIT_CLIENT_DATA_TYPE void *
#endif

/*
 * Sort function that puts cast entries with nonzero 'next' at the front
 * of the array while ordering them by addresses of their 'type' structs.
 */
SWIGINTERN int SWIG_CastCmpStruct(const void *pa, const void *pb) {
  swig_cast_info *pca = (swig_cast_info *)pa;
  swig_cast_info *pcb = (swig_cast_info *)pb;
  if (pca->type < pcb->type)
  return (pca->next || pcb->next == 0) ? -1 : 1;
  if (pca->type > pcb->type)
  return (pcb->next || pca->next == 0) ? 1 : -1;
  return 0;
}

/*
 * Shell-sort 'next' and 'value' field pairs to order them by 'value'.
 */
SWIGINTERN void SWIG_CastHashSort(swig_cast_info *cast, int size) {
  const int hmax = size/9;
  int h, i;
  for(h = 1; h <= hmax; h = 3*h+1);
  for(; h > 0; h /= 3)
  {
    for(i = h; i < size; ++i)
    {
      swig_cast_info *p = cast[i].next;
      unsigned int hash = cast[i].value;
      int j = i;
      while(j >= h && hash < cast[j-h].value)
      {
        cast[j].next = cast[j-h].next;
        cast[j].value = cast[j-h].value;
        j -= h;
      }
      cast[j].next = p;
      cast[j].value = hash;
    }
  }
}

SWIGRUNTIME void
SWIG_InitializeModule(SWIG_INIT_CLIENT_DATA_TYPE clientdata) {
  size_t i;
  swig_module_info *module_head, *iter;
  int init;
  
  /* check to see if the circular list has been setup, if not, set it up */
  if (swig_module.next==0) {
    /* Initialize the swig_module */
    swig_module.type_initial = swig_type_initial;
    swig_module.cast_initial = swig_cast_initial;
    swig_module.next = &swig_module;
    init = 1;
  } else {
    init = 0;
  }
  
  /* Try and load any already created modules */
  module_head = SWIG_GetModule(clientdata);
  if (!module_head) {
    /* This is the first module loaded for this interpreter */
    /* so set the swig module into the interpreter */
    SWIG_SetModule(clientdata, &swig_module);
  } else {
    /* the interpreter has loaded a SWIG module, but has it loaded this one? */
    iter=module_head;
    do {
      if (iter==&swig_module) {
        /* Our module is already in the list, so there's nothing more to do. */
        return;
      }
      iter=iter->next;
    } while (iter!= module_head);
    
    /* otherwise we must add our module into the list */
    swig_module.next = module_head->next;
    module_head->next = &swig_module;
  }
  
  /* When multiple interpreters are used, a module could have already been initialized in
       a different interpreter, but not yet have a pointer in this interpreter.
       In this case, we do not want to continue adding types... everything should be
       set up already */
  if (init == 0) return;
  
  /* Now work on filling in swig_module.types */
#ifdef SWIGRUNTIME_DEBUG
  printf("SWIG_InitializeModule: size %lu\n", (unsigned long)swig_module.size);
#endif
  for (i = 0; i < swig_module.size; ++i) {
    swig_type_info *type = 0;
    swig_type_info *target_type;
    swig_cast_info *cast, *first;
    int num_mapped = 0;
    
#ifdef SWIGRUNTIME_DEBUG
    printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
#endif
    
    /* if there is another module already loaded */
    if (swig_module.next != &swig_module) {
      type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, swig_module.type_initial[i]->name);
    }
    if (type) {
      /* Overwrite clientdata field */
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: found type %s\n", type->name);
#endif
      if (swig_module.type_initial[i]->clientdata) {
        type->clientdata = swig_module.type_initial[i]->clientdata;
#ifdef SWIGRUNTIME_DEBUG
        printf("SWIG_InitializeModule: found and overwrite type %s \n", type->name);
#endif
      }
    } else {
      type = swig_module.type_initial[i];
    }
    
    /* Insert casting types */
    cast = first = swig_module.cast_initial[i];
    while (cast->type) {
      /* Don't need to add information already in the list */
      target_type = 0;
#ifdef SWIGRUNTIME_DEBUG
      printf("SWIG_InitializeModule: look cast %s\n", cast->type->name);
#endif
      if (swig_module.next != &swig_module) {
        target_type = SWIG_MangledTypeQueryModule(swig_module.next, &swig_module, cast->type->name);
        if (target_type) {
          /* Target type already defined in another module */
#ifdef SWIGRUNTIME_DEBUG
          printf("SWIG_InitializeModule: found cast %s\n", target_type->name);
#endif
          if (type == swig_module.type_initial[i]) {
#ifdef SWIGRUNTIME_DEBUG
            printf("SWIG_InitializeModule: skip old type %s\n", target_type->name);
#endif
            cast->type = target_type;
            target_type = 0;
          } else {
            /* Check if this cast is already in the list */
            swig_cast_info *ocast = SWIG_TypeCheck(target_type->name, type);
#ifdef SWIGRUNTIME_DEBUG
            if (ocast) printf("SWIG_InitializeModule: skip old cast %s\n", target_type->name);
#endif
            if (!ocast) target_type = 0;
          }
        }
      }
      
      if (!target_type) {
#ifdef SWIGRUNTIME_DEBUG
        printf("SWIG_InitializeModule: adding cast %s\n", cast->type->name);
#endif
        /* Set inclusion mark for sorting */
        cast->next = cast;
        num_mapped++;
        
        if (type == cast->type) {
#ifdef SWIGRUNTIME_DEBUG
          printf("%s : self cast at pos [%li]\n", type->name, cast - first);
#endif
          if (cast - first) {
            /* Move cast to itself to the first entry in the array */
            
            swig_cast_info tmp = *cast;
            *cast = *first;
            *first = tmp;
          }
          first++;
          
        } else {
          cast->value = SWIG_Hash(cast->type->name, (unsigned int)strlen(cast->type->name));
        }
      }
      cast++;
    }
    
    if (num_mapped) {
      if (cast - first) {
        swig_cast_info *tmp;
        
        /* Sort casts by type address for binary search in SWIG_TypeCheckStruct */
        qsort(first, cast - first, sizeof(swig_cast_info), SWIG_CastCmpStruct);
        
        /* Remap back links for added entries */
        cast = swig_module.cast_initial[i] + num_mapped;
        for (tmp = first; tmp < cast; tmp++) {
          tmp->next = tmp;
        }
      }
      
      /* Set the value field of the first entry to the index of the last added entry */
      cast = swig_module.cast_initial[i];
      cast->value = num_mapped - 1;
      
      num_mapped -= (int)(first - cast);
      if (num_mapped > 1) {
        /* Sort <'next','value'> pairs by 'value' for binary search in SWIG_TypeCheck */
        
        SWIG_CastHashSort(first, num_mapped);
      }
      
      first = type->cast;
      if (first) {
        /* Link the current set into the list of cast arrays */
        cast->next = first->next;
        first->next = cast;
      } else {
        cast->next = 0;
        type->cast = cast;
      }
    }
    
    /* Set entry in modules->types array equal to the type */
    swig_module.types[i] = type;
  }
  swig_module.types[i] = 0;
  
#ifdef SWIGRUNTIME_DEBUG
  printf("**** SWIG_InitializeModule: Cast List ******\n");
  for (i = 0; i < swig_module.size; ++i) {
    int j = 0;
    swig_cast_info *cast = swig_module.cast_initial[i];
    printf("SWIG_InitializeModule: type %lu %s\n", (unsigned long)i, swig_module.type_initial[i]->name);
    while (cast->type) {
      printf("SWIG_InitializeModule: cast type %s\n", cast->type->name);
      cast++;
      ++j;
    }
    printf("---- Total casts: %d\n",j);
  }
  printf("**** SWIG_InitializeModule: Cast List ******\n");
#endif
}

/* This function will propagate the clientdata field of type to
* any new swig_type_info structures that have been added into the list
* of equivalent types.  It is like calling
* SWIG_TypeClientData(type, clientdata) a second time.
*/
SWIGRUNTIME void
SWIG_PropagateClientData(void) {
  size_t i;
  static int init_run = 0;
  
  if (init_run) return;
  init_run = 1;
  
  for (i = 0; i < swig_module.size; i++) {
    if (swig_module.types[i]->clientdata) {
      swig_cast_info *head, *cast;
      head = swig_module.types[i]->cast;
      while (head) {
        for (cast = head; (cast - head) <= head->value; cast++) {
          if (!cast->converter) {
            if (cast->type && !cast->type->clientdata)
            SWIG_TypeClientData(cast->type, swig_module.types[i]->clientdata);
          }
        }
        head = head->next;
      }
    }
  }
}

#ifdef __cplusplus
#if 0
{
  /* c-mode */
#endif
}
#endif



#ifdef __cplusplus
extern "C" {
#endif
  
  /* -----------------------------------------------------------------------------
   * constants/methods manipulation
   * ----------------------------------------------------------------------------- */
  
  /* Install Constants */
  SWIGINTERN void
  SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]) {
    PyObject *obj = 0;
    size_t i;
    for (i = 0; constants[i].type; ++i) {
      switch(constants[i].type) {
      case SWIG_PY_POINTER:
        obj = SWIG_InternalNewPointerObj(constants[i].pvalue, *(constants[i]).ptype,0);
        break;
      case SWIG_PY_BINARY:
        obj = SWIG_NewPackedObj(constants[i].pvalue, constants[i].lvalue, *(constants[i].ptype));
        break;
      default:
        obj = 0;
        break;
      }
      if (obj) {
        PyDict_SetItemString(d, constants[i].name, obj);
        SWIG_Py_DECREF(obj);
      }
    }
  }
  
  /* -----------------------------------------------------------------------------
   * Patch %callback methods' docstrings to hold the callback ptrs
   * -----------------------------------------------------------------------------*/
  
  SWIGINTERN void
  SWIG_Python_FixMethods(PyMethodDef *methods, const swig_const_info *const_table, swig_type_info **types, swig_type_info **types_initial) {
    size_t i;
    for (i = 0; methods[i].ml_name; ++i) {
      const char *c = methods[i].ml_doc;
      if (!c) continue;
      c = strstr(c, "swig_ptr: ");
      if (c) {
        int j;
        const swig_const_info *ci = 0;
        const char *name = c + 10;
        for (j = 0; const_table[j].type; ++j) {
          if (strncmp(const_table[j].name, name, 
              strlen(const_table[j].name)) == 0) {
            ci = &(const_table[j]);
            break;
          }
        }
        if (ci) {
          void *ptr = (ci->type == SWIG_PY_POINTER) ? ci->pvalue : 0;
          if (ptr) {
            size_t shift = (ci->ptype) - types;
            swig_type_info *ty = types_initial[shift];
            size_t ldoc = (c - methods[i].ml_doc);
            size_t lptr = strlen(ty->name)+2*sizeof(void*)+2;
            char *ndoc = (char*)malloc(ldoc + lptr + 10);
            if (ndoc) {
              char *buff = ndoc;
              memcpy(buff, methods[i].ml_doc, ldoc);
              buff += ldoc;
              memcpy(buff, "swig_ptr: ", 10);
              buff += 10;
              SWIG_PackVoidPtr(buff, ptr, ty->name, lptr);
              methods[i].ml_doc = ndoc;
            }
          }
        }
      }
    }
  } 
  
#ifdef __cplusplus
}
#endif




/* -----------------------------------------------------------------------------*
 *  Partial Init method
 * -----------------------------------------------------------------------------*/

SWIGINTERN int SWIG_mod_exec(PyObject *module);

#ifdef __cplusplus
extern "C"
#endif

SWIGEXPORT 
#if PY_VERSION_HEX >= 0x03000000
PyObject*
#else
void
#endif
SWIG_init(void) {
#if PY_VERSION_HEX >= 0x03000000
  static PyModuleDef_Slot SwigSlots[] = {
    {
      Py_mod_exec, (void *)SWIG_mod_exec 
    },
#ifdef SWIGPYTHON_NOGIL
#ifdef Py_GIL_DISABLED
    {
      Py_mod_gil, Py_MOD_GIL_NOT_USED 
    },
#endif
#endif
    {
      0, NULL 
    }
  };
  
  static struct PyModuleDef SWIG_module = {
    PyModuleDef_HEAD_INIT,
    SWIG_name,
    NULL,
    0,
    SwigMethods,
    SwigSlots,
    NULL,
    NULL,
    NULL
  };
  
  return PyModuleDef_Init(&SWIG_module);
#else
  PyObject *m = Py_InitModule(SWIG_name, SwigMethods);
  if (m && SWIG_mod_exec(m) != 0) {
    Py_DECREF(m);
  }
#endif
}

SWIGINTERN int SWIG_mod_exec(PyObject *m) {
  PyObject *d, *md, *globals;
  
#if defined(SWIGPYTHON_BUILTIN)
  static SwigPyClientData SwigPyObject_clientdata = {
    0, 0, 0, 0, 0, 0, 0
  };
  static PyGetSetDef this_getset_def = {
    (char *)"this", &SwigPyBuiltin_ThisClosure, NULL, NULL, NULL
  };
  static SwigPyGetSet thisown_getset_closure = {
    SwigPyObject_own,
    SwigPyObject_own
  };
  static PyGetSetDef thisown_getset_def = {
    (char *)"thisown", SwigPyBuiltin_GetterClosure, SwigPyBuiltin_SetterClosure, NULL, &thisown_getset_closure
  };
  PyTypeObject *builtin_pytype;
  int builtin_base_count;
  swig_type_info *builtin_basetype;
  PyObject *tuple;
  PyGetSetDescrObject *static_getset;
  PyTypeObject *metatype;
  PyTypeObject *swigpyobject;
  SwigPyClientData *cd;
  PyObject *public_interface, *public_symbol;
  PyObject *this_descr;
  PyObject *thisown_descr;
  PyObject *self = 0;
  int i;
  
  (void)builtin_pytype;
  (void)builtin_base_count;
  (void)builtin_basetype;
  (void)tuple;
  (void)static_getset;
  (void)self;
  
  /* Metaclass is used to implement static member variables */
  metatype = SwigPyObjectType_Type();
  assert(metatype);
  
  SwigPyStaticVar_Type();
#endif
  
  (void)globals;
  
  /* Create singletons now to avoid potential deadlocks with multi-threaded usage after module initialization */
  SWIG_runtime_data_module();
  SWIG_This();
  SWIG_Python_TypeCache();
  SwigPyPacked_Type();
  SwigVarLink_Type();
#ifndef SWIGPYTHON_BUILTIN
  SwigPyObject_Type();
#endif
  
  /* Fix SwigMethods to carry the callback ptrs when needed */
  SWIG_Python_FixMethods(SwigMethods, swig_const_table, swig_types, swig_type_initial);
  
#ifdef SWIGPYTHON_NOGIL
#ifdef Py_GIL_DISABLED
  PyUnstable_Module_SetGIL(m, Py_MOD_GIL_NOT_USED);
#endif
#endif
  
  md = d = PyModule_GetDict(m);
  (void)md;
  
  SWIG_InitializeModule(0);
  
#ifdef SWIGPYTHON_BUILTIN
  swigpyobject = SwigPyObject_TypeOnce();
  
  SwigPyObject_stype = SWIG_MangledTypeQuery("_p_SwigPyObject");
  assert(SwigPyObject_stype);
  cd = (SwigPyClientData*) SwigPyObject_stype->clientdata;
  if (!cd) {
    SwigPyObject_stype->clientdata = &SwigPyObject_clientdata;
    SwigPyObject_clientdata.pytype = swigpyobject;
  } else if (swigpyobject->tp_basicsize != cd->pytype->tp_basicsize) {
    PyErr_SetString(PyExc_RuntimeError, "Import error: attempted to load two incompatible swig-generated modules.");
    return -1;
  }
  
  /* All objects have a 'this' attribute */
  this_descr = PyDescr_NewGetSet(SwigPyObject_Type(), &this_getset_def);
  (void)this_descr;
  
  /* All objects have a 'thisown' attribute */
  thisown_descr = PyDescr_NewGetSet(SwigPyObject_Type(), &thisown_getset_def);
  (void)thisown_descr;
  
  public_interface = PyList_New(0);
  public_symbol = 0;
  (void)public_symbol;
  
  PyDict_SetItemString(md, "__all__", public_interface);
  SWIG_Py_DECREF(public_interface);
  for (i = 0; SwigMethods[i].ml_name != NULL; ++i)
  SwigPyBuiltin_AddPublicSymbol(public_interface, SwigMethods[i].ml_name);
  for (i = 0; swig_const_table[i].name != 0; ++i)
  SwigPyBuiltin_AddPublicSymbol(public_interface, swig_const_table[i].name);
#endif
  
  SWIG_InstallConstants(d,swig_const_table);
  
  
  PyGObject_lib = pygobject_init(-1, -1, -1);
  if (!PyGObject_lib)
  fprintf(stderr, "pygobject initialization failed.\n");
  GLib = PyImport_ImportModule("gi.repository.GLib");
  /*
       * This check can't save us if the import fails, but at least it gives us
       * a starting point to trace the issue versus straight out crashing.
       */
  if (!GLib) {
    fprintf(stderr, "Import of gi.repository.GLib failed.\n");
#if PY_VERSION_HEX >= 0x030e0000
    return -1;
#elif PY_VERSION_HEX >= 0x03000000
    return nullptr;
#else
    return;
#endif
  }
  import_array();
  
  SWIG_Python_SetConstant(d, "SHARED_PTR_DISOWN",SWIG_From_int(static_cast< int >(0)));
  
  // thread safe initialization
  swig::container_owner_attribute();
  
  globals = SWIG_globals();
  if (!globals) {
    PyErr_SetString(PyExc_TypeError, "Failure to create SWIG globals.");
    return -1;
  }
  PyDict_SetItemString(md, "cvar", globals);
  
  /* Initialize threading */
  SWIG_PYTHON_INITIALIZE_THREADS;
  SWIG_addvarlink(globals, "LogLevel_NONE", Swig_var_LogLevel_NONE_get, Swig_var_LogLevel_NONE_set);
  SWIG_addvarlink(globals, "LogLevel_ERR", Swig_var_LogLevel_ERR_get, Swig_var_LogLevel_ERR_set);
  SWIG_addvarlink(globals, "LogLevel_WARN", Swig_var_LogLevel_WARN_get, Swig_var_LogLevel_WARN_set);
  SWIG_addvarlink(globals, "LogLevel_INFO", Swig_var_LogLevel_INFO_get, Swig_var_LogLevel_INFO_set);
  SWIG_addvarlink(globals, "LogLevel_DBG", Swig_var_LogLevel_DBG_get, Swig_var_LogLevel_DBG_set);
  SWIG_addvarlink(globals, "LogLevel_SPEW", Swig_var_LogLevel_SPEW_get, Swig_var_LogLevel_SPEW_set);
  SWIG_addvarlink(globals, "DataType_UINT64", Swig_var_DataType_UINT64_get, Swig_var_DataType_UINT64_set);
  SWIG_addvarlink(globals, "DataType_STRING", Swig_var_DataType_STRING_get, Swig_var_DataType_STRING_set);
  SWIG_addvarlink(globals, "DataType_BOOL", Swig_var_DataType_BOOL_get, Swig_var_DataType_BOOL_set);
  SWIG_addvarlink(globals, "DataType_FLOAT", Swig_var_DataType_FLOAT_get, Swig_var_DataType_FLOAT_set);
  SWIG_addvarlink(globals, "DataType_RATIONAL_PERIOD", Swig_var_DataType_RATIONAL_PERIOD_get, Swig_var_DataType_RATIONAL_PERIOD_set);
  SWIG_addvarlink(globals, "DataType_RATIONAL_VOLT", Swig_var_DataType_RATIONAL_VOLT_get, Swig_var_DataType_RATIONAL_VOLT_set);
  SWIG_addvarlink(globals, "DataType_KEYVALUE", Swig_var_DataType_KEYVALUE_get, Swig_var_DataType_KEYVALUE_set);
  SWIG_addvarlink(globals, "DataType_UINT64_RANGE", Swig_var_DataType_UINT64_RANGE_get, Swig_var_DataType_UINT64_RANGE_set);
  SWIG_addvarlink(globals, "DataType_DOUBLE_RANGE", Swig_var_DataType_DOUBLE_RANGE_get, Swig_var_DataType_DOUBLE_RANGE_set);
  SWIG_addvarlink(globals, "DataType_INT32", Swig_var_DataType_INT32_get, Swig_var_DataType_INT32_set);
  SWIG_addvarlink(globals, "DataType_MQ", Swig_var_DataType_MQ_get, Swig_var_DataType_MQ_set);
  SWIG_addvarlink(globals, "PacketType_HEADER", Swig_var_PacketType_HEADER_get, Swig_var_PacketType_HEADER_set);
  SWIG_addvarlink(globals, "PacketType_END", Swig_var_PacketType_END_get, Swig_var_PacketType_END_set);
  SWIG_addvarlink(globals, "PacketType_META", Swig_var_PacketType_META_get, Swig_var_PacketType_META_set);
  SWIG_addvarlink(globals, "PacketType_TRIGGER", Swig_var_PacketType_TRIGGER_get, Swig_var_PacketType_TRIGGER_set);
  SWIG_addvarlink(globals, "PacketType_LOGIC", Swig_var_PacketType_LOGIC_get, Swig_var_PacketType_LOGIC_set);
  SWIG_addvarlink(globals, "PacketType_FRAME_BEGIN", Swig_var_PacketType_FRAME_BEGIN_get, Swig_var_PacketType_FRAME_BEGIN_set);
  SWIG_addvarlink(globals, "PacketType_FRAME_END", Swig_var_PacketType_FRAME_END_get, Swig_var_PacketType_FRAME_END_set);
  SWIG_addvarlink(globals, "PacketType_ANALOG", Swig_var_PacketType_ANALOG_get, Swig_var_PacketType_ANALOG_set);
  SWIG_addvarlink(globals, "Quantity_VOLTAGE", Swig_var_Quantity_VOLTAGE_get, Swig_var_Quantity_VOLTAGE_set);
  SWIG_addvarlink(globals, "Quantity_CURRENT", Swig_var_Quantity_CURRENT_get, Swig_var_Quantity_CURRENT_set);
  SWIG_addvarlink(globals, "Quantity_RESISTANCE", Swig_var_Quantity_RESISTANCE_get, Swig_var_Quantity_RESISTANCE_set);
  SWIG_addvarlink(globals, "Quantity_CAPACITANCE", Swig_var_Quantity_CAPACITANCE_get, Swig_var_Quantity_CAPACITANCE_set);
  SWIG_addvarlink(globals, "Quantity_TEMPERATURE", Swig_var_Quantity_TEMPERATURE_get, Swig_var_Quantity_TEMPERATURE_set);
  SWIG_addvarlink(globals, "Quantity_FREQUENCY", Swig_var_Quantity_FREQUENCY_get, Swig_var_Quantity_FREQUENCY_set);
  SWIG_addvarlink(globals, "Quantity_DUTY_CYCLE", Swig_var_Quantity_DUTY_CYCLE_get, Swig_var_Quantity_DUTY_CYCLE_set);
  SWIG_addvarlink(globals, "Quantity_CONTINUITY", Swig_var_Quantity_CONTINUITY_get, Swig_var_Quantity_CONTINUITY_set);
  SWIG_addvarlink(globals, "Quantity_PULSE_WIDTH", Swig_var_Quantity_PULSE_WIDTH_get, Swig_var_Quantity_PULSE_WIDTH_set);
  SWIG_addvarlink(globals, "Quantity_CONDUCTANCE", Swig_var_Quantity_CONDUCTANCE_get, Swig_var_Quantity_CONDUCTANCE_set);
  SWIG_addvarlink(globals, "Quantity_POWER", Swig_var_Quantity_POWER_get, Swig_var_Quantity_POWER_set);
  SWIG_addvarlink(globals, "Quantity_GAIN", Swig_var_Quantity_GAIN_get, Swig_var_Quantity_GAIN_set);
  SWIG_addvarlink(globals, "Quantity_SOUND_PRESSURE_LEVEL", Swig_var_Quantity_SOUND_PRESSURE_LEVEL_get, Swig_var_Quantity_SOUND_PRESSURE_LEVEL_set);
  SWIG_addvarlink(globals, "Quantity_CARBON_MONOXIDE", Swig_var_Quantity_CARBON_MONOXIDE_get, Swig_var_Quantity_CARBON_MONOXIDE_set);
  SWIG_addvarlink(globals, "Quantity_RELATIVE_HUMIDITY", Swig_var_Quantity_RELATIVE_HUMIDITY_get, Swig_var_Quantity_RELATIVE_HUMIDITY_set);
  SWIG_addvarlink(globals, "Quantity_TIME", Swig_var_Quantity_TIME_get, Swig_var_Quantity_TIME_set);
  SWIG_addvarlink(globals, "Quantity_WIND_SPEED", Swig_var_Quantity_WIND_SPEED_get, Swig_var_Quantity_WIND_SPEED_set);
  SWIG_addvarlink(globals, "Quantity_PRESSURE", Swig_var_Quantity_PRESSURE_get, Swig_var_Quantity_PRESSURE_set);
  SWIG_addvarlink(globals, "Quantity_PARALLEL_INDUCTANCE", Swig_var_Quantity_PARALLEL_INDUCTANCE_get, Swig_var_Quantity_PARALLEL_INDUCTANCE_set);
  SWIG_addvarlink(globals, "Quantity_PARALLEL_CAPACITANCE", Swig_var_Quantity_PARALLEL_CAPACITANCE_get, Swig_var_Quantity_PARALLEL_CAPACITANCE_set);
  SWIG_addvarlink(globals, "Quantity_PARALLEL_RESISTANCE", Swig_var_Quantity_PARALLEL_RESISTANCE_get, Swig_var_Quantity_PARALLEL_RESISTANCE_set);
  SWIG_addvarlink(globals, "Quantity_SERIES_INDUCTANCE", Swig_var_Quantity_SERIES_INDUCTANCE_get, Swig_var_Quantity_SERIES_INDUCTANCE_set);
  SWIG_addvarlink(globals, "Quantity_SERIES_CAPACITANCE", Swig_var_Quantity_SERIES_CAPACITANCE_get, Swig_var_Quantity_SERIES_CAPACITANCE_set);
  SWIG_addvarlink(globals, "Quantity_SERIES_RESISTANCE", Swig_var_Quantity_SERIES_RESISTANCE_get, Swig_var_Quantity_SERIES_RESISTANCE_set);
  SWIG_addvarlink(globals, "Quantity_DISSIPATION_FACTOR", Swig_var_Quantity_DISSIPATION_FACTOR_get, Swig_var_Quantity_DISSIPATION_FACTOR_set);
  SWIG_addvarlink(globals, "Quantity_QUALITY_FACTOR", Swig_var_Quantity_QUALITY_FACTOR_get, Swig_var_Quantity_QUALITY_FACTOR_set);
  SWIG_addvarlink(globals, "Quantity_PHASE_ANGLE", Swig_var_Quantity_PHASE_ANGLE_get, Swig_var_Quantity_PHASE_ANGLE_set);
  SWIG_addvarlink(globals, "Quantity_DIFFERENCE", Swig_var_Quantity_DIFFERENCE_get, Swig_var_Quantity_DIFFERENCE_set);
  SWIG_addvarlink(globals, "Quantity_COUNT", Swig_var_Quantity_COUNT_get, Swig_var_Quantity_COUNT_set);
  SWIG_addvarlink(globals, "Quantity_POWER_FACTOR", Swig_var_Quantity_POWER_FACTOR_get, Swig_var_Quantity_POWER_FACTOR_set);
  SWIG_addvarlink(globals, "Quantity_APPARENT_POWER", Swig_var_Quantity_APPARENT_POWER_get, Swig_var_Quantity_APPARENT_POWER_set);
  SWIG_addvarlink(globals, "Quantity_MASS", Swig_var_Quantity_MASS_get, Swig_var_Quantity_MASS_set);
  SWIG_addvarlink(globals, "Quantity_HARMONIC_RATIO", Swig_var_Quantity_HARMONIC_RATIO_get, Swig_var_Quantity_HARMONIC_RATIO_set);
  SWIG_addvarlink(globals, "Unit_VOLT", Swig_var_Unit_VOLT_get, Swig_var_Unit_VOLT_set);
  SWIG_addvarlink(globals, "Unit_AMPERE", Swig_var_Unit_AMPERE_get, Swig_var_Unit_AMPERE_set);
  SWIG_addvarlink(globals, "Unit_OHM", Swig_var_Unit_OHM_get, Swig_var_Unit_OHM_set);
  SWIG_addvarlink(globals, "Unit_FARAD", Swig_var_Unit_FARAD_get, Swig_var_Unit_FARAD_set);
  SWIG_addvarlink(globals, "Unit_KELVIN", Swig_var_Unit_KELVIN_get, Swig_var_Unit_KELVIN_set);
  SWIG_addvarlink(globals, "Unit_CELSIUS", Swig_var_Unit_CELSIUS_get, Swig_var_Unit_CELSIUS_set);
  SWIG_addvarlink(globals, "Unit_FAHRENHEIT", Swig_var_Unit_FAHRENHEIT_get, Swig_var_Unit_FAHRENHEIT_set);
  SWIG_addvarlink(globals, "Unit_HERTZ", Swig_var_Unit_HERTZ_get, Swig_var_Unit_HERTZ_set);
  SWIG_addvarlink(globals, "Unit_PERCENTAGE", Swig_var_Unit_PERCENTAGE_get, Swig_var_Unit_PERCENTAGE_set);
  SWIG_addvarlink(globals, "Unit_BOOLEAN", Swig_var_Unit_BOOLEAN_get, Swig_var_Unit_BOOLEAN_set);
  SWIG_addvarlink(globals, "Unit_SECOND", Swig_var_Unit_SECOND_get, Swig_var_Unit_SECOND_set);
  SWIG_addvarlink(globals, "Unit_SIEMENS", Swig_var_Unit_SIEMENS_get, Swig_var_Unit_SIEMENS_set);
  SWIG_addvarlink(globals, "Unit_DECIBEL_MW", Swig_var_Unit_DECIBEL_MW_get, Swig_var_Unit_DECIBEL_MW_set);
  SWIG_addvarlink(globals, "Unit_DECIBEL_VOLT", Swig_var_Unit_DECIBEL_VOLT_get, Swig_var_Unit_DECIBEL_VOLT_set);
  SWIG_addvarlink(globals, "Unit_UNITLESS", Swig_var_Unit_UNITLESS_get, Swig_var_Unit_UNITLESS_set);
  SWIG_addvarlink(globals, "Unit_DECIBEL_SPL", Swig_var_Unit_DECIBEL_SPL_get, Swig_var_Unit_DECIBEL_SPL_set);
  SWIG_addvarlink(globals, "Unit_CONCENTRATION", Swig_var_Unit_CONCENTRATION_get, Swig_var_Unit_CONCENTRATION_set);
  SWIG_addvarlink(globals, "Unit_REVOLUTIONS_PER_MINUTE", Swig_var_Unit_REVOLUTIONS_PER_MINUTE_get, Swig_var_Unit_REVOLUTIONS_PER_MINUTE_set);
  SWIG_addvarlink(globals, "Unit_VOLT_AMPERE", Swig_var_Unit_VOLT_AMPERE_get, Swig_var_Unit_VOLT_AMPERE_set);
  SWIG_addvarlink(globals, "Unit_WATT", Swig_var_Unit_WATT_get, Swig_var_Unit_WATT_set);
  SWIG_addvarlink(globals, "Unit_WATT_HOUR", Swig_var_Unit_WATT_HOUR_get, Swig_var_Unit_WATT_HOUR_set);
  SWIG_addvarlink(globals, "Unit_METER_SECOND", Swig_var_Unit_METER_SECOND_get, Swig_var_Unit_METER_SECOND_set);
  SWIG_addvarlink(globals, "Unit_HECTOPASCAL", Swig_var_Unit_HECTOPASCAL_get, Swig_var_Unit_HECTOPASCAL_set);
  SWIG_addvarlink(globals, "Unit_HUMIDITY_293K", Swig_var_Unit_HUMIDITY_293K_get, Swig_var_Unit_HUMIDITY_293K_set);
  SWIG_addvarlink(globals, "Unit_DEGREE", Swig_var_Unit_DEGREE_get, Swig_var_Unit_DEGREE_set);
  SWIG_addvarlink(globals, "Unit_HENRY", Swig_var_Unit_HENRY_get, Swig_var_Unit_HENRY_set);
  SWIG_addvarlink(globals, "Unit_GRAM", Swig_var_Unit_GRAM_get, Swig_var_Unit_GRAM_set);
  SWIG_addvarlink(globals, "Unit_CARAT", Swig_var_Unit_CARAT_get, Swig_var_Unit_CARAT_set);
  SWIG_addvarlink(globals, "Unit_OUNCE", Swig_var_Unit_OUNCE_get, Swig_var_Unit_OUNCE_set);
  SWIG_addvarlink(globals, "Unit_TROY_OUNCE", Swig_var_Unit_TROY_OUNCE_get, Swig_var_Unit_TROY_OUNCE_set);
  SWIG_addvarlink(globals, "Unit_POUND", Swig_var_Unit_POUND_get, Swig_var_Unit_POUND_set);
  SWIG_addvarlink(globals, "Unit_PENNYWEIGHT", Swig_var_Unit_PENNYWEIGHT_get, Swig_var_Unit_PENNYWEIGHT_set);
  SWIG_addvarlink(globals, "Unit_GRAIN", Swig_var_Unit_GRAIN_get, Swig_var_Unit_GRAIN_set);
  SWIG_addvarlink(globals, "Unit_TAEL", Swig_var_Unit_TAEL_get, Swig_var_Unit_TAEL_set);
  SWIG_addvarlink(globals, "Unit_MOMME", Swig_var_Unit_MOMME_get, Swig_var_Unit_MOMME_set);
  SWIG_addvarlink(globals, "Unit_TOLA", Swig_var_Unit_TOLA_get, Swig_var_Unit_TOLA_set);
  SWIG_addvarlink(globals, "Unit_PIECE", Swig_var_Unit_PIECE_get, Swig_var_Unit_PIECE_set);
  SWIG_addvarlink(globals, "QuantityFlag_AC", Swig_var_QuantityFlag_AC_get, Swig_var_QuantityFlag_AC_set);
  SWIG_addvarlink(globals, "QuantityFlag_DC", Swig_var_QuantityFlag_DC_get, Swig_var_QuantityFlag_DC_set);
  SWIG_addvarlink(globals, "QuantityFlag_RMS", Swig_var_QuantityFlag_RMS_get, Swig_var_QuantityFlag_RMS_set);
  SWIG_addvarlink(globals, "QuantityFlag_DIODE", Swig_var_QuantityFlag_DIODE_get, Swig_var_QuantityFlag_DIODE_set);
  SWIG_addvarlink(globals, "QuantityFlag_HOLD", Swig_var_QuantityFlag_HOLD_get, Swig_var_QuantityFlag_HOLD_set);
  SWIG_addvarlink(globals, "QuantityFlag_MAX", Swig_var_QuantityFlag_MAX_get, Swig_var_QuantityFlag_MAX_set);
  SWIG_addvarlink(globals, "QuantityFlag_MIN", Swig_var_QuantityFlag_MIN_get, Swig_var_QuantityFlag_MIN_set);
  SWIG_addvarlink(globals, "QuantityFlag_AUTORANGE", Swig_var_QuantityFlag_AUTORANGE_get, Swig_var_QuantityFlag_AUTORANGE_set);
  SWIG_addvarlink(globals, "QuantityFlag_RELATIVE", Swig_var_QuantityFlag_RELATIVE_get, Swig_var_QuantityFlag_RELATIVE_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_FREQ_WEIGHT_A", Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_A_get, Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_A_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_FREQ_WEIGHT_C", Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_C_get, Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_C_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_FREQ_WEIGHT_Z", Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_Z_get, Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_Z_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_FREQ_WEIGHT_FLAT", Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_FLAT_get, Swig_var_QuantityFlag_SPL_FREQ_WEIGHT_FLAT_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_TIME_WEIGHT_S", Swig_var_QuantityFlag_SPL_TIME_WEIGHT_S_get, Swig_var_QuantityFlag_SPL_TIME_WEIGHT_S_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_TIME_WEIGHT_F", Swig_var_QuantityFlag_SPL_TIME_WEIGHT_F_get, Swig_var_QuantityFlag_SPL_TIME_WEIGHT_F_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_LAT", Swig_var_QuantityFlag_SPL_LAT_get, Swig_var_QuantityFlag_SPL_LAT_set);
  SWIG_addvarlink(globals, "QuantityFlag_SPL_PCT_OVER_ALARM", Swig_var_QuantityFlag_SPL_PCT_OVER_ALARM_get, Swig_var_QuantityFlag_SPL_PCT_OVER_ALARM_set);
  SWIG_addvarlink(globals, "QuantityFlag_DURATION", Swig_var_QuantityFlag_DURATION_get, Swig_var_QuantityFlag_DURATION_set);
  SWIG_addvarlink(globals, "QuantityFlag_AVG", Swig_var_QuantityFlag_AVG_get, Swig_var_QuantityFlag_AVG_set);
  SWIG_addvarlink(globals, "QuantityFlag_REFERENCE", Swig_var_QuantityFlag_REFERENCE_get, Swig_var_QuantityFlag_REFERENCE_set);
  SWIG_addvarlink(globals, "QuantityFlag_UNSTABLE", Swig_var_QuantityFlag_UNSTABLE_get, Swig_var_QuantityFlag_UNSTABLE_set);
  SWIG_addvarlink(globals, "QuantityFlag_FOUR_WIRE", Swig_var_QuantityFlag_FOUR_WIRE_get, Swig_var_QuantityFlag_FOUR_WIRE_set);
  SWIG_addvarlink(globals, "TriggerMatchType_ZERO", Swig_var_TriggerMatchType_ZERO_get, Swig_var_TriggerMatchType_ZERO_set);
  SWIG_addvarlink(globals, "TriggerMatchType_ONE", Swig_var_TriggerMatchType_ONE_get, Swig_var_TriggerMatchType_ONE_set);
  SWIG_addvarlink(globals, "TriggerMatchType_RISING", Swig_var_TriggerMatchType_RISING_get, Swig_var_TriggerMatchType_RISING_set);
  SWIG_addvarlink(globals, "TriggerMatchType_FALLING", Swig_var_TriggerMatchType_FALLING_get, Swig_var_TriggerMatchType_FALLING_set);
  SWIG_addvarlink(globals, "TriggerMatchType_EDGE", Swig_var_TriggerMatchType_EDGE_get, Swig_var_TriggerMatchType_EDGE_set);
  SWIG_addvarlink(globals, "TriggerMatchType_OVER", Swig_var_TriggerMatchType_OVER_get, Swig_var_TriggerMatchType_OVER_set);
  SWIG_addvarlink(globals, "TriggerMatchType_UNDER", Swig_var_TriggerMatchType_UNDER_get, Swig_var_TriggerMatchType_UNDER_set);
  SWIG_addvarlink(globals, "OutputFlag_INTERNAL_IO_HANDLING", Swig_var_OutputFlag_INTERNAL_IO_HANDLING_get, Swig_var_OutputFlag_INTERNAL_IO_HANDLING_set);
  SWIG_addvarlink(globals, "ChannelType_LOGIC", Swig_var_ChannelType_LOGIC_get, Swig_var_ChannelType_LOGIC_set);
  SWIG_addvarlink(globals, "ChannelType_ANALOG", Swig_var_ChannelType_ANALOG_get, Swig_var_ChannelType_ANALOG_set);
  SWIG_addvarlink(globals, "Capability_GET", Swig_var_Capability_GET_get, Swig_var_Capability_GET_set);
  SWIG_addvarlink(globals, "Capability_SET", Swig_var_Capability_SET_get, Swig_var_Capability_SET_set);
  SWIG_addvarlink(globals, "Capability_LIST", Swig_var_Capability_LIST_get, Swig_var_Capability_LIST_set);
  SWIG_addvarlink(globals, "ConfigKey_LOGIC_ANALYZER", Swig_var_ConfigKey_LOGIC_ANALYZER_get, Swig_var_ConfigKey_LOGIC_ANALYZER_set);
  SWIG_addvarlink(globals, "ConfigKey_OSCILLOSCOPE", Swig_var_ConfigKey_OSCILLOSCOPE_get, Swig_var_ConfigKey_OSCILLOSCOPE_set);
  SWIG_addvarlink(globals, "ConfigKey_MULTIMETER", Swig_var_ConfigKey_MULTIMETER_get, Swig_var_ConfigKey_MULTIMETER_set);
  SWIG_addvarlink(globals, "ConfigKey_DEMO_DEV", Swig_var_ConfigKey_DEMO_DEV_get, Swig_var_ConfigKey_DEMO_DEV_set);
  SWIG_addvarlink(globals, "ConfigKey_SOUNDLEVELMETER", Swig_var_ConfigKey_SOUNDLEVELMETER_get, Swig_var_ConfigKey_SOUNDLEVELMETER_set);
  SWIG_addvarlink(globals, "ConfigKey_THERMOMETER", Swig_var_ConfigKey_THERMOMETER_get, Swig_var_ConfigKey_THERMOMETER_set);
  SWIG_addvarlink(globals, "ConfigKey_HYGROMETER", Swig_var_ConfigKey_HYGROMETER_get, Swig_var_ConfigKey_HYGROMETER_set);
  SWIG_addvarlink(globals, "ConfigKey_ENERGYMETER", Swig_var_ConfigKey_ENERGYMETER_get, Swig_var_ConfigKey_ENERGYMETER_set);
  SWIG_addvarlink(globals, "ConfigKey_DEMODULATOR", Swig_var_ConfigKey_DEMODULATOR_get, Swig_var_ConfigKey_DEMODULATOR_set);
  SWIG_addvarlink(globals, "ConfigKey_POWER_SUPPLY", Swig_var_ConfigKey_POWER_SUPPLY_get, Swig_var_ConfigKey_POWER_SUPPLY_set);
  SWIG_addvarlink(globals, "ConfigKey_LCRMETER", Swig_var_ConfigKey_LCRMETER_get, Swig_var_ConfigKey_LCRMETER_set);
  SWIG_addvarlink(globals, "ConfigKey_ELECTRONIC_LOAD", Swig_var_ConfigKey_ELECTRONIC_LOAD_get, Swig_var_ConfigKey_ELECTRONIC_LOAD_set);
  SWIG_addvarlink(globals, "ConfigKey_SCALE", Swig_var_ConfigKey_SCALE_get, Swig_var_ConfigKey_SCALE_set);
  SWIG_addvarlink(globals, "ConfigKey_SIGNAL_GENERATOR", Swig_var_ConfigKey_SIGNAL_GENERATOR_get, Swig_var_ConfigKey_SIGNAL_GENERATOR_set);
  SWIG_addvarlink(globals, "ConfigKey_POWERMETER", Swig_var_ConfigKey_POWERMETER_get, Swig_var_ConfigKey_POWERMETER_set);
  SWIG_addvarlink(globals, "ConfigKey_CONN", Swig_var_ConfigKey_CONN_get, Swig_var_ConfigKey_CONN_set);
  SWIG_addvarlink(globals, "ConfigKey_SERIALCOMM", Swig_var_ConfigKey_SERIALCOMM_get, Swig_var_ConfigKey_SERIALCOMM_set);
  SWIG_addvarlink(globals, "ConfigKey_MODBUSADDR", Swig_var_ConfigKey_MODBUSADDR_get, Swig_var_ConfigKey_MODBUSADDR_set);
  SWIG_addvarlink(globals, "ConfigKey_SAMPLERATE", Swig_var_ConfigKey_SAMPLERATE_get, Swig_var_ConfigKey_SAMPLERATE_set);
  SWIG_addvarlink(globals, "ConfigKey_CAPTURE_RATIO", Swig_var_ConfigKey_CAPTURE_RATIO_get, Swig_var_ConfigKey_CAPTURE_RATIO_set);
  SWIG_addvarlink(globals, "ConfigKey_PATTERN_MODE", Swig_var_ConfigKey_PATTERN_MODE_get, Swig_var_ConfigKey_PATTERN_MODE_set);
  SWIG_addvarlink(globals, "ConfigKey_RLE", Swig_var_ConfigKey_RLE_get, Swig_var_ConfigKey_RLE_set);
  SWIG_addvarlink(globals, "ConfigKey_TRIGGER_SLOPE", Swig_var_ConfigKey_TRIGGER_SLOPE_get, Swig_var_ConfigKey_TRIGGER_SLOPE_set);
  SWIG_addvarlink(globals, "ConfigKey_AVERAGING", Swig_var_ConfigKey_AVERAGING_get, Swig_var_ConfigKey_AVERAGING_set);
  SWIG_addvarlink(globals, "ConfigKey_AVG_SAMPLES", Swig_var_ConfigKey_AVG_SAMPLES_get, Swig_var_ConfigKey_AVG_SAMPLES_set);
  SWIG_addvarlink(globals, "ConfigKey_TRIGGER_SOURCE", Swig_var_ConfigKey_TRIGGER_SOURCE_get, Swig_var_ConfigKey_TRIGGER_SOURCE_set);
  SWIG_addvarlink(globals, "ConfigKey_HORIZ_TRIGGERPOS", Swig_var_ConfigKey_HORIZ_TRIGGERPOS_get, Swig_var_ConfigKey_HORIZ_TRIGGERPOS_set);
  SWIG_addvarlink(globals, "ConfigKey_BUFFERSIZE", Swig_var_ConfigKey_BUFFERSIZE_get, Swig_var_ConfigKey_BUFFERSIZE_set);
  SWIG_addvarlink(globals, "ConfigKey_TIMEBASE", Swig_var_ConfigKey_TIMEBASE_get, Swig_var_ConfigKey_TIMEBASE_set);
  SWIG_addvarlink(globals, "ConfigKey_FILTER", Swig_var_ConfigKey_FILTER_get, Swig_var_ConfigKey_FILTER_set);
  SWIG_addvarlink(globals, "ConfigKey_VDIV", Swig_var_ConfigKey_VDIV_get, Swig_var_ConfigKey_VDIV_set);
  SWIG_addvarlink(globals, "ConfigKey_COUPLING", Swig_var_ConfigKey_COUPLING_get, Swig_var_ConfigKey_COUPLING_set);
  SWIG_addvarlink(globals, "ConfigKey_TRIGGER_MATCH", Swig_var_ConfigKey_TRIGGER_MATCH_get, Swig_var_ConfigKey_TRIGGER_MATCH_set);
  SWIG_addvarlink(globals, "ConfigKey_SAMPLE_INTERVAL", Swig_var_ConfigKey_SAMPLE_INTERVAL_get, Swig_var_ConfigKey_SAMPLE_INTERVAL_set);
  SWIG_addvarlink(globals, "ConfigKey_NUM_HDIV", Swig_var_ConfigKey_NUM_HDIV_get, Swig_var_ConfigKey_NUM_HDIV_set);
  SWIG_addvarlink(globals, "ConfigKey_NUM_VDIV", Swig_var_ConfigKey_NUM_VDIV_get, Swig_var_ConfigKey_NUM_VDIV_set);
  SWIG_addvarlink(globals, "ConfigKey_SPL_WEIGHT_FREQ", Swig_var_ConfigKey_SPL_WEIGHT_FREQ_get, Swig_var_ConfigKey_SPL_WEIGHT_FREQ_set);
  SWIG_addvarlink(globals, "ConfigKey_SPL_WEIGHT_TIME", Swig_var_ConfigKey_SPL_WEIGHT_TIME_get, Swig_var_ConfigKey_SPL_WEIGHT_TIME_set);
  SWIG_addvarlink(globals, "ConfigKey_SPL_MEASUREMENT_RANGE", Swig_var_ConfigKey_SPL_MEASUREMENT_RANGE_get, Swig_var_ConfigKey_SPL_MEASUREMENT_RANGE_set);
  SWIG_addvarlink(globals, "ConfigKey_HOLD_MAX", Swig_var_ConfigKey_HOLD_MAX_get, Swig_var_ConfigKey_HOLD_MAX_set);
  SWIG_addvarlink(globals, "ConfigKey_HOLD_MIN", Swig_var_ConfigKey_HOLD_MIN_get, Swig_var_ConfigKey_HOLD_MIN_set);
  SWIG_addvarlink(globals, "ConfigKey_VOLTAGE_THRESHOLD", Swig_var_ConfigKey_VOLTAGE_THRESHOLD_get, Swig_var_ConfigKey_VOLTAGE_THRESHOLD_set);
  SWIG_addvarlink(globals, "ConfigKey_EXTERNAL_CLOCK", Swig_var_ConfigKey_EXTERNAL_CLOCK_get, Swig_var_ConfigKey_EXTERNAL_CLOCK_set);
  SWIG_addvarlink(globals, "ConfigKey_SWAP", Swig_var_ConfigKey_SWAP_get, Swig_var_ConfigKey_SWAP_set);
  SWIG_addvarlink(globals, "ConfigKey_CENTER_FREQUENCY", Swig_var_ConfigKey_CENTER_FREQUENCY_get, Swig_var_ConfigKey_CENTER_FREQUENCY_set);
  SWIG_addvarlink(globals, "ConfigKey_NUM_LOGIC_CHANNELS", Swig_var_ConfigKey_NUM_LOGIC_CHANNELS_get, Swig_var_ConfigKey_NUM_LOGIC_CHANNELS_set);
  SWIG_addvarlink(globals, "ConfigKey_NUM_ANALOG_CHANNELS", Swig_var_ConfigKey_NUM_ANALOG_CHANNELS_get, Swig_var_ConfigKey_NUM_ANALOG_CHANNELS_set);
  SWIG_addvarlink(globals, "ConfigKey_VOLTAGE", Swig_var_ConfigKey_VOLTAGE_get, Swig_var_ConfigKey_VOLTAGE_set);
  SWIG_addvarlink(globals, "ConfigKey_VOLTAGE_TARGET", Swig_var_ConfigKey_VOLTAGE_TARGET_get, Swig_var_ConfigKey_VOLTAGE_TARGET_set);
  SWIG_addvarlink(globals, "ConfigKey_CURRENT", Swig_var_ConfigKey_CURRENT_get, Swig_var_ConfigKey_CURRENT_set);
  SWIG_addvarlink(globals, "ConfigKey_CURRENT_LIMIT", Swig_var_ConfigKey_CURRENT_LIMIT_get, Swig_var_ConfigKey_CURRENT_LIMIT_set);
  SWIG_addvarlink(globals, "ConfigKey_ENABLED", Swig_var_ConfigKey_ENABLED_get, Swig_var_ConfigKey_ENABLED_set);
  SWIG_addvarlink(globals, "ConfigKey_CHANNEL_CONFIG", Swig_var_ConfigKey_CHANNEL_CONFIG_get, Swig_var_ConfigKey_CHANNEL_CONFIG_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_VOLTAGE_PROTECTION_ENABLED", Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ENABLED_get, Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ENABLED_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_VOLTAGE_PROTECTION_ACTIVE", Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ACTIVE_get, Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_ACTIVE_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_VOLTAGE_PROTECTION_THRESHOLD", Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_THRESHOLD_get, Swig_var_ConfigKey_OVER_VOLTAGE_PROTECTION_THRESHOLD_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_CURRENT_PROTECTION_ENABLED", Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ENABLED_get, Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ENABLED_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_CURRENT_PROTECTION_ACTIVE", Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ACTIVE_get, Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_ACTIVE_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_CURRENT_PROTECTION_THRESHOLD", Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_THRESHOLD_get, Swig_var_ConfigKey_OVER_CURRENT_PROTECTION_THRESHOLD_set);
  SWIG_addvarlink(globals, "ConfigKey_CLOCK_EDGE", Swig_var_ConfigKey_CLOCK_EDGE_get, Swig_var_ConfigKey_CLOCK_EDGE_set);
  SWIG_addvarlink(globals, "ConfigKey_AMPLITUDE", Swig_var_ConfigKey_AMPLITUDE_get, Swig_var_ConfigKey_AMPLITUDE_set);
  SWIG_addvarlink(globals, "ConfigKey_REGULATION", Swig_var_ConfigKey_REGULATION_get, Swig_var_ConfigKey_REGULATION_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_TEMPERATURE_PROTECTION", Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_get, Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_set);
  SWIG_addvarlink(globals, "ConfigKey_OUTPUT_FREQUENCY", Swig_var_ConfigKey_OUTPUT_FREQUENCY_get, Swig_var_ConfigKey_OUTPUT_FREQUENCY_set);
  SWIG_addvarlink(globals, "ConfigKey_OUTPUT_FREQUENCY_TARGET", Swig_var_ConfigKey_OUTPUT_FREQUENCY_TARGET_get, Swig_var_ConfigKey_OUTPUT_FREQUENCY_TARGET_set);
  SWIG_addvarlink(globals, "ConfigKey_MEASURED_QUANTITY", Swig_var_ConfigKey_MEASURED_QUANTITY_get, Swig_var_ConfigKey_MEASURED_QUANTITY_set);
  SWIG_addvarlink(globals, "ConfigKey_EQUIV_CIRCUIT_MODEL", Swig_var_ConfigKey_EQUIV_CIRCUIT_MODEL_get, Swig_var_ConfigKey_EQUIV_CIRCUIT_MODEL_set);
  SWIG_addvarlink(globals, "ConfigKey_OVER_TEMPERATURE_PROTECTION_ACTIVE", Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_ACTIVE_get, Swig_var_ConfigKey_OVER_TEMPERATURE_PROTECTION_ACTIVE_set);
  SWIG_addvarlink(globals, "ConfigKey_UNDER_VOLTAGE_CONDITION", Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_get, Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_set);
  SWIG_addvarlink(globals, "ConfigKey_UNDER_VOLTAGE_CONDITION_ACTIVE", Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_ACTIVE_get, Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_ACTIVE_set);
  SWIG_addvarlink(globals, "ConfigKey_TRIGGER_LEVEL", Swig_var_ConfigKey_TRIGGER_LEVEL_get, Swig_var_ConfigKey_TRIGGER_LEVEL_set);
  SWIG_addvarlink(globals, "ConfigKey_UNDER_VOLTAGE_CONDITION_THRESHOLD", Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_THRESHOLD_get, Swig_var_ConfigKey_UNDER_VOLTAGE_CONDITION_THRESHOLD_set);
  SWIG_addvarlink(globals, "ConfigKey_EXTERNAL_CLOCK_SOURCE", Swig_var_ConfigKey_EXTERNAL_CLOCK_SOURCE_get, Swig_var_ConfigKey_EXTERNAL_CLOCK_SOURCE_set);
  SWIG_addvarlink(globals, "ConfigKey_OFFSET", Swig_var_ConfigKey_OFFSET_get, Swig_var_ConfigKey_OFFSET_set);
  SWIG_addvarlink(globals, "ConfigKey_TRIGGER_PATTERN", Swig_var_ConfigKey_TRIGGER_PATTERN_get, Swig_var_ConfigKey_TRIGGER_PATTERN_set);
  SWIG_addvarlink(globals, "ConfigKey_HIGH_RESOLUTION", Swig_var_ConfigKey_HIGH_RESOLUTION_get, Swig_var_ConfigKey_HIGH_RESOLUTION_set);
  SWIG_addvarlink(globals, "ConfigKey_PEAK_DETECTION", Swig_var_ConfigKey_PEAK_DETECTION_get, Swig_var_ConfigKey_PEAK_DETECTION_set);
  SWIG_addvarlink(globals, "ConfigKey_LOGIC_THRESHOLD", Swig_var_ConfigKey_LOGIC_THRESHOLD_get, Swig_var_ConfigKey_LOGIC_THRESHOLD_set);
  SWIG_addvarlink(globals, "ConfigKey_LOGIC_THRESHOLD_CUSTOM", Swig_var_ConfigKey_LOGIC_THRESHOLD_CUSTOM_get, Swig_var_ConfigKey_LOGIC_THRESHOLD_CUSTOM_set);
  SWIG_addvarlink(globals, "ConfigKey_RANGE", Swig_var_ConfigKey_RANGE_get, Swig_var_ConfigKey_RANGE_set);
  SWIG_addvarlink(globals, "ConfigKey_DIGITS", Swig_var_ConfigKey_DIGITS_get, Swig_var_ConfigKey_DIGITS_set);
  SWIG_addvarlink(globals, "ConfigKey_SESSIONFILE", Swig_var_ConfigKey_SESSIONFILE_get, Swig_var_ConfigKey_SESSIONFILE_set);
  SWIG_addvarlink(globals, "ConfigKey_CAPTUREFILE", Swig_var_ConfigKey_CAPTUREFILE_get, Swig_var_ConfigKey_CAPTUREFILE_set);
  SWIG_addvarlink(globals, "ConfigKey_CAPTURE_UNITSIZE", Swig_var_ConfigKey_CAPTURE_UNITSIZE_get, Swig_var_ConfigKey_CAPTURE_UNITSIZE_set);
  SWIG_addvarlink(globals, "ConfigKey_POWER_OFF", Swig_var_ConfigKey_POWER_OFF_get, Swig_var_ConfigKey_POWER_OFF_set);
  SWIG_addvarlink(globals, "ConfigKey_DATA_SOURCE", Swig_var_ConfigKey_DATA_SOURCE_get, Swig_var_ConfigKey_DATA_SOURCE_set);
  SWIG_addvarlink(globals, "ConfigKey_PROBE_FACTOR", Swig_var_ConfigKey_PROBE_FACTOR_get, Swig_var_ConfigKey_PROBE_FACTOR_set);
  SWIG_addvarlink(globals, "ConfigKey_ADC_POWERLINE_CYCLES", Swig_var_ConfigKey_ADC_POWERLINE_CYCLES_get, Swig_var_ConfigKey_ADC_POWERLINE_CYCLES_set);
  SWIG_addvarlink(globals, "ConfigKey_LIMIT_MSEC", Swig_var_ConfigKey_LIMIT_MSEC_get, Swig_var_ConfigKey_LIMIT_MSEC_set);
  SWIG_addvarlink(globals, "ConfigKey_LIMIT_SAMPLES", Swig_var_ConfigKey_LIMIT_SAMPLES_get, Swig_var_ConfigKey_LIMIT_SAMPLES_set);
  SWIG_addvarlink(globals, "ConfigKey_LIMIT_FRAMES", Swig_var_ConfigKey_LIMIT_FRAMES_get, Swig_var_ConfigKey_LIMIT_FRAMES_set);
  SWIG_addvarlink(globals, "ConfigKey_CONTINUOUS", Swig_var_ConfigKey_CONTINUOUS_get, Swig_var_ConfigKey_CONTINUOUS_set);
  SWIG_addvarlink(globals, "ConfigKey_DATALOG", Swig_var_ConfigKey_DATALOG_get, Swig_var_ConfigKey_DATALOG_set);
  SWIG_addvarlink(globals, "ConfigKey_DEVICE_MODE", Swig_var_ConfigKey_DEVICE_MODE_get, Swig_var_ConfigKey_DEVICE_MODE_set);
  SWIG_addvarlink(globals, "ConfigKey_TEST_MODE", Swig_var_ConfigKey_TEST_MODE_get, Swig_var_ConfigKey_TEST_MODE_set);
  return 0;
}

